diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/mips-triarch.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/mips-triarch.dpatch | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/mips-triarch.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/mips-triarch.dpatch new file mode 100644 index 0000000000..5738bb4791 --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/mips-triarch.dpatch | |||
@@ -0,0 +1,61 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Patch author: Stuart Anderson <anderson@netsweng.com> | ||
4 | # DP: Upstream status: Not submitted | ||
5 | # DP: Description: add full tri-arch support. Include linux64.h also fix up | ||
6 | # DP: Description: the directory names so that o32 is the default and follow | ||
7 | # DP: Description: the glibc convention for 32 & 64 bit names | ||
8 | |||
9 | dir= | ||
10 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
11 | pdir="-d $3" | ||
12 | dir="$3/" | ||
13 | elif [ $# -ne 1 ]; then | ||
14 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
15 | exit 1 | ||
16 | fi | ||
17 | case "$1" in | ||
18 | -patch) | ||
19 | patch $pdir -f --no-backup-if-mismatch -p1 < $0 | ||
20 | ;; | ||
21 | -unpatch) | ||
22 | patch $pdir -f --no-backup-if-mismatch -R -p1 < $0 | ||
23 | ;; | ||
24 | *) | ||
25 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
26 | exit 1 | ||
27 | esac | ||
28 | exit 0 | ||
29 | |||
30 | --- src/gcc/config/mips/linux64.h 2007-08-02 12:49:31.000000000 +0200 | ||
31 | +++ src/gcc/config/mips/linux64.h 2008-03-14 14:33:41.000000000 +0100 | ||
32 | @@ -24,7 +24,7 @@ | ||
33 | #define DRIVER_SELF_SPECS \ | ||
34 | NO_SHARED_SPECS \ | ||
35 | " %{!EB:%{!EL:%(endian_spec)}}" \ | ||
36 | -" %{!mabi=*: -mabi=n32}" | ||
37 | +" %{!mabi=*: -mabi=32}" | ||
38 | |||
39 | #undef SUBTARGET_ASM_SPEC | ||
40 | #define SUBTARGET_ASM_SPEC "\ | ||
41 | --- src/gcc/config/mips/t-linux64 2006-06-06 14:51:24.000000000 +0200 | ||
42 | +++ src/gcc/config/mips/t-linux64 2008-03-14 14:26:21.000000000 +0100 | ||
43 | @@ -1,5 +1,5 @@ | ||
44 | MULTILIB_OPTIONS = mabi=n32/mabi=32/mabi=64 | ||
45 | -MULTILIB_DIRNAMES = n32 32 64 | ||
46 | +MULTILIB_DIRNAMES = n32 . 64 | ||
47 | MULTILIB_OSDIRNAMES = ../lib32 ../lib ../lib64 | ||
48 | |||
49 | EXTRA_MULTILIB_PARTS=crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o | ||
50 | --- src/gcc/config.gcc 2008-01-29 17:28:10.000000000 +0100 | ||
51 | +++ src/gcc/config.gcc 2008-03-14 14:26:21.000000000 +0100 | ||
52 | @@ -1680,7 +1680,8 @@ | ||
53 | test x$with_llsc != x || with_llsc=yes | ||
54 | ;; | ||
55 | mips*-*-linux*) # Linux MIPS, either endian. | ||
56 | - tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h" | ||
57 | + tm_file="dbxelf.h elfos.h svr4.h linux.h ${tm_file} mips/linux.h mips/linux64.h" | ||
58 | + tmake_file="${tmake_file} mips/t-linux64" | ||
59 | case ${target} in | ||
60 | mipsisa32r2*) | ||
61 | tm_defines="${tm_defines} MIPS_ISA_DEFAULT=33" | ||