https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93477
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- get_guard used to do: - if (TREE_PUBLIC (decl)) - DECL_WEAK (guard) = DECL_WEAK (decl); and doesn't anymore, so either it should be readded this way, or perhaps instead look for weak attribute on decl if TREE_PUBLIC and set DECL_WEAK in that case?