aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2012-05-23 11:47:10 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2012-05-23 09:47:10 +0000
commitaa19cf8778bf9457935bc6cd15a96cf8dfd7fe60 (patch)
treee831b3f203450147d2e9b59f0e090281418ff556
parent66379195d6b0ec5912b032e6366820258c0e92e3 (diff)
downloadgcc-aa19cf8778bf9457935bc6cd15a96cf8dfd7fe60.zip
gcc-aa19cf8778bf9457935bc6cd15a96cf8dfd7fe60.tar.gz
gcc-aa19cf8778bf9457935bc6cd15a96cf8dfd7fe60.tar.bz2
re PR tree-optimization/53426 (ICE:create_variable_info_for at ../../gcc-trunk/gcc/tree-ssa-structalias.c:5581)
PR middle-end/53426 * tree-ssa-structalias.c (create_variable_info_for): Skip constructors from other partitions. From-SVN: r187799
-rw-r--r--gcc/ChangeLog6
-rw-r--r--gcc/tree-ssa-structalias.c3
2 files changed, 8 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index ee5d718..15cb4eb 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -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.
diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c
index 09642a0..e2fdff3 100644
--- a/gcc/tree-ssa-structalias.c
+++ b/gcc/tree-ssa-structalias.c
@@ -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;