patches/gcc/3.2.3/150-ppc-asm-spec.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Wed Oct 15 21:29:56 2008 +0000 (2008-10-15)
changeset 940 f0f9ba3f98f2
parent 402 197e1b49586e
permissions -rw-r--r--
Cheesy kconfig stuff:
- silent/quiet/verbose build:
- ct-ng by default only prints quit messages, such as "CC xxx",
- if using V=0, nothing is printed,
- if using V=1, the full command lines are printed,
- other values are indeterminate,
- should help in debugging the kconfig stuff;
- complete kconfig/{,m}conf generation:
- fully dynamic dependencies on source files,
- compilation of .c into .o, then linking (instead of direct linking),
- VPATH usage when not --local;
Typo + a coment moved.

/trunk/kconfig/kconfig.mk | 140 87 53 0 +++++++++++++++++++++++++++++++++--------------------
/trunk/tools/tools.mk | 12 6 6 0 ++--
/trunk/steps.mk | 6 3 3 0 +-
/trunk/samples/samples.mk | 30 15 15 0 +++++-----
/trunk/ct-ng.in | 40 28 12 0 +++++++++++----
5 files changed, 139 insertions(+), 89 deletions(-)
     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/ccYph3gd.s: Assembler messages:
     6 /tmp/ccYph3gd.s:3823: Error: Unrecognized opcode: `mfvrsave'
     7 /tmp/ccYph3gd.s:3857: Error: Unrecognized opcode: `stvx'
     8 /tmp/ccYph3gd.s:4026: Error: Unrecognized opcode: `lvx'
     9 /tmp/ccYph3gd.s:4027: 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.2.3-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.2.3-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.2.3/gcc/config/rs6000/rs6000.h~	2003-03-29 07:39:20.000000000 -0500
    24 +++ gcc-3.2.3/gcc/config/rs6000/rs6000.h	2004-08-23 16:33:21.000000000 -0400
    25 @@ -77,8 +77,8 @@
    26  %{mcpu=604e: -D_ARCH_PPC} \
    27  %{mcpu=620: -D_ARCH_PPC} \
    28  %{mcpu=740: -D_ARCH_PPC} \
    29 -%{mcpu=7400: -D_ARCH_PPC} \
    30 -%{mcpu=7450: -D_ARCH_PPC} \
    31 +%{mcpu=7400: -D_ARCH_PPC -D__ALTIVEC__} \
    32 +%{mcpu=7450: -D_ARCH_PPC -D__ALTIVEC__} \
    33  %{mcpu=750: -D_ARCH_PPC} \
    34  %{mcpu=801: -D_ARCH_PPC} \
    35  %{mcpu=821: -D_ARCH_PPC} \
    36 @@ -117,14 +117,15 @@
    37  %{mcpu=604e: -mppc} \
    38  %{mcpu=620: -mppc} \
    39  %{mcpu=740: -mppc} \
    40 -%{mcpu=7400: -mppc} \
    41 -%{mcpu=7450: -mppc} \
    42 +%{mcpu=7400: -mppc -maltivec} \
    43 +%{mcpu=7450: -mppc -maltivec} \
    44  %{mcpu=750: -mppc} \
    45  %{mcpu=801: -mppc} \
    46  %{mcpu=821: -mppc} \
    47  %{mcpu=823: -mppc} \
    48  %{mcpu=860: -mppc} \
    49 -%{maltivec: -maltivec}"
    50 +%{maltivec: -maltivec} \
    51 +-many"
    52  
    53  #define CPP_DEFAULT_SPEC ""
    54