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/c-family/c.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/c-family/c.opt')
-rw-r--r-- | gcc/c-family/c.opt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/c-family/c.opt b/gcc/c-family/c.opt index 064c69e..e61fc56 100644 --- a/gcc/c-family/c.opt +++ b/gcc/c-family/c.opt @@ -279,6 +279,10 @@ Warray-bounds LangEnabledBy(C ObjC C++ ObjC++,Wall) ; in common.opt +Warray-bounds= +LangEnabledBy(C ObjC C++ ObjC++,Wall,1,0) +; in common.opt + Wassign-intercept ObjC ObjC++ Var(warn_assign_intercept) Warning Warn whenever an Objective-C assignment is being intercepted by the garbage collector |