OSDN Git Service

* trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
authoraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2011 20:32:26 +0000 (20:32 +0000)
committeraldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 13 Dec 2011 20:32:26 +0000 (20:32 +0000)
        DECL_LANG_SPECIFIC.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182307 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/trans-mem.c

index 0ea9050..cf19ed9 100644 (file)
@@ -1,3 +1,8 @@
+2011-12-13  Aldy Hernandez  <aldyh@redhat.com>
+
+       * trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
+       DECL_LANG_SPECIFIC.
+
 2011-12-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
 
        * regmove.c (fixup_match_2): Only access call_used_regs with hard
index 9506e79..6bd30c2 100644 (file)
@@ -4199,7 +4199,8 @@ ipa_tm_create_version_alias (struct cgraph_node *node, void *data)
 
   /* Based loosely on C++'s make_alias_for().  */
   TREE_PUBLIC (new_decl) = TREE_PUBLIC (old_decl);
-  DECL_CONTEXT (new_decl) = NULL;
+  DECL_CONTEXT (new_decl) = DECL_CONTEXT (old_decl);
+  DECL_LANG_SPECIFIC (new_decl) = DECL_LANG_SPECIFIC (old_decl);
   TREE_READONLY (new_decl) = TREE_READONLY (old_decl);
   DECL_EXTERNAL (new_decl) = 0;
   DECL_ARTIFICIAL (new_decl) = 1;