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.