diff options
author | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-13 20:32:26 +0000 |
---|---|---|
committer | aldyh <aldyh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-12-13 20:32:26 +0000 |
commit | f7c22b34f6439bc60cf05b6352be01aa0a034cdd (patch) | |
tree | 16675fd94537d4d98e7d0a67bf8beb327ed5f998 /gcc/trans-mem.c | |
parent | f82f49f04721829b12a7b04a8615ca33ae06c8d8 (diff) | |
download | gcc-f7c22b34f6439bc60cf05b6352be01aa0a034cdd.tar.gz |
* trans-mem.c (ipa_tm_create_version_alias): Set DECL_CONTEXT and
DECL_LANG_SPECIFIC.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182307 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/trans-mem.c')
-rw-r--r-- | gcc/trans-mem.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/trans-mem.c b/gcc/trans-mem.c index 9506e793abd..6bd30c24170 100644 --- a/gcc/trans-mem.c +++ b/gcc/trans-mem.c @@ -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; |