https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69967
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |diagnostic Status|UNCONFIRMED |NEW Last reconfirmed| |2016-02-26 Ever confirmed|0 |1 --- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> --- Yes, IPA (symtab) code warns about this and it doesn't push/pop warning options. In fact for global variables there are no saved options at all.