diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-21 16:21:45 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-01-21 16:21:45 +0000 |
commit | 2a2aef735be22819514a890ea429d8846f183961 (patch) | |
tree | aab122eb2a7f9b6f99a39bb28eee3b362934fa73 /gcc/tree-ssa-loop-im.c | |
parent | d8d756b9273c1fe8134c4ea53d88baea9ef82fc6 (diff) | |
download | gcc-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.c | 1 |
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: |