PR middle-end/53426
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 May 2012 09:47:10 +0000 (09:47 +0000)
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 23 May 2012 09:47:10 +0000 (09:47 +0000)
* tree-ssa-structalias.c (create_variable_info_for): Skip constructors from
other partitions.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@187799 138bc75d-0d04-0410-961f-82ee72b054a4

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

index ee5d718..15cb4eb 100644 (file)
@@ -1,5 +1,11 @@
 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
        * symtab.c (symtab_register_node): Fix ordering issue.
 
index 09642a0..e2fdff3 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;