From: rguenth Date: Thu, 10 Oct 2019 09:56:35 +0000 (+0000) Subject: 2019-10-10 Richard Biener X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f46751d4eea7540e2a8e6601d6ed0b6122a3a973;p=thirdparty%2Fgcc.git 2019-10-10 Richard Biener * lto-common.c (unify_scc): Do not merge anonymous NAMESPACE_DECLs. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@276796 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog index e41023207954..393e1c1c5500 100644 --- a/gcc/lto/ChangeLog +++ b/gcc/lto/ChangeLog @@ -1,3 +1,7 @@ +2019-10-10 Richard Biener + + * lto-common.c (unify_scc): Do not merge anonymous NAMESPACE_DECLs. + 2019-10-04 Joseph Myers * lto-lang.c (flag_isoc2x): New variable. diff --git a/gcc/lto/lto-common.c b/gcc/lto/lto-common.c index 9a17933d094b..e5c15f2b8449 100644 --- a/gcc/lto/lto-common.c +++ b/gcc/lto/lto-common.c @@ -1646,11 +1646,13 @@ unify_scc (class data_in *data_in, unsigned from, tree t = streamer_tree_cache_get_tree (cache, from + i); scc->entries[i] = t; /* Do not merge SCCs with local entities inside them. Also do - not merge TRANSLATION_UNIT_DECLs and anonymous namespace types. */ + not merge TRANSLATION_UNIT_DECLs and anonymous namespaces + and types therein types. */ if (TREE_CODE (t) == TRANSLATION_UNIT_DECL || (VAR_OR_FUNCTION_DECL_P (t) && !(TREE_PUBLIC (t) || DECL_EXTERNAL (t))) || TREE_CODE (t) == LABEL_DECL + || (TREE_CODE (t) == NAMESPACE_DECL && !DECL_NAME (t)) || (TYPE_P (t) && type_with_linkage_p (TYPE_MAIN_VARIANT (t)) && type_in_anonymous_namespace_p (TYPE_MAIN_VARIANT (t))))