aboutsummaryrefslogtreecommitdiff
blob: 4a515c56e23d9383da4c60e5db67dec0ad4721da (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- gcc-4.0.0/gcc/c.opt
+++ gcc-4.0.0/gcc/c.opt
@@ -457,6 +457,14 @@ fasm
 C ObjC C++ ObjC++
 Recognize the \"asm\" keyword
 
+fbounds-checking
+C
+Generate code to check bounds before indexing arrays
+
+fbc-strings-only
+C
+Restrict bounds checking to strings only
+
 fbuiltin
 C ObjC C++ ObjC++
 Recognize built-in functions
--- gcc-4.0.0/gcc/c-opts.c
+++ gcc-4.0.0/gcc/c-opts.c
@@ -548,6 +549,12 @@ c_common_handle_option (size_t scode, co
       flag_no_asm = !value;
       break;
 
+    case OPT_fbc_strings_only:
+    case OPT_fbounds_checking:
+      if (value)
+        warning ("htb stub: bounds checking is not supported");
+      break;
+
     case OPT_fbuiltin:
       flag_no_builtin = !value;
       break;