patches/gcc/3.2.3/150-gcc-3.2.3-ppc-asm-spec.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sat Apr 26 21:31:05 2008 +0000 (2008-04-26)
changeset 454 372b2f397baa
permissions -rw-r--r--
Configure tsocks with a simple heuristic.

Consider the proxy has to be in a 'local' network. It means it is directly
reachable by the local machine, even if the local machine has to hop through
one or more gates to reach the proxy (often the case in enterprise networks
where class A 10.0.0.0/8 is in fact sub-divided into smaller networks, each
one of them in a different location, eg. 10.1.0.0/16 in a place, while
10.2.0.0/16 would be on the other side of the world). Not being in the same
subnet does not mean the proxy is not available.

So we will build a mask with at most high bits set, which defines a network
that has both the local machine and the proxy. Because a machine may have
more than one interface, build a mask for each of them, removing 127.0.0.1
which is added automagically by tsocks, and removing duplicate masks.

If all of this does not work, then it means the local machine can NOT in fact
reach the proxy, which in turn means the user mis-configured something (most
probably a typo...).

/trunk/scripts/crosstool.sh | 61 52 9 0 +++++++++++++++++++++++++++++++++++++++++++--------
1 file changed, 52 insertions(+), 9 deletions(-)
yann@402
     1
Based on gcc-3.4.0/gcc-3.3.3h-ppc-asm-spec.patch
yann@402
     2
yann@402
     3
Fixes the following errors when building gcc for ppc7450:
yann@402
     4
yann@402
     5
/tmp/ccYph3gd.s: Assembler messages:
yann@402
     6
/tmp/ccYph3gd.s:3823: Error: Unrecognized opcode: `mfvrsave'
yann@402
     7
/tmp/ccYph3gd.s:3857: Error: Unrecognized opcode: `stvx'
yann@402
     8
/tmp/ccYph3gd.s:4026: Error: Unrecognized opcode: `lvx'
yann@402
     9
/tmp/ccYph3gd.s:4027: Error: Unrecognized opcode: `mtvrsave'
yann@402
    10
make[2]: *** [libgcc/./unwind-dw2.o] Error 1
yann@402
    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'
yann@402
    12
make[1]: *** [stmp-multilib] Error 2
yann@402
    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'
yann@402
    14
make: *** [all-gcc] Error 2
yann@402
    15
yann@402
    16
Note that the "-mcpu=7450" option must appear on the "gcc" command line in
yann@402
    17
order for "-maltivec" to be passed to the assembler.  Or, "-maltivec" itself
yann@402
    18
may be passed to the "gcc" command.
yann@402
    19
yann@402
    20
Contributed by Tom Warzeka <waz@quahog.npt.nuwc.navy.mil>
yann@402
    21
yann@402
    22
===================================================================
yann@402
    23
--- gcc-3.2.3/gcc/config/rs6000/rs6000.h~	2003-03-29 07:39:20.000000000 -0500
yann@402
    24
+++ gcc-3.2.3/gcc/config/rs6000/rs6000.h	2004-08-23 16:33:21.000000000 -0400
yann@402
    25
@@ -77,8 +77,8 @@
yann@402
    26
 %{mcpu=604e: -D_ARCH_PPC} \
yann@402
    27
 %{mcpu=620: -D_ARCH_PPC} \
yann@402
    28
 %{mcpu=740: -D_ARCH_PPC} \
yann@402
    29
-%{mcpu=7400: -D_ARCH_PPC} \
yann@402
    30
-%{mcpu=7450: -D_ARCH_PPC} \
yann@402
    31
+%{mcpu=7400: -D_ARCH_PPC -D__ALTIVEC__} \
yann@402
    32
+%{mcpu=7450: -D_ARCH_PPC -D__ALTIVEC__} \
yann@402
    33
 %{mcpu=750: -D_ARCH_PPC} \
yann@402
    34
 %{mcpu=801: -D_ARCH_PPC} \
yann@402
    35
 %{mcpu=821: -D_ARCH_PPC} \
yann@402
    36
@@ -117,14 +117,15 @@
yann@402
    37
 %{mcpu=604e: -mppc} \
yann@402
    38
 %{mcpu=620: -mppc} \
yann@402
    39
 %{mcpu=740: -mppc} \
yann@402
    40
-%{mcpu=7400: -mppc} \
yann@402
    41
-%{mcpu=7450: -mppc} \
yann@402
    42
+%{mcpu=7400: -mppc -maltivec} \
yann@402
    43
+%{mcpu=7450: -mppc -maltivec} \
yann@402
    44
 %{mcpu=750: -mppc} \
yann@402
    45
 %{mcpu=801: -mppc} \
yann@402
    46
 %{mcpu=821: -mppc} \
yann@402
    47
 %{mcpu=823: -mppc} \
yann@402
    48
 %{mcpu=860: -mppc} \
yann@402
    49
-%{maltivec: -maltivec}"
yann@402
    50
+%{maltivec: -maltivec} \
yann@402
    51
+-many"
yann@402
    52
 
yann@402
    53
 #define CPP_DEFAULT_SPEC ""
yann@402
    54