2008-11-05 Martin Jambor <mjambor@suse.cz>
authorjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Nov 2008 16:06:38 +0000 (16:06 +0000)
committerjamborm <jamborm@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 5 Nov 2008 16:06:38 +0000 (16:06 +0000)
commit82271e4c6065813b114fa515b7cca47f90321937
tree519533d92b35a2c870dadff443e7d0905b988f61
parentbab4625684bc524d751b0bbb3a4c2492aa22c807
2008-11-05  Martin Jambor  <mjambor@suse.cz>

PR middle-end/37861
* tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Don't turn
pointer arithmetics into array_ref if the array is accessed
through an indirect_ref.
* testsuite/gcc.dg/Warray-bounds-5.c: New file.
* testsuite/gcc.dg/Warray-bounds-6.c: New file.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@141613 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-5.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Warray-bounds-6.c [new file with mode: 0644]
gcc/tree-ssa-forwprop.c