From de1b5c17fd1418f01f0a57d03023c21d888dc97c Mon Sep 17 00:00:00 2001 From: Martin Uecker Date: Tue, 13 Jan 2015 22:50:19 -0800 Subject: 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/common.opt | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/common.opt') 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 -- cgit v1.1