summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-im.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-21 16:21:45 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2008-01-21 16:21:45 +0000
commit2a2aef735be22819514a890ea429d8846f183961 (patch)
treeaab122eb2a7f9b6f99a39bb28eee3b362934fa73 /gcc/tree-ssa-loop-im.c
parentd8d756b9273c1fe8134c4ea53d88baea9ef82fc6 (diff)
downloadgcc-2a2aef735be22819514a890ea429d8846f183961.tar.gz
2008-01-21 Richard Guenther <rguenther@suse.de>
PR middle-end/34856 * tree-cfg.c (verify_expr): Allow all invariant expressions instead of just constant class ones as reference argument. * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR like any other constant. * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise. * gcc.c-torture/compile/pr34856.c: New testcase. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@131696 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-loop-im.c')
-rw-r--r--gcc/tree-ssa-loop-im.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop-im.c b/gcc/tree-ssa-loop-im.c
index 83ad70c2890..262ad972da8 100644
--- a/gcc/tree-ssa-loop-im.c
+++ b/gcc/tree-ssa-loop-im.c
@@ -205,6 +205,7 @@ for_each_index (tree *addr_p, bool (*cbck) (tree, tree *, void *), void *data)
case INTEGER_CST:
case REAL_CST:
case FIXED_CST:
+ case CONSTRUCTOR:
return true;
case TARGET_MEM_REF: