[Bug c/85661] double comparison illegally statically reduced
jakub at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Sat May 5 09:11:00 GMT 2018
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85661
Jakub Jelinek <jakub at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |jakub at gcc dot gnu.org
--- Comment #1 from Jakub Jelinek <jakub at gcc dot gnu.org> ---
If this is on i?86 32-bit, then most likely you just aren't taking into account
the extended precision and the default -fexcess-precision=fast mode.
So, either if you want excess precision, but require the C rules (and are using
C), you need to use -fexcess-precision=standard (default in strict C std
modes), or if you don't want excess precision, make sure you have SSE2 or later
hw and use -msse2 -mfpmath=sse. In any case, that is a user error rather than
compiler bug.
More information about the Gcc-bugs
mailing list