diff options
Diffstat (limited to 'sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch')
-rw-r--r-- | sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch b/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch new file mode 100644 index 0000000..2be61a2 --- /dev/null +++ b/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch @@ -0,0 +1,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; |