https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104045
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes I just checked and we get the constant folding as expected with -fno-trappimg-math. So the defaults are different between the two.