$OpenBSD: patch-gcc_c-opts_c,v 1.2 2008/07/25 20:50:26 martynas Exp $
--- gcc/c-opts.c.orig	Thu Jun 12 14:58:31 2003
+++ gcc/c-opts.c	Fri Jul 25 12:34:57 2008
@@ -127,6 +127,7 @@ static void sanitize_cpp_opts PARAMS ((void));
   OPT("Wabi",                   CL_CXX,   OPT_Wabi)                          \
   OPT("Wall",			CL_ALL,   OPT_Wall)			     \
   OPT("Wbad-function-cast",	CL_C,     OPT_Wbad_function_cast)	     \
+  OPT("Wbounded",		CL_ALL,	  OPT_Wbounded)			     \
   OPT("Wcast-qual",		CL_ALL,   OPT_Wcast_qual)		     \
   OPT("Wchar-subscripts",	CL_ALL,   OPT_Wchar_subscripts)		     \
   OPT("Wcomment",		CL_ALL,   OPT_Wcomment)			     \
@@ -694,6 +695,7 @@ c_common_decode_option (argc, argv)
       set_Wunused (on);
       set_Wformat (on);
       set_Wimplicit (on);
+      warn_bounded = on;
       warn_char_subscripts = on;
       warn_missing_braces = on;
       warn_parentheses = on;
@@ -787,6 +789,10 @@ c_common_decode_option (argc, argv)
 
     case OPT_Wfloat_equal:
       warn_float_equal = on;
+      break;
+
+    case OPT_Wbounded:
+      warn_bounded = on;
       break;
 
     case OPT_Wformat:
