diff options
author | Jason Merrill <jason@redhat.com> | 2014-05-28 12:38:23 -0400 |
---|---|---|
committer | Jason Merrill <jason@gcc.gnu.org> | 2014-05-28 12:38:23 -0400 |
commit | d67ff7b75deab58eaac2edccafbc55d32f60ed0d (patch) | |
tree | 53efc05fb878998b2cf66e3d30efe41a6bfd5650 /gcc/symtab.c | |
parent | a41acf5f3e06afa2790ff826b16ccccf1959842c (diff) | |
download | gcc-d67ff7b75deab58eaac2edccafbc55d32f60ed0d.zip gcc-d67ff7b75deab58eaac2edccafbc55d32f60ed0d.tar.gz gcc-d67ff7b75deab58eaac2edccafbc55d32f60ed0d.tar.bz2 |
re PR c++/47202 (Endless recursion during mangling)
PR c++/47202
gcc/cp/
* decl.c (cxx_comdat_group): Return a decl.
* optimize.c (cdtor_comdat_group): Get its DECL_ASSEMBLER_NAME.
gcc/
* cgraph.h (symtab_node::get_comdat_group_id): New.
* cgraphunit.c (analyze_functions): Call it.
* symtab.c (dump_symtab_node): Likewise.
* tree.c (decl_comdat_group_id): New.
* tree.h: Declare it.
* lto-streamer-out.c (write_symbol): Use it.
* trans-mem.c (ipa_tm_create_version_alias): Likewise.
From-SVN: r211026
Diffstat (limited to 'gcc/symtab.c')
-rw-r--r-- | gcc/symtab.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/symtab.c b/gcc/symtab.c index 8abb7a1..79fdbc2 100644 --- a/gcc/symtab.c +++ b/gcc/symtab.c @@ -560,7 +560,7 @@ dump_symtab_base (FILE *f, symtab_node *node) fprintf (f, " comdat"); if (node->get_comdat_group ()) fprintf (f, " comdat_group:%s", - IDENTIFIER_POINTER (node->get_comdat_group ())); + IDENTIFIER_POINTER (node->get_comdat_group_id ())); if (DECL_ONE_ONLY (node->decl)) fprintf (f, " one_only"); if (DECL_SECTION_NAME (node->decl)) @@ -1062,7 +1062,7 @@ symtab_resolve_alias (symtab_node *node, symtab_node *target) node->analyzed = true; ipa_record_reference (node, target, IPA_REF_ALIAS, NULL); - /* Alias targets become reudndant after alias is resolved into an reference. + /* Alias targets become redundant after alias is resolved into an reference. We do not want to keep it around or we would have to mind updating them when renaming symbols. */ node->alias_target = NULL; |