From 47961c383aa25e405f7f3ce113e9f2cad2117521 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 26 May 2005 02:42:19 +0000 Subject: stubs for gcc-4.0 --- sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch | 32 +++++++++++++++++ sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch | 44 ++++++++++++++++++++++++ 2 files changed, 76 insertions(+) create mode 100644 sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch create mode 100644 sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch (limited to 'sys-devel/gcc/files') diff --git a/sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch b/sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch new file mode 100644 index 000000000000..4a515c56e23d --- /dev/null +++ b/sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch @@ -0,0 +1,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; diff --git a/sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch b/sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch new file mode 100644 index 000000000000..3f620f30caad --- /dev/null +++ b/sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch @@ -0,0 +1,44 @@ +--- gcc-3.4.3/gcc/common.opt ++++ gcc-3.4.3/gcc/common.opt +@@ -152,6 +152,10 @@ Wunused-variable + Common + Warn when a variable is unused + ++Wstack-protector ++Common ++Warn when not issuing stack smashing protection for some reason ++ + aux-info + Common Separate + -aux-info Emit declaration information into +@@ -743,6 +747,14 @@ fzero-initialized-in-bss + Common + Put zero initialized data in the bss section + ++fstack-protector ++Common ++Enables stack protection ++ ++fstack-protector-all ++Common ++Enables stack protection of every function ++ + g + Common JoinedOrMissing + Generate debug information in default format +--- gcc-3.4.3/gcc/opts.c ++++ gcc-3.4.3/gcc/opts.c +@@ -804,6 +807,13 @@ common_handle_option (size_t scode, cons + warn_unused_variable = value; + break; + ++ case OPT_fstack_protector: ++ case OPT_fstack_protector_all: ++ case OPT_Wstack_protector: ++ if (value) ++ warning ("ssp stub: stack protector is not supported"); ++ break; ++ + case OPT_aux_info: + case OPT_aux_info_: + aux_info_file_name = arg; -- cgit v1.2.3-65-gdbad