https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90907
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Component|c |inline-asm Resolution|--- |INVALID --- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Toplevel inline-asm is in a specific section. You need to push the new section and change back to the original one. In this case, the current section when the inline-asm is used is the TLS section which is marked as not executable.