re PR middle-end/30636 (incorrect array bounds warning on multi-dimensional arrays)
authorRichard Guenther <rguenther@suse.de>
Sun, 4 Feb 2007 15:15:38 +0000 (15:15 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Sun, 4 Feb 2007 15:15:38 +0000 (15:15 +0000)
commit713e3ec92fe123e868f4a7a3ece4f4581106d691
treecada47dcc485f110239acb45110951e3b8d2c8d8
parent5c4f0f47935386fd60e70deb452bb4422480d22f
re PR middle-end/30636 (incorrect array bounds warning on multi-dimensional arrays)

2007-02-04  Richard Guenther  <rguenther@suse.de>

PR middle-end/30636
* fold-const.c (try_move_mult_to_index): Make sure to not
overflow one dimension of a multi-dimensional array access.

* g++.dg/warn/pr30636.C: New testcase.
* g++.dg/tree-ssa/tmmti-2.C: XFAIL parts.

From-SVN: r121575
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/tree-ssa/tmmti-2.C
gcc/testsuite/g++.dg/warn/pr30636.C [new file with mode: 0644]