aboutsummaryrefslogtreecommitdiff
path: root/4.1.2
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2009-11-13 18:30:56 +0000
committerMike Frysinger <vapier@gentoo.org>2009-11-13 18:30:56 +0000
commitb47f4981ea62d35f052f2f90b337f6e60e28e450 (patch)
treef00afdbb547d9bcde3506d8d386b374e88bdb7ed /4.1.2
parentdescribe the patch conventions for non-gentoo-ites (diff)
downloadgcc-patches-b47f4981ea62d35f052f2f90b337f6e60e28e450.tar.gz
gcc-patches-b47f4981ea62d35f052f2f90b337f6e60e28e450.tar.bz2
gcc-patches-b47f4981ea62d35f052f2f90b337f6e60e28e450.zip
alpha: turn -mcpu=<cpu> into -m<cpu> for assembler all the time #170146
Diffstat (limited to '4.1.2')
-rw-r--r--4.1.2/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch16
1 files changed, 16 insertions, 0 deletions
diff --git a/4.1.2/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch b/4.1.2/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch
new file mode 100644
index 0000000..034ddc2
--- /dev/null
+++ b/4.1.2/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch
@@ -0,0 +1,16 @@
+http://bugs.gentoo.org/170146
+http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00403.html
+
+alpha: turn -mcpu=<cpu> into -m<cpu> for assembler all the time
+
+--- gcc-x/gcc/config/alpha/elf.h
++++ gcc-x/gcc/config/alpha/elf.h
+@@ -46,7 +46,7 @@
+ #define CC1_SPEC "%{G*}"
+
+ #undef ASM_SPEC
+-#define ASM_SPEC "%{G*} %{relax:-relax} %{!gstabs*:-no-mdebug}%{gstabs*:-mdebug}"
++#define ASM_SPEC "%{G*} %{relax:-relax} %{!gstabs*:-no-mdebug}%{gstabs*:-mdebug} %{mcpu=*:-m%*}"
+
+ #undef IDENT_ASM_OP
+ #define IDENT_ASM_OP "\t.ident\t"