Commit 6fb12821 by Martin Liska Committed by Jan Hubicka

re PR ipa/65287 (Current trunk ICE in address_matters_p, at symtab.c:1908)

	PR ipa/65287
	* ipa-icf.c (sem_variable::parse): Skip all alias variables.
	* gcc.dg/ipa/pr65287.c: New test.

From-SVN: r221156
parent a6a62c01
2015-03-03 Martin Liska <mliska@suse.cz>
PR ipa/65287
* ipa-icf.c (sem_variable::parse): Skip all alias variables.
2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com> 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
PR 65138/target PR 65138/target
......
...@@ -1681,7 +1681,8 @@ sem_variable::equals (tree t1, tree t2) ...@@ -1681,7 +1681,8 @@ sem_variable::equals (tree t1, tree t2)
sem_variable * sem_variable *
sem_variable::parse (varpool_node *node, bitmap_obstack *stack) sem_variable::parse (varpool_node *node, bitmap_obstack *stack)
{ {
if (TREE_THIS_VOLATILE (node->decl) || DECL_HARD_REGISTER (node->decl)) if (TREE_THIS_VOLATILE (node->decl) || DECL_HARD_REGISTER (node->decl)
|| node->alias)
return NULL; return NULL;
sem_variable *v = new sem_variable (node, 0, stack); sem_variable *v = new sem_variable (node, 0, stack);
......
2015-03-03 Martin Liska <mliska@suse.cz>
PR ipa/65287
* gcc.dg/ipa/pr65287.c: New test.
2015-03-03 Martin Jambor <mjambor@suse.cz> 2015-03-03 Martin Jambor <mjambor@suse.cz>
Eric Botcazou <ebotcazou@adacore.com> Eric Botcazou <ebotcazou@adacore.com>
......
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