diff options
Diffstat (limited to 'catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch')
-rw-r--r-- | catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch b/catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch new file mode 100644 index 0000000..f6d8104 --- /dev/null +++ b/catalyst/portage_overlay/glibc/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch @@ -0,0 +1,59 @@ +--- gcc-3.3.6/gcc/c-opts.c ++++ gcc-3.3.6/gcc/c-opts.c +@@ -193,6 +193,8 @@ static void sanitize_cpp_opts PARAMS ((v + OPT("fall-virtual", CL_CXX, OPT_fall_virtual) \ + OPT("falt-external-templates",CL_CXX, OPT_falt_external_templates) \ + OPT("fasm", CL_ALL, OPT_fasm) \ ++ OPT("fbc-strings-only", CL_ALL, OPT_fbc_strings_only) \ ++ OPT("fbounds-checking", CL_ALL, OPT_fbounds_checking) \ + OPT("fbuiltin", CL_ALL, OPT_fbuiltin) \ + OPT("fbuiltin-", CL_ALL | CL_JOINED, OPT_fbuiltin_) \ + OPT("fcheck-new", CL_CXX, OPT_fcheck_new) \ +@@ -1037,6 +1039,11 @@ c_common_decode_option (argc, argv) + flag_no_asm = !on; + break; + ++ case OPT_fbounds_checking: ++ case OPT_fbc_strings_only: ++ warning ("htb stub: bounds checking is not supported"); ++ break; ++ + case OPT_fbuiltin: + flag_no_builtin = !on; + break; +--- gcc-3.3.6/gcc/cp/lang-options.h ++++ gcc-3.3.6/gcc/cp/lang-options.h +@@ -32,6 +32,8 @@ DEFINE_LANG_NAME ("C++") + { "-fno-alt-external-templates", "" }, + { "-fansi-overloading", "" }, + { "-fno-ansi-overloading", "" }, ++ { "-fbounds-checking", "" }, ++ { "-fno-bounds-checking", "" }, + { "-fcheck-new", + N_("Check the return value of new") }, + { "-fno-check-new", "" }, +@@ -117,6 +119,9 @@ DEFINE_LANG_NAME ("C++") + { "-fxref", + N_("Emit cross referencing information") }, + { "-fno-xref", "" }, ++ { "-fbounds-checking", ++ N_("Generate array and pointer bounds checking code") }, ++ { "-fno-bounds-checking", "" }, + + { "-Wreturn-type", + N_("Warn about inconsistent return types") }, +--- gcc-3.3.6/gcc/toplev.c ++++ gcc-3.3.6/gcc/toplev.c +@@ -1249,6 +1267,12 @@ documented_lang_options[] = + { "-fshort-wchar", + N_("Override the underlying type for wchar_t to `unsigned short'") }, + { "-fno-short-wchar", "" }, ++ { "-fbounds-checking", ++ N_("Generate array and pointer bounds checking code") }, ++ { "-fno-bounds-checking", "" }, ++ { "-fbc-strings-only", ++ N_("Restrict bounds checking to strings only") }, ++ { "-fno-bc-strings-only", "" }, + + { "-Wall", + N_("Enable most warning messages") }, |