From 6fb12821b3b23f5af43dad222ddd19315a7571a1 Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 3 Mar 2015 18:32:21 +0100 Subject: [PATCH] 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 --- gcc/ChangeLog | 5 +++++ gcc/ipa-icf.c | 3 ++- gcc/testsuite/ChangeLog | 5 +++++ 3 files changed, 12 insertions(+), 1 deletion(-) 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 -- 2.30.2