Date: Sun, 16 Feb 2003 01:48:02 +1030 From: Greg Lewis <glewis@eyesbeyond.com> To: shudo@computer.org Cc: java@FreeBSD.ORG Subject: Re: Math.pow bug for jdk1.3.1-p8 ? Message-ID: <20030216014802.A10817@misty.eyesbeyond.com> In-Reply-To: <20030215.175421.1015281127.shudo@localhost>; from shudo@computer.org on Sat, Feb 15, 2003 at 05:54:21PM %2B0900 References: <3E4C9DDD.4040204@gddsn.org.cn> <20030215.175421.1015281127.shudo@localhost>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Feb 15, 2003 at 05:54:21PM +0900, shudo@computer.org wrote: > I could confirm __j__ieee754_pow() in libjava.so behaves wrong and one > in libjava_g.so works correctly. > > I also tried writing a test program which calls __j__ieee754_pow() and > linked the program with e_pow.o, w_sqrt.o, e_sqrt.o, s_fabs.o, > s_scalbn.o and s_copysign.o generated during compilation process of > JDK 1.3.1. The program produces the incorrect value (0, not 512). > > It is certain that there is a problem around fdlibm, FreeBSD's gcc > 2.95.4 or how the fdlibm compiled (compiler flags?). Sounds like its quite possibly due to problems with optimisation. Obviously, java_g uses no optimisation when compiling, whereas java (from the FreeBSD port) will use whatever optimisation people have set up to be used when compiling ports. -- Greg Lewis Email : glewis@eyesbeyond.com Eyes Beyond Web : http://www.eyesbeyond.com Information Technology FreeBSD : glewis@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030216014802.A10817>