optimization/7719: gcc with -O2 generates wrong code
ebotcazou@gcc.gnu.org
ebotcazou@gcc.gnu.org
Wed Feb 19 08:35:00 GMT 2003
Synopsis: gcc with -O2 generates wrong code
State-Changed-From-To: open->feedback
State-Changed-By: ebotcazou
State-Changed-When: Wed Feb 19 08:35:13 2003
State-Changed-Why:
Probably not a bug. On x86, at -O2, floating point values
may be kept in FP registers when doing comparison with
others stored in memory. Now x86 FP registers have
extra-precision over a 'double', which may invalid
an equality comparison. Compile your code with '-ffloat-store'
if it relies on exact IEEE floating-point semantics.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7719
More information about the Gcc-bugs
mailing list