Commit 43042ea7 by David Edelsohn Committed by David Edelsohn

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
parent 89ff14c2
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> 2011-11-29 Bernd Schmidt <bernds@codesourcery.com>
* haifa-sched.c (recompute_todo_spec): Simplify and correct the * haifa-sched.c (recompute_todo_spec): Simplify and correct the
...@@ -4213,7 +4213,7 @@ ipa_tm_create_version_alias (struct cgraph_node *node, void *data) ...@@ -4213,7 +4213,7 @@ ipa_tm_create_version_alias (struct cgraph_node *node, void *data)
TREE_SYMBOL_REFERENCED (tm_name) = 1; TREE_SYMBOL_REFERENCED (tm_name) = 1;
/* Perform the same remapping to the comdat group. */ /* 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)); DECL_COMDAT_GROUP (new_decl) = tm_mangle (DECL_COMDAT_GROUP (old_decl));
new_node = cgraph_same_body_alias (NULL, new_decl, info->new_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) ...@@ -4248,7 +4248,7 @@ ipa_tm_create_version (struct cgraph_node *old_node)
TREE_SYMBOL_REFERENCED (tm_name) = 1; TREE_SYMBOL_REFERENCED (tm_name) = 1;
/* Perform the same remapping to the comdat group. */ /* 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)); 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); new_node = cgraph_copy_node_for_versioning (old_node, new_decl, NULL, NULL);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment