https://gcc.gnu.org/bugzilla/show_bug.cgi?id=43149
Andrew Pinski <pinskia at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #9 from Andrew Pinski <pinskia at gcc dot gnu.org> --- https://gcc.gnu.org/onlinedocs/gcc/Function-Specific-Option-Pragmas.html Works across headers as there is nothing special about headers really.