summaryrefslogtreecommitdiff
path: root/gcc/trans-mem.c
diff options
context:
space:
mode:
authordje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-29 16:32:28 +0000
committerdje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>2011-11-29 16:32:28 +0000
commit260d0713a7b3d63e1cb20151f8c25b095065957c (patch)
tree444d177f300ce758ede559e24880612a8494171f /gcc/trans-mem.c
parent7aa6606c31943d3ea14bfcbd348f708e7849d318 (diff)
downloadgcc-260d0713a7b3d63e1cb20151f8c25b095065957c.tar.gz
2011-11-21 David Edelsohn <dje.gcc@gmail.com>
Aldy Hernandez <aldyh@redhat.com> * trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl if DECL_ONE_ONLY. (ipa_tm_create_version): Same. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181807 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r--gcc/trans-mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index 751572c4fb4..9751a15a4d2 100644
--- a/gcc/trans-mem.c
+++ b/gcc/trans-mem.c
@@ -4213,7 +4213,7 @@ ipa_tm_create_version_alias (struct cgraph_node *node, void *data)
TREE_SYMBOL_REFERENCED (tm_name) = 1;
/* Perform the same remapping to the comdat group. */
- if (DECL_COMDAT (new_decl))
+ if (DECL_ONE_ONLY (new_decl))
DECL_COMDAT_GROUP (new_decl) = tm_mangle (DECL_COMDAT_GROUP (old_decl));
new_node = cgraph_same_body_alias (NULL, new_decl, info->new_decl);
@@ -4248,7 +4248,7 @@ ipa_tm_create_version (struct cgraph_node *old_node)
TREE_SYMBOL_REFERENCED (tm_name) = 1;
/* Perform the same remapping to the comdat group. */
- if (DECL_COMDAT (new_decl))
+ if (DECL_ONE_ONLY (new_decl))
DECL_COMDAT_GROUP (new_decl) = tm_mangle (DECL_COMDAT_GROUP (old_decl));
new_node = cgraph_copy_node_for_versioning (old_node, new_decl, NULL, NULL);