summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-05-26 02:42:30 +0000
committerMike Frysinger <vapier@gentoo.org>2005-05-26 02:42:30 +0000
commitd9b826c890c366bbdd792bbbde921bc060552365 (patch)
tree3598170556a1b98e39d9dd9713efcb5dcc836a39 /sys-devel/gcc/files/stubs
parentstubs for gcc-4.0 (diff)
downloadhistorical-d9b826c890c366bbdd792bbbde921bc060552365.tar.gz
historical-d9b826c890c366bbdd792bbbde921bc060552365.tar.bz2
historical-d9b826c890c366bbdd792bbbde921bc060552365.zip
dont warn if they are disabling features
Diffstat (limited to 'sys-devel/gcc/files/stubs')
-rw-r--r--sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch5
-rw-r--r--sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch9
2 files changed, 8 insertions, 6 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
index 6b6d66338945..2be61a24013f 100644
--- a/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch
+++ b/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch
@@ -17,13 +17,14 @@
Recognize built-in functions
--- gcc-3.4.4/gcc/c-opts.c
+++ gcc-3.4.4/gcc/c-opts.c
-@@ -708,6 +708,11 @@ c_common_handle_option (size_t scode, co
+@@ -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:
-+ warning ("htb stub: bounds checking is not supported");
++ if (value)
++ warning ("htb stub: bounds checking is not supported");
+ break;
+
case OPT_fbuiltin:
diff --git a/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch b/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
index 74353d824c51..3f620f30caad 100644
--- a/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
+++ b/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
@@ -26,16 +26,17 @@
g
Common JoinedOrMissing
Generate debug information in default format
---- gcc-3.4.3.orig/gcc/opts.c 2005-01-10 20:01:46.000000000 -0800
-+++ gcc-3.4.3/gcc/opts.c 2005-01-11 00:04:13.000000000 -0800
-@@ -804,6 +807,12 @@ common_handle_option (size_t scode, cons
+--- 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:
-+ warning ("ssp stub: stack protector is not supported");
++ if (value)
++ warning ("ssp stub: stack protector is not supported");
+ break;
+
case OPT_aux_info: