re PR tree-optimization/42956 (internal compiler error: Segmentation fault with -O1)
authorRichard Guenther <rguenther@suse.de>
Sun, 7 Feb 2010 13:42:52 +0000 (13:42 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 7 Feb 2010 13:42:52 +0000 (13:42 +0000)
commitcb6b911a63724d5efd5b48b9ae0dac09c3060e85
tree0fbca980303c232d16d4c5e497733ca6ff9c94ae
parentf41e0f10464c060e928927c5272a360c31a48093
re PR tree-optimization/42956 (internal compiler error: Segmentation fault with -O1)

2010-02-07  Richard Guenther  <rguenther@suse.de>

PR middle-end/42956
* gimplify.c (gimple_fold_indirect_ref): Avoid generating
new ARRAY_REFs on variable size element or minimal index arrays.
Complete.
* tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
gimple_fold_indirect_ref.

* gcc.c-torture/compile/pr42956.c: New testcase.

From-SVN: r156571
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/compile/pr42956.c [new file with mode: 0644]
gcc/tree-ssa-loop-ivopts.c