re PR middle-end/53093 (tls/alias-1.c ICE, emutls)

PR middle-end/53093
	* tree-emutls.c (new_emutls_decl): Fix handling of aliases.

From-SVN: r187115
This commit is contained in:
Jan Hubicka 2012-05-03 21:22:03 +02:00 committed by Jan Hubicka
parent c2b6c111b6
commit f95f017c42
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
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

View File

@ -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;
}