This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/47617] SSE rounding mode works -g, not -O3


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47617

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> 2011-02-06 02:13:37 UTC ---
I think you need to use -frounding-math.  GCC assumes by default the rounding
mode is round-to-nearest.  See
http://gcc.gnu.org/onlinedocs/gcc-4.5.2/gcc/Optimize-Options.html#index-frounding_002dmath-819
.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]