~angelsl/ubuntu/wily/gcc-5/mips-cross

« back to all changes in this revision

Viewing changes to debian/patches/cross-fixes.diff

  • Committer: angelsl
  • Date: 2015-10-30 03:30:35 UTC
  • Revision ID: angelsl-20151030033035-rmug41zm8hyjgisg
Original import

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
# DP: Fix the linker error when creating an xcc for ia64
 
2
 
 
3
---
 
4
 gcc/config/ia64/fde-glibc.c     |    3 +++
 
5
 gcc/config/ia64/unwind-ia64.c   |    3 ++-
 
6
 gcc/unwind-compat.c             |    2 ++
 
7
 gcc/unwind-generic.h            |    2 ++
 
8
 6 files changed, 14 insertions(+), 1 deletions(-)
 
9
 
 
10
Index: b/src/libgcc/config/ia64/fde-glibc.c
 
11
===================================================================
 
12
--- a/src/libgcc/config/ia64/fde-glibc.c
 
13
+++ b/src/libgcc/config/ia64/fde-glibc.c
 
14
@@ -28,6 +28,7 @@
 
15
 #ifndef _GNU_SOURCE
 
16
 #define _GNU_SOURCE 1
 
17
 #endif
 
18
+#ifndef inhibit_libc
 
19
 #include "config.h"
 
20
 #include <stddef.h>
 
21
 #include <stdlib.h>
 
22
@@ -159,3 +160,5 @@
 
23
 
 
24
   return data.ret;
 
25
 }
 
26
+
 
27
+#endif
 
28
Index: b/src/libgcc/config/ia64/unwind-ia64.c
 
29
===================================================================
 
30
--- a/src/libgcc/config/ia64/unwind-ia64.c
 
31
+++ b/src/libgcc/config/ia64/unwind-ia64.c
 
32
@@ -27,6 +27,7 @@
 
33
    see the files COPYING3 and COPYING.RUNTIME respectively.  If not, see
 
34
    <http://www.gnu.org/licenses/>.  */
 
35
 
 
36
+#ifndef inhibit_libc
 
37
 #include "tconfig.h"
 
38
 #include "tsystem.h"
 
39
 #include "coretypes.h"
 
40
@@ -2467,3 +2468,4 @@
 
41
 #endif
 
42
 
 
43
 #endif
 
44
+#endif
 
45
Index: b/src/libgcc/unwind-compat.c
 
46
===================================================================
 
47
--- a/src/libgcc/unwind-compat.c
 
48
+++ b/src/libgcc/unwind-compat.c
 
49
@@ -24,6 +24,7 @@
 
50
    <http://www.gnu.org/licenses/>.  */
 
51
 
 
52
 #if defined (USE_GAS_SYMVER) && defined (USE_LIBUNWIND_EXCEPTIONS)
 
53
+#ifndef inhibit_libc
 
54
 #include "tconfig.h"
 
55
 #include "tsystem.h"
 
56
 #include "unwind.h"
 
57
@@ -208,3 +209,4 @@
 
58
 }
 
59
 symver (_Unwind_SetIP, GCC_3.0);
 
60
 #endif
 
61
+#endif
 
62
Index: b/src/libgcc/unwind-generic.h
 
63
===================================================================
 
64
--- a/src/libgcc/unwind-generic.h
 
65
+++ b/src/libgcc/unwind-generic.h
 
66
@@ -221,6 +221,7 @@
 
67
    compatible with the standard ABI for IA-64, we inline these.  */
 
68
 
 
69
 #ifdef __ia64__
 
70
+#ifndef inhibit_libc
 
71
 #include <stdlib.h>
 
72
 
 
73
 static inline _Unwind_Ptr
 
74
@@ -239,6 +240,7 @@
 
75
 
 
76
 /* @@@ Retrieve the Backing Store Pointer of the given context.  */
 
77
 extern _Unwind_Word _Unwind_GetBSP (struct _Unwind_Context *);
 
78
+#endif
 
79
 #else
 
80
 extern _Unwind_Ptr _Unwind_GetDataRelBase (struct _Unwind_Context *);
 
81
 extern _Unwind_Ptr _Unwind_GetTextRelBase (struct _Unwind_Context *);