summaryrefslogtreecommitdiff
blob: 2be61a24013f245f2ce8943a9f8b879a5f5a0c2e (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-3.4.4/gcc/c.opt
+++ gcc-3.4.4/gcc/c.opt
@@ -426,6 +426,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-3.4.4/gcc/c-opts.c
+++ gcc-3.4.4/gcc/c-opts.c
@@ -708,6 +708,12 @@ c_common_handle_option (size_t scode, co
       flag_no_asm = !value;
       break;
 
+    case OPT_fbounds_checking:
+    case OPT_fbc_strings_only:
+      if (value)
+        warning ("htb stub: bounds checking is not supported");
+      break;
+
     case OPT_fbuiltin:
       flag_no_builtin = !value;
       break;