https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66219
Richard Biener <rguenth at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution|--- |INVALID --- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> --- Well, likely flags[] is optimized away. If you need the symbol to prevail (for whatever reason?) you need to add __attribute__((used)) to it.