patches/gcc/3.4.0/gcc-3.3.3h-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 Retrieved from http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/config/rs6000/rs6000.h.diff?r1=1.234.2.28&r2=1.234.2.29
     2 
     3 Should fix following error building gcc for ppc7450:
     4 
     5 /tmp/ccmfQBT9.s:5197: Error: Unrecognized opcode: `lvx'
     6 make[2]: *** [libgcc/./unwind-dw2.o] Error 1
     7 make[2]: Leaving directory `build-gcc-core/gcc'
     8 make[1]: *** [stmp-multilib] Error 2
     9 make[1]: Leaving directory `build-gcc-core/gcc'
    10 make: *** [all-gcc] Error 2
    11 
    12 (I'm not so sure about the unconditional -many it sends to binutils;
    13 that seems redundant?)
    14 
    15 Revision 1.234.2.29, Tue May 25 06:08:57 2004 UTC (6 days, 11 hours ago) by amodra
    16 Branch: hammer-3_3-branch
    17 Changes since 1.234.2.28: +15 -11 lines
    18 
    19 	* config/rs6000/rs6000.h (ASM_CPU_SPEC): Handle -mpowerpc64 and -mcpu
    20 	for power5 and rs64a.  Correct condition for default.  Correct power3,
    21 	620, 630, 7400, 7450, G4, 970 and G5 -mcpu entries.  Add -many.
    22 
    23 ===================================================================
    24 RCS file: /cvs/gcc/gcc/gcc/config/rs6000/rs6000.h,v
    25 retrieving revision 1.234.2.28
    26 retrieving revision 1.234.2.29
    27 diff -u -r1.234.2.28 -r1.234.2.29
    28 --- gcc/gcc/config/rs6000/rs6000.h	2004/05/18 14:26:57	1.234.2.28
    29 +++ gcc/gcc/config/rs6000/rs6000.h	2004/05/25 06:08:57	1.234.2.29
    30 @@ -51,20 +51,23 @@
    31  "%{!mcpu*: \
    32    %{mpower: %{!mpower2: -mpwr}} \
    33    %{mpower2: -mpwrx} \
    34 -  %{mpowerpc*: -mppc} \
    35 +  %{mpowerpc64*: -mppc64} \
    36 +  %{!mpowerpc64*: %{mpowerpc*: -mppc}} \
    37    %{mno-power: %{!mpowerpc*: -mcom}} \
    38 -  %{!mno-power: %{!mpower2: %(asm_default)}}} \
    39 +  %{!mno-power: %{!mpower*: %(asm_default)}}} \
    40  %{mcpu=common: -mcom} \
    41  %{mcpu=power: -mpwr} \
    42  %{mcpu=power2: -mpwrx} \
    43 -%{mcpu=power3: -m604} \
    44 +%{mcpu=power3: -mppc64} \
    45  %{mcpu=power4: -mpower4} \
    46 +%{mcpu=power5: -mpower4} \
    47  %{mcpu=powerpc: -mppc} \
    48  %{mcpu=rios: -mpwr} \
    49  %{mcpu=rios1: -mpwr} \
    50  %{mcpu=rios2: -mpwrx} \
    51  %{mcpu=rsc: -mpwr} \
    52  %{mcpu=rsc1: -mpwr} \
    53 +%{mcpu=rs64a: -mppc64} \
    54  %{mcpu=401: -mppc} \
    55  %{mcpu=403: -m403} \
    56  %{mcpu=405: -m405} \
    57 @@ -79,22 +82,23 @@
    58  %{mcpu=ec603e: -mppc} \
    59  %{mcpu=604: -mppc} \
    60  %{mcpu=604e: -mppc} \
    61 -%{mcpu=620: -mppc} \
    62 -%{mcpu=630: -m604} \
    63 +%{mcpu=620: -mppc64} \
    64 +%{mcpu=630: -mppc64} \
    65  %{mcpu=740: -mppc} \
    66 -%{mcpu=7400: -mppc} \
    67 -%{mcpu=7450: -mppc} \
    68 -%{mcpu=G4: -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} \
    79 -%{mcpu=G5: -mpower4} \
    80 +%{mcpu=970: -mpower4 -maltivec} \
    81 +%{mcpu=G5: -mpower4 -maltivec} \
    82  %{mcpu=8540: -me500} \
    83 -%{maltivec: -maltivec}"
    84 +%{maltivec: -maltivec} \
    85 +-many"
    86  
    87  #define CPP_DEFAULT_SPEC ""
    88