tree-vrp.c (check_array_ref): Emit more warnings for warn_array_bounds >= 2.
authorMartin Uecker <uecker@eecs.berkeley.edu>
Wed, 14 Jan 2015 06:50:19 +0000 (22:50 -0800)
committerJeff Law <law@gcc.gnu.org>
Wed, 14 Jan 2015 06:50:19 +0000 (23:50 -0700)
commitde1b5c17fd1418f01f0a57d03023c21d888dc97c
tree21b0cb6a9549584b52bb45238be9c976079b63c9
parent2ca1ca6581aea9475feed78d5d4daafdb5d1ee3b
tree-vrp.c (check_array_ref): Emit more warnings for warn_array_bounds >= 2.

* tree-vrp.c (check_array_ref): Emit more warnings
for warn_array_bounds >= 2.
* common.opt: New option -Warray-bounds=.
* doc/invoke.texi: Document -Warray-bounds=.

* c.opt: New option -Warray-bounds=.

* gcc.dg/Warray-bounds-11.c: New test-case.

From-SVN: r219577
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c.opt
gcc/common.opt
gcc/doc/invoke.texi
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/Warray-bounds-11.c [new file with mode: 0644]
gcc/tree-vrp.c