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

unlvsur at live dot com gcc-bugzilla@gcc.gnu.org
Sat Mar 20 03:41:47 GMT 2021


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

--- Comment #1 from cqwrteur <unlvsur at live dot com> ---
Here is the GCC. it emits code of dead global variables
https://godbolt.org/z/oWddaf


More information about the Gcc-bugs mailing list