[Bug tree-optimization/64277] [4.9 Regression] Incorrect warning "array subscript is above array bounds"
rguenth at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Tue Feb 24 13:05:00 GMT 2015
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64277
--- Comment #22 from Richard Biener <rguenth at gcc dot gnu.org> ---
Author: rguenth
Date: Tue Feb 24 12:49:11 2015
New Revision: 220939
URL: https://gcc.gnu.org/viewcvs?rev=220939&root=gcc&view=rev
Log:
2015-02-24 Richard Biener <rguenther@suse.de>
Backport from mainline
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.
Added:
branches/gcc-4_8-branch/gcc/testsuite/g++.dg/warn/Warray-bounds-6.C
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/Warray-bounds-12.c
branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/Warray-bounds-13.c
Modified:
branches/gcc-4_8-branch/gcc/ChangeLog
branches/gcc-4_8-branch/gcc/testsuite/ChangeLog
branches/gcc-4_8-branch/gcc/tree-vrp.c
More information about the Gcc-bugs
mailing list