summaryrefslogtreecommitdiff
path: root/gcc/trans-mem.c
diff options
context:
space:
mode:
authorJason Merrill <jason@redhat.com>2014-05-28 12:38:23 -0400
committerJason Merrill <jason@gcc.gnu.org>2014-05-28 12:38:23 -0400
commitd67ff7b75deab58eaac2edccafbc55d32f60ed0d (patch)
tree53efc05fb878998b2cf66e3d30efe41a6bfd5650 /gcc/trans-mem.c
parenta41acf5f3e06afa2790ff826b16ccccf1959842c (diff)
downloadgcc-d67ff7b75deab58eaac2edccafbc55d32f60ed0d.tar.gz
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/trans-mem.c')
-rw-r--r--gcc/trans-mem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index a0903e45157..7c9f163e7df 100644
--- a/gcc/trans-mem.c
+++ b/gcc/trans-mem.c
@@ -4852,7 +4852,7 @@ ipa_tm_create_version_alias (struct cgraph_node *node, void *data)
/* Perform the same remapping to the comdat group. */
if (DECL_ONE_ONLY (new_decl))
- varpool_get_node (new_decl)->set_comdat_group (tm_mangle (DECL_COMDAT_GROUP (old_decl)));
+ varpool_get_node (new_decl)->set_comdat_group (tm_mangle (decl_comdat_group_id (old_decl)));
new_node = cgraph_same_body_alias (NULL, new_decl, info->new_decl);
new_node->tm_clone = true;