]> gcc.gnu.org Git - gcc.git/commit
re PR middle-end/37861 (Bogus array bounds warning)
authorMartin Jambor <mjambor@suse.cz>
Wed, 5 Nov 2008 16:06:38 +0000 (17:06 +0100)
committerMartin Jambor <jamborm@gcc.gnu.org>
Wed, 5 Nov 2008 16:06:38 +0000 (17:06 +0100)
commit5e9abf2ce4a4e1e380a1da8016eac24b22973dfd
tree519533d92b35a2c870dadff443e7d0905b988f61
parent8df7b2b60e8d304998ae7b487e8981c9cc30040a
re PR middle-end/37861 (Bogus array bounds warning)

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.

From-SVN: r141613
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
This page took 0.059082 seconds and 5 git commands to generate.