[Bug c++/99677] [[gnu::const]] attribute does not prevent dead global variable gets emitted.

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Mar 22 08:57:56 GMT 2021


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99677

--- Comment #5 from Richard Biener <rguenth at gcc dot gnu.org> ---
I think Andrew is correct.  Note we can't elide "unused" not statically
initialized variables (since the initialization is seen as use).


More information about the Gcc-bugs mailing list