re PR tree-optimization/56273 (Bogus -Warray-bounds warning)
authorRichard Biener <rguenther@suse.de>
Tue, 27 Jan 2015 09:49:29 +0000 (09:49 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 27 Jan 2015 09:49:29 +0000 (09:49 +0000)
commitf101c4b47a98c98238bbf31a7ee79b1b2e4cce7b
treeb08aee2370e01b303f880ce9649c1c711e51fa36
parent4eaf52aabba9299e6642ac1e88de0b56f0a81908
re PR tree-optimization/56273 (Bogus -Warray-bounds warning)

2015-01-27  Richard Biener  <rguenther@suse.de>

PR tree-optimization/56273
PR tree-optimization/59124
PR tree-optimization/64277
* tree-vrp.c (vrp_finalize): Emit array-bound warnings only
from the first VRP pass.

* g++.dg/warn/Warray-bounds-6.C: New testcase.
* gcc.dg/Warray-bounds-12.c: Likewise.
* gcc.dg/Warray-bounds-13.c: Likewise.

From-SVN: r220157
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/warn/Warray-bounds-6.C [new file with mode: 0644]
gcc/testsuite/gcc.dg/Warray-bounds-12.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/Warray-bounds-13.c [new file with mode: 0644]
gcc/tree-vrp.c