patches/glibc/2.2.5/glibc-2.2.5-powerpc-as.patch
changeset 1 eeea35fbf182
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/patches/glibc/2.2.5/glibc-2.2.5-powerpc-as.patch	Sat Feb 24 11:00:05 2007 +0000
     1.3 @@ -0,0 +1,29 @@
     1.4 +Based on glibc-2.3.2/glibc-2.3.2-powerpc-as.patch
     1.5 +
     1.6 +Fixes the following errors when building glibc for ppc7450:
     1.7 +
     1.8 +/tmp/ccwlHdbl.s: Assembler messages:
     1.9 +/tmp/ccwlHdbl.s:73: Error: Unrecognized opcode: `stvx'
    1.10 +/tmp/ccwlHdbl.s:74: Error: Unrecognized opcode: `mfvrsave'
    1.11 +/tmp/ccwlHdbl.s:300: Error: Unrecognized opcode: `lvx'
    1.12 +/tmp/ccwlHdbl.s:302: Error: Unrecognized opcode: `mtvrsave'
    1.13 +make[2]: *** [/usr/local/src/crosstool-0.28-rc34/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.2.5/build-glibc/libio/iopopen.o] Error 1
    1.14 +make[2]: Leaving directory `/home/local/src/crosstool-0.28-rc34/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.2.5/glibc-2.2.5/libio'
    1.15 +make[1]: *** [libio/subdir_lib] Error 2
    1.16 +make[1]: Leaving directory `/home/local/src/crosstool-0.28-rc34/build/powerpc-7450-linux-gnu/gcc-3.2.3-glibc-2.2.5/glibc-2.2.5'
    1.17 +make: *** [all] Error 2
    1.18 +
    1.19 +Contributed by Tom Warzeka <waz@quahog.npt.nuwc.navy.mil>
    1.20 +
    1.21 +===================================================================
    1.22 +--- glibc-2.2.5/sysdeps/powerpc/Makefile~	2004-08-31 14:59:15.000000000 -0400
    1.23 ++++ glibc-2.2.5/sysdeps/powerpc/Makefile	2004-09-02 19:47:21.000000000 -0400
    1.24 +@@ -1,7 +1,6 @@
    1.25 + # We always want to use the new mnemonic syntax even if we are on a RS6000
    1.26 + # machine.
    1.27 +-+cflags += -mnew-mnemonics -Wa,-mppc -mpowerpc
    1.28 +-asm-CPPFLAGS += -Wa,-mppc
    1.29 +++cflags += -mnew-mnemonics
    1.30 + 
    1.31 + ifeq ($(subdir),gmon)
    1.32 + sysdep_routines += ppc-mcount