diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-03 19:22:03 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2012-05-03 19:22:03 +0000 |
commit | 22fe6d2acd09066101acde4636108318dbd33f87 (patch) | |
tree | 3f9f25924857864ce32a71694b1284450e655f0f | |
parent | cab51373e8f5a41e9d7ac588627d7f603225eefa (diff) | |
download | ppe42-gcc-22fe6d2acd09066101acde4636108318dbd33f87.tar.gz ppe42-gcc-22fe6d2acd09066101acde4636108318dbd33f87.zip |
PR middle-end/53093
* tree-emutls.c (new_emutls_decl): Fix handling of aliases.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187115 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/tree-emutls.c | 2 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 90b78756ea9..7e0d918a65f 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2012-05-03 Jan Hubicka <jh@suse.cz> + PR middle-end/53093 + * tree-emutls.c (new_emutls_decl): Fix handling of aliases. + +2012-05-03 Jan Hubicka <jh@suse.cz> + PR middle-end/53106 * ipa.c (cgraph_remove_unreachable_nodes): Fix handling of clones. diff --git a/gcc/tree-emutls.c b/gcc/tree-emutls.c index 63e4a756e86..bae41ac62e6 100644 --- a/gcc/tree-emutls.c +++ b/gcc/tree-emutls.c @@ -338,7 +338,7 @@ new_emutls_decl (tree decl, tree alias_of) else varpool_create_variable_alias (to, varpool_node_for_asm - (DECL_ASSEMBLER_NAME (alias_of))->symbol.decl); + (DECL_ASSEMBLER_NAME (DECL_VALUE_EXPR (alias_of)))->symbol.decl); return to; } |