https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108337
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Resolution|FIXED |INVALID --- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Yes it affects every function. There might be another way to use attribute to specific that only main needs this treatment. Or better yet add a _start function in assembly to that.