https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117267
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |INVALID --- Comment #11 from Andrew Pinski <pinskia at gcc dot gnu.org> --- You are trying to jump to a function which has already returned so this is not valid as the stack is gone. It is just happens to work at -O0 but does not mean it is undefined and all.