Date: Thu, 31 Oct 2002 15:47:17 -0600 (CST) From: Loren James Rittle <rittle@latour.rsch.comm.mot.com> To: bde@zeta.org.au Cc: imp@bsdimp.com, current@FreeBSD.ORG, dschultz@uclink.Berkeley.EDU Subject: Re: Lack of real long double support Message-ID: <200210312147.g9VLlHLJ070952@latour.rsch.comm.mot.com> In-Reply-To: <20021031202343.W8632-100000@gamplex.bde.org> (message from Bruce Evans on Thu, 31 Oct 2002 20:28:33 %2B1100 (EST)) References: <20021031202343.W8632-100000@gamplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In article <20021031202343.W8632-100000@gamplex.bde.org>, Bruce Evans<bde@zeta.org.au> writes: > Example of how fixing this breaks a similar assertion for DBL_ESPILON: > %%% > $ cat z.c [...] > $ cc -o z z.c > $ ./z > LDBL_EPSILON failed test 1 with prec 2 > $ cc -O -o z z.c. > $ ./z > LDBL_EPSILON failed test 1 with prec 2 > DBL_EPSILON failed test 2 with prec 3 > %%% > The full brokenness only shows up with -O. When I run your program against gcc mainline (for 3.3 release) with the patch I have staged from RTH to correctly match our FP hardware default setup, I see: S rittle@latour; /usr/local/beta-gcc/bin/gcc t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 S rittle@latour; /usr/local/beta-gcc/bin/gcc -O t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 DBL_EPSILON failed test 2 with prec 3 S rittle@latour; /usr/local/beta-gcc/bin/gcc -O2 t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 DBL_EPSILON failed test 2 with prec 3 S rittle@latour; /usr/local/beta-gcc/bin/gcc -O3 t.c S rittle@latour; a.out LDBL_EPSILON failed test 2 with prec 3 DBL_EPSILON failed test 2 with prec 3 I.e. the only time it "fails" is when the user made a call to change the default precision. Is that gcc 3.3 behavior acceptable (at least until gcc can be further refined to attempt to handle user override of the FP control word)? Regards, Loren To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200210312147.g9VLlHLJ070952>