summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-26 02:42:19 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-26 02:42:19 +0000
commit47961c383aa25e405f7f3ce113e9f2cad2117521 (patch)
tree2777f40f86a875d52472664177e03b2ccfb2cd38 /sys-devel/gcc/files
parentallow people to disable pie/ssp with nopie/nossp USE flags (diff)
downloadgentoo-2-47961c383aa25e405f7f3ce113e9f2cad2117521.tar.gz
gentoo-2-47961c383aa25e405f7f3ce113e9f2cad2117521.tar.bz2
gentoo-2-47961c383aa25e405f7f3ce113e9f2cad2117521.zip
stubs for gcc-4.0
Diffstat (limited to 'sys-devel/gcc/files')
-rw-r--r--sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch32
-rw-r--r--sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch44
2 files changed, 76 insertions, 0 deletions
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 <file> Emit declaration information into <file>
+@@ -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;