From: Martin Liska Date: Tue, 3 Mar 2015 17:32:21 +0000 (+0100) Subject: re PR ipa/65287 (Current trunk ICE in address_matters_p, at symtab.c:1908) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6fb12821b3b23f5af43dad222ddd19315a7571a1;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b16551a5db4..6cbeb89a0ce 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2015-03-03 Martin Liska + + PR ipa/65287 + * ipa-icf.c (sem_variable::parse): Skip all alias variables. + 2015-03-03 Michael Meissner PR 65138/target diff --git a/gcc/ipa-icf.c b/gcc/ipa-icf.c index b6173724785..1055c23cbc7 100644 --- a/gcc/ipa-icf.c +++ b/gcc/ipa-icf.c @@ -1681,7 +1681,8 @@ sem_variable::equals (tree t1, tree t2) sem_variable * 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; sem_variable *v = new sem_variable (node, 0, stack); diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index e242e595dc2..d1eaddb7e02 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,8 @@ +2015-03-03 Martin Liska + + PR ipa/65287 + * gcc.dg/ipa/pr65287.c: New test. + 2015-03-03 Martin Jambor Eric Botcazou