https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89325
Agner Fog <agner at agner dot org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |agner at agner dot org --- Comment #5 from Agner Fog <agner at agner dot org> --- I have the same problem. Minimal test case: #include <math.h> struct Test { float f; }; Test round(Test const & a) __attribute__ ((optimize("-fno-unsafe-math-optimizations"))); Test round(Test const & a) {return a;}