re PR ipa/65287 (Current trunk ICE in address_matters_p, at symtab.c:1908)
authorMartin Liska <mliska@suse.cz>
Tue, 3 Mar 2015 17:32:21 +0000 (18:32 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 3 Mar 2015 17:32:21 +0000 (17:32 +0000)
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
gcc/ipa-icf.c
gcc/testsuite/ChangeLog

index b16551a..6cbeb89 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR 65138/target
index b617372..1055c23 100644 (file)
@@ -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);
index e242e59..d1eaddb 100644 (file)
@@ -1,3 +1,8 @@
+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>
             Eric Botcazou  <ebotcazou@adacore.com>