diff options
Diffstat (limited to 'meta/packages/gcc/gcc-4.3.1/debian/cross-fixes.dpatch')
-rw-r--r-- | meta/packages/gcc/gcc-4.3.1/debian/cross-fixes.dpatch | 129 |
1 files changed, 129 insertions, 0 deletions
diff --git a/meta/packages/gcc/gcc-4.3.1/debian/cross-fixes.dpatch b/meta/packages/gcc/gcc-4.3.1/debian/cross-fixes.dpatch new file mode 100644 index 0000000000..84d50bfd4a --- /dev/null +++ b/meta/packages/gcc/gcc-4.3.1/debian/cross-fixes.dpatch | |||
@@ -0,0 +1,129 @@ | |||
1 | #! /bin/sh -e | ||
2 | |||
3 | # DP: Fix the linker error when creating an xcc for ia64 | ||
4 | |||
5 | dir= | ||
6 | if [ $# -eq 3 -a "$2" = '-d' ]; then | ||
7 | pdir="-d $3" | ||
8 | dir="$3/" | ||
9 | elif [ $# -ne 1 ]; then | ||
10 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
11 | exit 1 | ||
12 | fi | ||
13 | case "$1" in | ||
14 | -patch) | ||
15 | patch $pdir -f --no-backup-if-mismatch -p1 < $0 | ||
16 | cd ${dir}gcc && autoconf | ||
17 | ;; | ||
18 | -unpatch) | ||
19 | patch $pdir -f --no-backup-if-mismatch -R -p1 < $0 | ||
20 | cd ${dir}gcc && autoconf | ||
21 | ;; | ||
22 | *) | ||
23 | echo >&2 "`basename $0`: script expects -patch|-unpatch as argument" | ||
24 | exit 1 | ||
25 | esac | ||
26 | exit 0 | ||
27 | |||
28 | diff -NurpP -x '*.orig' -x '*.libc' gcc-4.0.0.orig/gcc/config/ia64/fde-glibc.c gcc-4.0.0.new/gcc/config/ia64/fde-glibc.c | ||
29 | --- gcc-4.0.0.orig/gcc/config/ia64/fde-glibc.c 2003-11-02 18:35:20.000000000 +0100 | ||
30 | +++ gcc-4.0.0.new/gcc/config/ia64/fde-glibc.c 2005-05-15 02:42:27.675247674 +0200 | ||
31 | @@ -31,6 +31,7 @@ | ||
32 | #ifndef _GNU_SOURCE | ||
33 | #define _GNU_SOURCE 1 | ||
34 | #endif | ||
35 | +#ifndef inhibit_libc | ||
36 | #include "config.h" | ||
37 | #include <stddef.h> | ||
38 | #include <stdlib.h> | ||
39 | @@ -162,3 +163,5 @@ _Unwind_FindTableEntry (void *pc, unsign | ||
40 | |||
41 | return data.ret; | ||
42 | } | ||
43 | + | ||
44 | +#endif | ||
45 | diff -NurpP -x '*.orig' -x '*.libc' gcc-4.0.0.orig/gcc/config/ia64/unwind-ia64.c gcc-4.0.0.new/gcc/config/ia64/unwind-ia64.c | ||
46 | --- gcc-4.0.0.orig/gcc/config/ia64/unwind-ia64.c 2005-04-06 05:50:36.000000000 +0200 | ||
47 | +++ gcc-4.0.0.new/gcc/config/ia64/unwind-ia64.c 2005-05-15 02:43:10.842199954 +0200 | ||
48 | @@ -30,7 +30,7 @@ | ||
49 | This exception does not however invalidate any other reasons why | ||
50 | the executable file might be covered by the GNU General Public License. */ | ||
51 | |||
52 | - | ||
53 | +#ifndef inhibit_libc | ||
54 | #include "tconfig.h" | ||
55 | #include "tsystem.h" | ||
56 | #include "coretypes.h" | ||
57 | @@ -2404,3 +2404,4 @@ alias (_Unwind_SetIP); | ||
58 | #endif | ||
59 | |||
60 | #endif | ||
61 | +#endif | ||
62 | diff -NurpP -x '*.orig' -x '*.libc' gcc-4.0.0.orig/gcc/config/sh/linux-unwind.h gcc-4.0.0.new/gcc/config/sh/linux-unwind.h | ||
63 | --- gcc-4.0.0.orig/gcc/config/sh/linux-unwind.h 2005-02-11 02:12:57.000000000 +0100 | ||
64 | +++ gcc-4.0.0.new/gcc/config/sh/linux-unwind.h 2005-05-15 02:44:31.000000000 +0200 | ||
65 | @@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA. */ | ||
66 | /* Do code reading to identify a signal frame, and set the frame | ||
67 | state data appropriately. See unwind-dw2.c for the structs. */ | ||
68 | |||
69 | +#ifndef inhibit_libc | ||
70 | #include <signal.h> | ||
71 | #include <sys/ucontext.h> | ||
72 | #include "insn-constants.h" | ||
73 | @@ -169,3 +170,4 @@ sh_fallback_frame_state (struct _Unwind_ | ||
74 | return _URC_NO_REASON; | ||
75 | } | ||
76 | #endif /* defined (__SH5__) */ | ||
77 | +#endif | ||
78 | diff -NurpP -x '*.orig' -x '*.libc' gcc-4.0.0.orig/gcc/unwind-compat.c gcc-4.0.0.new/gcc/unwind-compat.c | ||
79 | --- gcc-4.0.0.orig/gcc/unwind-compat.c 2004-09-04 02:15:40.000000000 +0200 | ||
80 | +++ gcc-4.0.0.new/gcc/unwind-compat.c 2005-05-15 02:41:17.000000000 +0200 | ||
81 | @@ -29,6 +29,7 @@ | ||
82 | 02110-1301, USA. */ | ||
83 | |||
84 | #if defined (USE_GAS_SYMVER) && defined (USE_LIBUNWIND_EXCEPTIONS) | ||
85 | +#ifndef inhibit_libc | ||
86 | #include "tconfig.h" | ||
87 | #include "tsystem.h" | ||
88 | #include "unwind.h" | ||
89 | @@ -204,3 +205,4 @@ _Unwind_SetIP (struct _Unwind_Context *c | ||
90 | } | ||
91 | symver (_Unwind_SetIP, GCC_3.0); | ||
92 | #endif | ||
93 | +#endif | ||
94 | diff -NurpP -x '*.orig' -x '*.libc' gcc-4.0.0.orig/gcc/unwind-generic.h gcc-4.0.0.new/gcc/unwind-generic.h | ||
95 | --- gcc-4.0.0.orig/gcc/unwind-generic.h 2004-11-30 09:15:39.000000000 +0100 | ||
96 | +++ gcc-4.0.0.new/gcc/unwind-generic.h 2005-05-15 02:38:33.000000000 +0200 | ||
97 | @@ -202,6 +202,7 @@ extern _Unwind_Reason_Code _Unwind_SjLj_ | ||
98 | compatible with the standard ABI for IA-64, we inline these. */ | ||
99 | |||
100 | #ifdef __ia64__ | ||
101 | +#ifndef inhibit_libc | ||
102 | #include <stdlib.h> | ||
103 | |||
104 | static inline _Unwind_Ptr | ||
105 | @@ -220,6 +221,7 @@ _Unwind_GetTextRelBase (struct _Unwind_C | ||
106 | |||
107 | /* @@@ Retrieve the Backing Store Pointer of the given context. */ | ||
108 | extern _Unwind_Word _Unwind_GetBSP (struct _Unwind_Context *); | ||
109 | +#endif | ||
110 | #else | ||
111 | extern _Unwind_Ptr _Unwind_GetDataRelBase (struct _Unwind_Context *); | ||
112 | extern _Unwind_Ptr _Unwind_GetTextRelBase (struct _Unwind_Context *); | ||
113 | diff -NurpP -x '*.orig' -x '*.libc' gcc-4.0.0.new/gcc/config/alpha/linux-unwind.h gcc-4.0.0.new2/gcc/config/alpha/linux-unwind.h | ||
114 | --- gcc-4.0.0.new/gcc/config/alpha/linux-unwind.h 2005-02-11 02:12:54.000000000 +0100 | ||
115 | +++ gcc-4.0.0.new2/gcc/config/alpha/linux-unwind.h 2005-05-15 05:09:16.000000000 +0200 | ||
116 | @@ -29,6 +29,7 @@ Boston, MA 02111-1307, USA. */ | ||
117 | /* Do code reading to identify a signal frame, and set the frame | ||
118 | state data appropriately. See unwind-dw2.c for the structs. */ | ||
119 | |||
120 | +#ifndef inhibit_libc | ||
121 | #include <signal.h> | ||
122 | #include <sys/ucontext.h> | ||
123 | |||
124 | @@ -80,3 +81,5 @@ alpha_fallback_frame_state (struct _Unwi | ||
125 | fs->retaddr_column = 64; | ||
126 | return _URC_NO_REASON; | ||
127 | } | ||
128 | + | ||
129 | +#endif | ||