patches/gcc/3.3.4/gcc-3.3.4-ppc-asm-spec.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Feb 24 11:00:05 2007 +0000 (2007-02-24)
changeset 1 eeea35fbf182
permissions -rw-r--r--
Add the full crosstool-NG sources to the new repository of its own.
You might just say: 'Yeah! crosstool-NG's got its own repo!".
Unfortunately, that's because the previous repo got damaged beyond repair and I had no backup.
That means I'm putting backups in place in the afternoon.
That also means we've lost history... :-(
     1 Based on gcc-3.4.0/gcc-3.3.3h-ppc-asm-spec.patch
     2 
     3 Fixes the following errors when building gcc for ppc7450:
     4 
     5 /tmp/ccj38uQs.s: Assembler messages:
     6 /tmp/ccj38uQs.s:4370: Error: Unrecognized opcode: `mfvrsave'
     7 /tmp/ccj38uQs.s:4404: Error: Unrecognized opcode: `stvx'
     8 /tmp/ccj38uQs.s:4571: Error: Unrecognized opcode: `lvx'
     9 /tmp/ccj38uQs.s:4572: Error: Unrecognized opcode: `mtvrsave'
    10 make[2]: *** [libgcc/./unwind-dw2.o] Error 1
    11 make[2]: Leaving directory `/opt/crosstool-0.28-rc35/build/powerpc-7450-linux-gnu/gcc-3.3.4-glibc-2.3.2/build-gcc-core/gcc'
    12 make[1]: *** [stmp-multilib] Error 2
    13 make[1]: Leaving directory `/opt/crosstool-0.28-rc35/build/powerpc-7450-linux-gnu/gcc-3.3.4-glibc-2.3.2/build-gcc-core/gcc'
    14 make: *** [all-gcc] Error 2
    15 
    16 Note that the "-mcpu=7450" option must appear on the "gcc" command line in
    17 order for "-maltivec" to be passed to the assembler.  Or, "-maltivec" itself
    18 may be passed to the "gcc" command.
    19 
    20 Contributed by Tom Warzeka <waz@quahog.npt.nuwc.navy.mil>
    21 
    22 ===================================================================
    23 --- gcc-3.3.4/gcc/config/rs6000/rs6000.h~	2004-02-01 23:40:49.000000000 -0500
    24 +++ gcc-3.3.4/gcc/config/rs6000/rs6000.h	2004-08-18 14:15:57.000000000 -0400
    25 @@ -52,23 +52,29 @@
    26  "%{!mcpu*: \
    27    %{mpower: %{!mpower2: -mpwr}} \
    28    %{mpower2: -mpwrx} \
    29 -  %{mpowerpc*: -mppc} \
    30 +  %{mpowerpc64*: -mppc64} \
    31 +  %{!mpowerpc64*: %{mpowerpc*: -mppc}} \
    32    %{mno-power: %{!mpowerpc*: -mcom}} \
    33 -  %{!mno-power: %{!mpower2: %(asm_default)}}} \
    34 +  %{!mno-power: %{!mpower*: %(asm_default)}}} \
    35  %{mcpu=common: -mcom} \
    36  %{mcpu=power: -mpwr} \
    37  %{mcpu=power2: -mpwrx} \
    38 -%{mcpu=power3: -m604} \
    39 +%{mcpu=power3: -mppc64} \
    40  %{mcpu=power4: -mpower4} \
    41 +%{mcpu=power5: -mpower4} \
    42  %{mcpu=powerpc: -mppc} \
    43  %{mcpu=rios: -mpwr} \
    44  %{mcpu=rios1: -mpwr} \
    45  %{mcpu=rios2: -mpwrx} \
    46  %{mcpu=rsc: -mpwr} \
    47  %{mcpu=rsc1: -mpwr} \
    48 +%{mcpu=rs64a: -mppc64} \
    49  %{mcpu=401: -mppc} \
    50  %{mcpu=403: -m403} \
    51  %{mcpu=405: -m405} \
    52 +%{mcpu=405fp: -m405} \
    53 +%{mcpu=440: -m440} \
    54 +%{mcpu=440fp: -m440} \
    55  %{mcpu=505: -mppc} \
    56  %{mcpu=601: -m601} \
    57  %{mcpu=602: -mppc} \
    58 @@ -77,18 +83,23 @@
    59  %{mcpu=ec603e: -mppc} \
    60  %{mcpu=604: -mppc} \
    61  %{mcpu=604e: -mppc} \
    62 -%{mcpu=620: -mppc} \
    63 -%{mcpu=630: -m604} \
    64 +%{mcpu=620: -mppc64} \
    65 +%{mcpu=630: -mppc64} \
    66  %{mcpu=740: -mppc} \
    67 -%{mcpu=7400: -mppc} \
    68 -%{mcpu=7450: -mppc} \
    69  %{mcpu=750: -mppc} \
    70 +%{mcpu=G3: -mppc} \
    71 +%{mcpu=7400: -mppc -maltivec} \
    72 +%{mcpu=7450: -mppc -maltivec} \
    73 +%{mcpu=G4: -mppc -maltivec} \
    74  %{mcpu=801: -mppc} \
    75  %{mcpu=821: -mppc} \
    76  %{mcpu=823: -mppc} \
    77  %{mcpu=860: -mppc} \
    78 +%{mcpu=970: -mpower4 -maltivec} \
    79 +%{mcpu=G5: -mpower4 -maltivec} \
    80  %{mcpu=8540: -me500} \
    81 -%{maltivec: -maltivec}"
    82 +%{maltivec: -maltivec} \
    83 +-many"
    84  
    85  #define CPP_DEFAULT_SPEC ""
    86