-ffloat-store on Intel x86
christopher s ruvolo 128-27e torch
cruvolo@wrc.xerox.com
Tue Sep 26 15:07:00 GMT 2000
Hello all.
I recently tracked down some bugs in my code to gcc's lack of full IEEE
compliance on Intel's x86 FPU when dealing with 64-bit doubles. This has
been documented on this list before (see
http://gcc.gnu.org/ml/gcc-bugs/1999-12n/msg00216.html ).
According to the man page, -ffloat-store should force IEEE compliance, but
on gcc 2.95.2, it only does so if there is only one FPU double operation per
statement.
i.e., statements like "x = y + z;" (all variables being doubles) work fine,
but statements like "x += y * z;" break IEEE compliance, even with
-ffloat-store enabled.
While -ffloat-store does help with single-operation statements if
optimisations are on, it does not help with multiple-operation statements.
I am writing to ask if this has been addressed in the CVS version of gcc,
and if not, why? When do you expect this to be addressed? Are there any
workarounds to this besides splitting my code up into many tiny statements?
Thanks much,
Chris Ruvolo
PS: Please cc: all replies to me as I am not on the list.
--
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.2 (SunOS)
Comment: For info see http://www.gnupg.org
iD8DBQE50R4C4RZzUb7FCbERAuLNAJ91nSbTmj5XN1sRlDUFY2sInQpw6wCfWYAJ
85hA9aUR4gI/LxRgX0u6OAw=
=KV0g
-----END PGP SIGNATURE-----
More information about the Gcc-bugs
mailing list