[Bug target/55522] -funsafe-math-optimizations is unexpectedly harmful, especially w/ -shared

pinskia at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Sep 6 22:55:41 GMT 2022


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

--- Comment #13 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Patient: Doctor it hurts when I do this.
Doctor: then don't do that and if you read the instructions I gave you I told
you I would hurt this way.

Note I think it was a mistake that gcc had -ffast-math option at all now.

But that ship has sailed over 18 years ago. And people abuse optimizations that
are documented this way and will still continue to abuse others similarly
really.
Plus always will abuse c/c++ semantics too.


More information about the Gcc-bugs mailing list