re PR tree-optimization/53426 (ICE:create_variable_info_for at ../../gcc-trunk/gcc...
authorJan Hubicka <jh@suse.cz>
Wed, 23 May 2012 09:47:10 +0000 (11:47 +0200)
committerJan Hubicka <hubicka@gcc.gnu.org>
Wed, 23 May 2012 09:47:10 +0000 (09:47 +0000)
PR middle-end/53426
* tree-ssa-structalias.c (create_variable_info_for): Skip constructors from
other partitions.

From-SVN: r187799

gcc/ChangeLog
gcc/tree-ssa-structalias.c

index ee5d71801b3293bc6066f69e5b279596825fae4c..15cb4eb99640c41ae819a76ec4e82c083b6a2439 100644 (file)
@@ -1,3 +1,9 @@
+2012-05-22  Jan Hubicka  <jh@suse.cz>
+
+       PR middle-end/53426
+       * tree-ssa-structalias.c (create_variable_info_for): Skip constructors from
+       other partitions.
+
 2012-05-22  Jan Hubicka  <jh@suse.cz>
 
        PR middle-end/53161
index 09642a03f425bda3ced2926dfff0af6facba9888..e2fdff34e7bbad4a493754cd26c3f5d46877c208 100644 (file)
@@ -5583,7 +5583,8 @@ create_variable_info_for (tree decl, const char *name)
 
          /* If this is a global variable with an initializer and we are in
             IPA mode generate constraints for it.  */
-         if (DECL_INITIAL (decl))
+         if (DECL_INITIAL (decl)
+             && vnode->analyzed)
            {
              VEC (ce_s, heap) *rhsc = NULL;
              struct constraint_expr lhs, *rhsp;