[Bug middle-end/34678] Optimization generates incorrect code with -frounding-math option (#pragma STDC FENV_ACCESS not implemented)
vincent at vinc17 dot org
gcc-bugzilla@gcc.gnu.org
Thu Oct 16 14:21:00 GMT 2008
------- Comment #14 from vincent at vinc17 dot org 2008-10-16 14:20 -------
(In reply to comment #12)
> Turning -frounding-math on by default would be a disservice to (most of) our
> users which is why the decision was made (long ago) to not enable this by
> default.
The compiler should generate correct code by default, and options like
-funsafe-math-optimizations are there to allow the users to run the compiler in
a non-conforming mode. So, it would be wise to have -frounding-math by default
and add -fno-rounding-math to the options enabled by
-funsafe-math-optimizations.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=34678
More information about the Gcc-bugs
mailing list