diff options
author | Martin Uecker <uecker@eecs.berkeley.edu> | 2015-01-13 22:50:19 -0800 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-01-13 23:50:19 -0700 |
commit | de1b5c17fd1418f01f0a57d03023c21d888dc97c (patch) | |
tree | 21b0cb6a9549584b52bb45238be9c976079b63c9 /gcc/common.opt | |
parent | 2ca1ca6581aea9475feed78d5d4daafdb5d1ee3b (diff) | |
download | gcc-de1b5c17fd1418f01f0a57d03023c21d888dc97c.zip gcc-de1b5c17fd1418f01f0a57d03023c21d888dc97c.tar.gz gcc-de1b5c17fd1418f01f0a57d03023c21d888dc97c.tar.bz2 |
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
Diffstat (limited to 'gcc/common.opt')
-rw-r--r-- | gcc/common.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/common.opt b/gcc/common.opt index e104269..3d19875 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -529,6 +529,10 @@ Warray-bounds Common Var(warn_array_bounds) Warning Warn if an array is accessed out of bounds +Warray-bounds= +Common Joined RejectNegative UInteger Var(warn_array_bounds) Warning +Warn if an array is accessed out of bounds + Wattributes Common Var(warn_attributes) Init(1) Warning Warn about inappropriate attribute usage |