diff options
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gcc/files/stubs/gcc-4.1-htb-stub.patch | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/sys-devel/gcc/files/stubs/gcc-4.1-htb-stub.patch b/sys-devel/gcc/files/stubs/gcc-4.1-htb-stub.patch new file mode 100644 index 000000000000..65c5b525c9b3 --- /dev/null +++ b/sys-devel/gcc/files/stubs/gcc-4.1-htb-stub.patch @@ -0,0 +1,32 @@ +--- gcc-4.1.0/gcc/c.opt ++++ gcc-4.1.0/gcc/c.opt +@@ -446,6 +446,14 @@ + 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.1.0/gcc/c-opts.c ++++ gcc-4.1.0/gcc/c-opts.c +@@ -584,6 +584,12 @@ + 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; |