mgl@1986
|
1 |
Fix for canadian cross build of sim/ppc
|
mgl@1986
|
2 |
|
mgl@1986
|
3 |
Orignal patch info see: http://sources.redhat.com/bugzilla/show_bug.cgi?id=9638
|
mgl@1986
|
4 |
|
mgl@1986
|
5 |
diff -urN gdb-6.8-pl1/sim/ppc/Makefile.in gdb-6.8-pl2/sim/ppc/Makefile.in
|
mgl@1986
|
6 |
--- gdb-6.8-pl1/sim/ppc/Makefile.in 2006-05-31 17:14:45.000000000 +0200
|
mgl@1986
|
7 |
+++ gdb-6.8-pl2/sim/ppc/Makefile.in 2008-09-30 15:56:33.000000000 +0200
|
mgl@1986
|
8 |
@@ -61,7 +61,7 @@
|
mgl@1986
|
9 |
AR = @AR@
|
mgl@1986
|
10 |
AR_FLAGS = rc
|
mgl@1986
|
11 |
CC = @CC@
|
mgl@1986
|
12 |
-CFLAGS = @CFLAGS@
|
mgl@1986
|
13 |
+CFLAGS = @CFLAGS@ -DHAVE_CONFIG_H
|
mgl@1986
|
14 |
CC_FOR_BUILD = @CC_FOR_BUILD@
|
mgl@1986
|
15 |
CFLAGS_FOR_BUILD = @CFLAGS_FOR_BUILD@
|
mgl@1986
|
16 |
BISON = bison
|
mgl@1986
|
17 |
@@ -115,8 +115,8 @@
|
mgl@1986
|
18 |
$(DEVZERO_CFLAGS)
|
mgl@1986
|
19 |
SIM_FPU_CFLAGS = @sim_fpu_cflags@
|
mgl@1986
|
20 |
|
mgl@1986
|
21 |
-STD_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
|
mgl@1986
|
22 |
-NOWARN_CFLAGS = $(CFLAGS) $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS)
|
mgl@1986
|
23 |
+STD_CFLAGS = $(CFLAGS) -DHAVE_CONFIG_H $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(WARNING_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(INTL_CFLAGS) $(SIM_FPU_CFLAGS)
|
mgl@1986
|
24 |
+NOWARN_CFLAGS = $(CFLAGS) -DHAVE_CONFIG_H $(INLINE_CFLAGS) $(CONFIG_CFLAGS) $(SIM_CFLAGS) $(HDEFINES) $(TDEFINES) $(INCLUDES) $(SIM_FPU_CFLAGS)
|
mgl@1986
|
25 |
BUILD_CFLAGS = $(CFLAGS_FOR_BUILD) $(INCLUDES) $(WARNING_CFLAGS)
|
mgl@1986
|
26 |
|
mgl@1986
|
27 |
BUILD_LDFLAGS =
|
mgl@1986
|
28 |
diff -urN gdb-6.8-orig/sim/ppc/basics.h gdb-6.8-pl1/sim/ppc/basics.h
|
mgl@1986
|
29 |
--- gdb-6.8-orig/sim/ppc/basics.h 1999-04-16 03:35:08.000000000 +0200
|
mgl@1986
|
30 |
+++ gdb-6.8-pl1/sim/ppc/basics.h 2008-09-30 15:12:32.000000000 +0200
|
mgl@1986
|
31 |
@@ -86,7 +86,9 @@
|
mgl@1986
|
32 |
|
mgl@1986
|
33 |
/* Basic configuration */
|
mgl@1986
|
34 |
|
mgl@1986
|
35 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
36 |
#include "config.h"
|
mgl@1986
|
37 |
+#endif
|
mgl@1986
|
38 |
#include "ppc-config.h"
|
mgl@1986
|
39 |
#include "inline.h"
|
mgl@1986
|
40 |
|
mgl@1986
|
41 |
diff -urN gdb-6.8-orig/sim/ppc/debug.c gdb-6.8-pl1/sim/ppc/debug.c
|
mgl@1986
|
42 |
--- gdb-6.8-orig/sim/ppc/debug.c 1999-04-16 03:35:08.000000000 +0200
|
mgl@1986
|
43 |
+++ gdb-6.8-pl1/sim/ppc/debug.c 2008-09-30 15:12:27.000000000 +0200
|
mgl@1986
|
44 |
@@ -22,7 +22,9 @@
|
mgl@1986
|
45 |
#ifndef _DEBUG_C_
|
mgl@1986
|
46 |
#define _DEBUG_C_
|
mgl@1986
|
47 |
|
mgl@1986
|
48 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
49 |
#include "config.h"
|
mgl@1986
|
50 |
+#endif
|
mgl@1986
|
51 |
#include "basics.h"
|
mgl@1986
|
52 |
|
mgl@1986
|
53 |
#ifdef HAVE_STDLIB_H
|
mgl@1986
|
54 |
diff -urN gdb-6.8-orig/sim/ppc/dgen.c gdb-6.8-pl1/sim/ppc/dgen.c
|
mgl@1986
|
55 |
--- gdb-6.8-orig/sim/ppc/dgen.c 1999-04-16 03:35:08.000000000 +0200
|
mgl@1986
|
56 |
+++ gdb-6.8-pl1/sim/ppc/dgen.c 2008-09-30 15:12:22.000000000 +0200
|
mgl@1986
|
57 |
@@ -27,7 +27,9 @@
|
mgl@1986
|
58 |
#include <ctype.h>
|
mgl@1986
|
59 |
#include <stdarg.h>
|
mgl@1986
|
60 |
|
mgl@1986
|
61 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
62 |
#include "config.h"
|
mgl@1986
|
63 |
+#endif
|
mgl@1986
|
64 |
#include "misc.h"
|
mgl@1986
|
65 |
#include "lf.h"
|
mgl@1986
|
66 |
#include "table.h"
|
mgl@1986
|
67 |
diff -urN gdb-6.8-orig/sim/ppc/filter.c gdb-6.8-pl1/sim/ppc/filter.c
|
mgl@1986
|
68 |
--- gdb-6.8-orig/sim/ppc/filter.c 1999-04-16 03:35:09.000000000 +0200
|
mgl@1986
|
69 |
+++ gdb-6.8-pl1/sim/ppc/filter.c 2008-09-30 15:12:15.000000000 +0200
|
mgl@1986
|
70 |
@@ -21,7 +21,9 @@
|
mgl@1986
|
71 |
|
mgl@1986
|
72 |
#include <stdio.h>
|
mgl@1986
|
73 |
|
mgl@1986
|
74 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
75 |
#include "config.h"
|
mgl@1986
|
76 |
+#endif
|
mgl@1986
|
77 |
|
mgl@1986
|
78 |
#ifdef HAVE_STRING_H
|
mgl@1986
|
79 |
#include <string.h>
|
mgl@1986
|
80 |
diff -urN gdb-6.8-orig/sim/ppc/filter_filename.c gdb-6.8-pl1/sim/ppc/filter_filename.c
|
mgl@1986
|
81 |
--- gdb-6.8-orig/sim/ppc/filter_filename.c 1999-04-16 03:35:08.000000000 +0200
|
mgl@1986
|
82 |
+++ gdb-6.8-pl1/sim/ppc/filter_filename.c 2008-09-30 15:12:11.000000000 +0200
|
mgl@1986
|
83 |
@@ -18,7 +18,9 @@
|
mgl@1986
|
84 |
|
mgl@1986
|
85 |
*/
|
mgl@1986
|
86 |
|
mgl@1986
|
87 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
88 |
#include "config.h"
|
mgl@1986
|
89 |
+#endif
|
mgl@1986
|
90 |
#include "ppc-config.h"
|
mgl@1986
|
91 |
#include "filter_filename.h"
|
mgl@1986
|
92 |
|
mgl@1986
|
93 |
diff -urN gdb-6.8-orig/sim/ppc/igen.c gdb-6.8-pl1/sim/ppc/igen.c
|
mgl@1986
|
94 |
--- gdb-6.8-orig/sim/ppc/igen.c 2003-06-20 05:59:33.000000000 +0200
|
mgl@1986
|
95 |
+++ gdb-6.8-pl1/sim/ppc/igen.c 2008-09-30 15:12:06.000000000 +0200
|
mgl@1986
|
96 |
@@ -25,7 +25,9 @@
|
mgl@1986
|
97 |
#include "misc.h"
|
mgl@1986
|
98 |
#include "lf.h"
|
mgl@1986
|
99 |
#include "table.h"
|
mgl@1986
|
100 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
101 |
#include "config.h"
|
mgl@1986
|
102 |
+#endif
|
mgl@1986
|
103 |
|
mgl@1986
|
104 |
#include "filter.h"
|
mgl@1986
|
105 |
|
mgl@1986
|
106 |
diff -urN gdb-6.8-orig/sim/ppc/inline.c gdb-6.8-pl1/sim/ppc/inline.c
|
mgl@1986
|
107 |
--- gdb-6.8-orig/sim/ppc/inline.c 1999-04-16 03:35:10.000000000 +0200
|
mgl@1986
|
108 |
+++ gdb-6.8-pl1/sim/ppc/inline.c 2008-09-30 15:11:58.000000000 +0200
|
mgl@1986
|
109 |
@@ -22,7 +22,9 @@
|
mgl@1986
|
110 |
#ifndef _INLINE_C_
|
mgl@1986
|
111 |
#define _INLINE_C_
|
mgl@1986
|
112 |
|
mgl@1986
|
113 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
114 |
#include "config.h"
|
mgl@1986
|
115 |
+#endif
|
mgl@1986
|
116 |
#include "ppc-config.h"
|
mgl@1986
|
117 |
|
mgl@1986
|
118 |
#include "inline.h"
|
mgl@1986
|
119 |
diff -urN gdb-6.8-orig/sim/ppc/lf.c gdb-6.8-pl1/sim/ppc/lf.c
|
mgl@1986
|
120 |
--- gdb-6.8-orig/sim/ppc/lf.c 2002-05-30 17:07:06.000000000 +0200
|
mgl@1986
|
121 |
+++ gdb-6.8-pl1/sim/ppc/lf.c 2008-09-30 15:33:35.000000000 +0200
|
mgl@1986
|
122 |
@@ -23,7 +23,9 @@
|
mgl@1986
|
123 |
#include <stdarg.h>
|
mgl@1986
|
124 |
#include <ctype.h>
|
mgl@1986
|
125 |
|
mgl@1986
|
126 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
127 |
#include "config.h"
|
mgl@1986
|
128 |
+#endif
|
mgl@1986
|
129 |
#include "misc.h"
|
mgl@1986
|
130 |
#include "lf.h"
|
mgl@1986
|
131 |
|
mgl@1986
|
132 |
diff -urN gdb-6.8-orig/sim/ppc/misc.c gdb-6.8-pl1/sim/ppc/misc.c
|
mgl@1986
|
133 |
--- gdb-6.8-orig/sim/ppc/misc.c 1999-04-16 03:35:11.000000000 +0200
|
mgl@1986
|
134 |
+++ gdb-6.8-pl1/sim/ppc/misc.c 2008-09-30 15:11:54.000000000 +0200
|
mgl@1986
|
135 |
@@ -23,7 +23,9 @@
|
mgl@1986
|
136 |
#include <stdarg.h>
|
mgl@1986
|
137 |
#include <ctype.h>
|
mgl@1986
|
138 |
|
mgl@1986
|
139 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
140 |
#include "config.h"
|
mgl@1986
|
141 |
+#endif
|
mgl@1986
|
142 |
#include "misc.h"
|
mgl@1986
|
143 |
|
mgl@1986
|
144 |
#ifdef HAVE_STDLIB_H
|
mgl@1986
|
145 |
diff -urN gdb-6.8-orig/sim/ppc/misc.h gdb-6.8-pl1/sim/ppc/misc.h
|
mgl@1986
|
146 |
--- gdb-6.8-orig/sim/ppc/misc.h 2002-01-12 11:21:12.000000000 +0100
|
mgl@1986
|
147 |
+++ gdb-6.8-pl1/sim/ppc/misc.h 2008-09-30 15:11:49.000000000 +0200
|
mgl@1986
|
148 |
@@ -21,7 +21,9 @@
|
mgl@1986
|
149 |
|
mgl@1986
|
150 |
/* Frustrating header junk */
|
mgl@1986
|
151 |
|
mgl@1986
|
152 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
153 |
#include "config.h"
|
mgl@1986
|
154 |
+#endif
|
mgl@1986
|
155 |
|
mgl@1986
|
156 |
#include <stdio.h>
|
mgl@1986
|
157 |
#include <ctype.h>
|
mgl@1986
|
158 |
diff -urN gdb-6.8-orig/sim/ppc/sim-endian.c gdb-6.8-pl1/sim/ppc/sim-endian.c
|
mgl@1986
|
159 |
--- gdb-6.8-orig/sim/ppc/sim-endian.c 1999-04-16 03:35:11.000000000 +0200
|
mgl@1986
|
160 |
+++ gdb-6.8-pl1/sim/ppc/sim-endian.c 2008-09-30 15:11:44.000000000 +0200
|
mgl@1986
|
161 |
@@ -22,7 +22,9 @@
|
mgl@1986
|
162 |
#ifndef _SIM_ENDIAN_C_
|
mgl@1986
|
163 |
#define _SIM_ENDIAN_C_
|
mgl@1986
|
164 |
|
mgl@1986
|
165 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
166 |
#include "config.h"
|
mgl@1986
|
167 |
+#endif
|
mgl@1986
|
168 |
#include "basics.h"
|
mgl@1986
|
169 |
|
mgl@1986
|
170 |
|
mgl@1986
|
171 |
diff -urN gdb-6.8-orig/sim/ppc/table.c gdb-6.8-pl1/sim/ppc/table.c
|
mgl@1986
|
172 |
--- gdb-6.8-orig/sim/ppc/table.c 2002-01-12 11:21:12.000000000 +0100
|
mgl@1986
|
173 |
+++ gdb-6.8-pl1/sim/ppc/table.c 2008-09-30 15:11:38.000000000 +0200
|
mgl@1986
|
174 |
@@ -25,7 +25,9 @@
|
mgl@1986
|
175 |
#include <fcntl.h>
|
mgl@1986
|
176 |
#include <ctype.h>
|
mgl@1986
|
177 |
|
mgl@1986
|
178 |
+#ifdef HAVE_CONFIG_H
|
mgl@1986
|
179 |
#include "config.h"
|
mgl@1986
|
180 |
+#endif
|
mgl@1986
|
181 |
#include "misc.h"
|
mgl@1986
|
182 |
#include "lf.h"
|
mgl@1986
|
183 |
#include "table.h"
|