https://gcc.gnu.org/bugzilla/show_bug.cgi?id=99456
--- Comment #11 from Nathan Sidwell <nathan at gcc dot gnu.org> --- gcc11-pr99456.patch looks good, can we add a scan-not for the _ZGV guard variables too? If the optimizer's turned on, I think __static_init... gets inlined into the global constructor, might be good to make sure that's not there either.