From aa19cf8778bf9457935bc6cd15a96cf8dfd7fe60 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Wed, 23 May 2012 11:47:10 +0200 Subject: [PATCH] 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 --- gcc/ChangeLog | 6 ++++++ gcc/tree-ssa-structalias.c | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index ee5d71801b32..15cb4eb99640 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-05-22 Jan Hubicka + + PR middle-end/53426 + * tree-ssa-structalias.c (create_variable_info_for): Skip constructors from + other partitions. + 2012-05-22 Jan Hubicka PR middle-end/53161 diff --git a/gcc/tree-ssa-structalias.c b/gcc/tree-ssa-structalias.c index 09642a03f425..e2fdff34e7bb 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;