aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>2011-11-29 16:32:28 +0000
committerDavid Edelsohn <dje@gcc.gnu.org>2011-11-29 11:32:28 -0500
commit43042ea70130d9c8648a5b92c9030445ab1403d7 (patch)
tree444d177f300ce758ede559e24880612a8494171f /gcc
parent89ff14c26599fbf9eff70bc2b03287b447cfc021 (diff)
downloadgcc-43042ea70130d9c8648a5b92c9030445ab1403d7.zip
gcc-43042ea70130d9c8648a5b92c9030445ab1403d7.tar.gz
gcc-43042ea70130d9c8648a5b92c9030445ab1403d7.tar.bz2
trans-mem.c (ipa_tm_create_version_alias): Mangle new_decl if DECL_ONE_ONLY.
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. Co-Authored-By: Aldy Hernandez <aldyh@redhat.com> From-SVN: r181807
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog7
-rw-r--r--gcc/trans-mem.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 9a6765d..bfefccb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,10 @@
+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.
+
2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
* haifa-sched.c (recompute_todo_spec): Simplify and correct the
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c
index 751572c..9751a15 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);