1.1 --- a/patches/gcc/3.2.3/150-ppc-asm-spec.patch Wed Oct 28 12:03:38 2009 +0100
1.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000
1.3 @@ -1,54 +0,0 @@
1.4 -Based on gcc-3.4.0/gcc-3.3.3h-ppc-asm-spec.patch
1.5 -
1.6 -Fixes the following errors when building gcc for ppc7450:
1.7 -
1.8 -/tmp/ccYph3gd.s: Assembler messages:
1.9 -/tmp/ccYph3gd.s:3823: Error: Unrecognized opcode: `mfvrsave'
1.10 -/tmp/ccYph3gd.s:3857: Error: Unrecognized opcode: `stvx'
1.11 -/tmp/ccYph3gd.s:4026: Error: Unrecognized opcode: `lvx'
1.12 -/tmp/ccYph3gd.s:4027: Error: Unrecognized opcode: `mtvrsave'
1.13 -make[2]: *** [libgcc/./unwind-dw2.o] Error 1
1.14 -make[2]: Leaving directory `/opt/crosstool-0.28-rc35/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.3.2/build-gcc-core/gcc'
1.15 -make[1]: *** [stmp-multilib] Error 2
1.16 -make[1]: Leaving directory `/opt/crosstool-0.28-rc35/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.3.2/build-gcc-core/gcc'
1.17 -make: *** [all-gcc] Error 2
1.18 -
1.19 -Note that the "-mcpu=7450" option must appear on the "gcc" command line in
1.20 -order for "-maltivec" to be passed to the assembler. Or, "-maltivec" itself
1.21 -may be passed to the "gcc" command.
1.22 -
1.23 -Contributed by Tom Warzeka <waz@quahog.npt.nuwc.navy.mil>
1.24 -
1.25 -===================================================================
1.26 ---- gcc-3.2.3/gcc/config/rs6000/rs6000.h~ 2003-03-29 07:39:20.000000000 -0500
1.27 -+++ gcc-3.2.3/gcc/config/rs6000/rs6000.h 2004-08-23 16:33:21.000000000 -0400
1.28 -@@ -77,8 +77,8 @@
1.29 - %{mcpu=604e: -D_ARCH_PPC} \
1.30 - %{mcpu=620: -D_ARCH_PPC} \
1.31 - %{mcpu=740: -D_ARCH_PPC} \
1.32 --%{mcpu=7400: -D_ARCH_PPC} \
1.33 --%{mcpu=7450: -D_ARCH_PPC} \
1.34 -+%{mcpu=7400: -D_ARCH_PPC -D__ALTIVEC__} \
1.35 -+%{mcpu=7450: -D_ARCH_PPC -D__ALTIVEC__} \
1.36 - %{mcpu=750: -D_ARCH_PPC} \
1.37 - %{mcpu=801: -D_ARCH_PPC} \
1.38 - %{mcpu=821: -D_ARCH_PPC} \
1.39 -@@ -117,14 +117,15 @@
1.40 - %{mcpu=604e: -mppc} \
1.41 - %{mcpu=620: -mppc} \
1.42 - %{mcpu=740: -mppc} \
1.43 --%{mcpu=7400: -mppc} \
1.44 --%{mcpu=7450: -mppc} \
1.45 -+%{mcpu=7400: -mppc -maltivec} \
1.46 -+%{mcpu=7450: -mppc -maltivec} \
1.47 - %{mcpu=750: -mppc} \
1.48 - %{mcpu=801: -mppc} \
1.49 - %{mcpu=821: -mppc} \
1.50 - %{mcpu=823: -mppc} \
1.51 - %{mcpu=860: -mppc} \
1.52 --%{maltivec: -maltivec}"
1.53 -+%{maltivec: -maltivec} \
1.54 -+-many"
1.55 -
1.56 - #define CPP_DEFAULT_SPEC ""
1.57 -