[Bug middle-end/100839] -O2 does dangerous optimizations using FMA (please don't break my cross product)

metalcaedes at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon May 31 01:57:04 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100839

Daniel Gibson <metalcaedes at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|INVALID                     |FIXED

--- Comment #4 from Daniel Gibson <metalcaedes at gmail dot com> ---
Nope.

1. -std=c++11 doesn't make a difference, just tested it on compiler explorer.
2. What's the point of -Ofast ("It also enables optimizations that are not
valid for all standard-compliant programs.") if the normal optimization levels
already violate the standard?


More information about the Gcc-bugs mailing list