1 |
grobian 09/06/28 11:07:44 |
2 |
|
3 |
Added: gcc-apple-4.2.1_p5566-x86_64-defines.patch |
4 |
libstdc++-16.patch gcc-apple-4.2.1-inline-asm.patch |
5 |
gcc-apple-4.2.1-texinfo.patch |
6 |
gcc-apple-4.2.1-dsymutil.patch |
7 |
gcc-apple-4.2.1-prefix-search-dirs.patch |
8 |
gcc-apple-4.0.1_p5465-default-altivec.patch |
9 |
gcc-apple-4.2.1-gfortran.patch |
10 |
Log: |
11 |
apple is not a valid herd |
12 |
(Portage version: 2.2.00.13629-prefix/cvs/Darwin powerpc) |
13 |
|
14 |
Revision Changes Path |
15 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5566-x86_64-defines.patch |
16 |
|
17 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5566-x86_64-defines.patch?rev=1.1&view=markup |
18 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1_p5566-x86_64-defines.patch?rev=1.1&content-type=text/plain |
19 |
|
20 |
Index: gcc-apple-4.2.1_p5566-x86_64-defines.patch |
21 |
=================================================================== |
22 |
gcc/config.gcc: |
23 |
We need this alignment thing to get some defines that the code relies on |
24 |
gcc/config/i386/darwin64.h: |
25 |
Don't forget about crt1.o, makes it hard to link something together |
26 |
|
27 |
--- gcc_42-5566/gcc/config.gcc |
28 |
+++ gcc_42-5566/gcc/config.gcc |
29 |
@@ -1051,6 +1051,7 @@ |
30 |
# Deleted with_arch |
31 |
# APPLE LOCAL mainline |
32 |
with_cpu=${with_cpu:-core2} |
33 |
+ extra_options="${extra_options} i386/darwin.opt" |
34 |
tmake_file="t-darwin ${cpu_type}/t-darwin64 t-slibgcc-darwin" |
35 |
tm_file="${tm_file} ${cpu_type}/darwin64.h" |
36 |
;; |
37 |
--- gcc_42-5566/gcc/config/i386/darwin64.h |
38 |
+++ gcc_42-5566/gcc/config/i386/darwin64.h |
39 |
@@ -30,6 +30,7 @@ |
40 |
|
41 |
#undef SUBTARGET_EXTRA_SPECS |
42 |
#define SUBTARGET_EXTRA_SPECS \ |
43 |
+ DARWIN_EXTRA_SPECS \ |
44 |
{ "darwin_arch", DARWIN_ARCH_SPEC }, \ |
45 |
{ "darwin_crt2", "" }, \ |
46 |
{ "darwin_subarch", DARWIN_SUBARCH_SPEC }, |
47 |
|
48 |
|
49 |
|
50 |
1.1 sys-devel/gcc-apple/files/libstdc++-16.patch |
51 |
|
52 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/libstdc++-16.patch?rev=1.1&view=markup |
53 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/libstdc++-16.patch?rev=1.1&content-type=text/plain |
54 |
|
55 |
Index: libstdc++-16.patch |
56 |
=================================================================== |
57 |
--- libstdc++-v3/include/bits/c++config |
58 |
+++ libstdc++-v3/include/bits/c++config |
59 |
@@ -76,7 +76,7 @@ |
60 |
} |
61 |
namespace std |
62 |
{ |
63 |
- using namespace __gnu_debug_def __attribute__ ((strong)); |
64 |
+ using namespace __gnu_debug_def; |
65 |
} |
66 |
#else |
67 |
# define _GLIBCXX_STD std |
68 |
|
69 |
|
70 |
|
71 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.2.1-inline-asm.patch |
72 |
|
73 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-inline-asm.patch?rev=1.1&view=markup |
74 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-inline-asm.patch?rev=1.1&content-type=text/plain |
75 |
|
76 |
Index: gcc-apple-4.2.1-inline-asm.patch |
77 |
=================================================================== |
78 |
--- gcc/cp/parser.c |
79 |
+++ gcc/cp/parser.c |
80 |
@@ -11845,8 +11845,7 @@ |
81 |
|| cp_lexer_next_token_is (parser->lexer, CPP_ATSIGN) |
82 |
|| cp_lexer_next_token_is (parser->lexer, CPP_NAME) |
83 |
|| cp_lexer_next_token_is_keyword (parser->lexer, RID_ASM) |
84 |
- || cp_lexer_next_token_is (parser->lexer, CPP_SEMICOLON) |
85 |
- || cp_lexer_iasm_bol (parser->lexer)) |
86 |
+ || cp_lexer_next_token_is (parser->lexer, CPP_SEMICOLON)) |
87 |
{ |
88 |
if (flag_iasm_blocks) |
89 |
cp_parser_iasm_top_statement (parser); |
90 |
--- gcc/c-parser.c |
91 |
+++ gcc/c-parser.c |
92 |
@@ -4505,8 +4505,7 @@ |
93 |
|| c_parser_next_token_is (parser, CPP_ATSIGN) |
94 |
|| c_parser_next_token_is (parser, CPP_NAME) |
95 |
|| c_parser_next_token_is_keyword (parser, RID_ASM) |
96 |
- || c_parser_next_token_is (parser, CPP_SEMICOLON) |
97 |
- || c_parser_iasm_bol (parser)) |
98 |
+ || c_parser_next_token_is (parser, CPP_SEMICOLON)) |
99 |
{ |
100 |
if (flag_iasm_blocks) |
101 |
c_parser_iasm_top_statement (parser); |
102 |
|
103 |
|
104 |
|
105 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.2.1-texinfo.patch |
106 |
|
107 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-texinfo.patch?rev=1.1&view=markup |
108 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-texinfo.patch?rev=1.1&content-type=text/plain |
109 |
|
110 |
Index: gcc-apple-4.2.1-texinfo.patch |
111 |
=================================================================== |
112 |
--- configure |
113 |
+++ configure |
114 |
@@ -3748,7 +3748,7 @@ |
115 |
# For an installed makeinfo, we require it to be from texinfo 4.4 or |
116 |
# higher, else we use the "missing" dummy. |
117 |
if ${MAKEINFO} --version \ |
118 |
- | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|[5-9])' >/dev/null 2>&1; then |
119 |
+ | egrep 'texinfo[^0-9]*([1-3][0-9]|4\.[4-9]|4\.[1-9][0-9]|[5-9])' >/dev/null 2>&1; then |
120 |
: |
121 |
else |
122 |
MAKEINFO="$MISSING makeinfo" |
123 |
--- gcc/configure.ac |
124 |
+++ gcc/configure.ac |
125 |
@@ -882,7 +882,7 @@ |
126 |
# that we can use it. |
127 |
gcc_AC_CHECK_PROG_VER(MAKEINFO, makeinfo, --version, |
128 |
[GNU texinfo.* \([0-9][0-9.]*\)], |
129 |
- [4.[4-9]*]) |
130 |
+ [4.[4-9]*|4.[1-9][0-9]]) |
131 |
if test $gcc_cv_prog_makeinfo_modern = no; then |
132 |
MAKEINFO="$MISSING makeinfo" |
133 |
AC_MSG_WARN([ |
134 |
--- libgomp/configure.ac |
135 |
+++ libgomp/configure.ac |
136 |
@@ -135,7 +135,7 @@ |
137 |
# that we can use it. |
138 |
ACX_CHECK_PROG_VER([MAKEINFO], [makeinfo], [--version], |
139 |
[GNU texinfo.* \([0-9][0-9.]*\)], |
140 |
- [4.[4-9]*]) |
141 |
+ [4.[4-9]*|4.[1-9][0-9]]) |
142 |
AM_CONDITIONAL(BUILD_INFO, test $gcc_cv_prog_makeinfo_modern = "yes") |
143 |
|
144 |
|
145 |
|
146 |
|
147 |
|
148 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.2.1-dsymutil.patch |
149 |
|
150 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-dsymutil.patch?rev=1.1&view=markup |
151 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-dsymutil.patch?rev=1.1&content-type=text/plain |
152 |
|
153 |
Index: gcc-apple-4.2.1-dsymutil.patch |
154 |
=================================================================== |
155 |
Revert of dsymutil part of |
156 |
http://gcc.gnu.org/ml/gcc-patches/2006-09/msg00057.html |
157 |
See http://article.gmane.org/gmane.linux.gentoo.alt/4327 |
158 |
|
159 |
--- gcc/config/darwin.h |
160 |
+++ gcc/config/darwin.h |
161 |
@@ -326,12 +326,7 @@ |
162 |
"/* APPLE LOCAL nested functions 4357979 */"\ |
163 |
%{fnested-functions: -allow_stack_execute} \ |
164 |
%{!nostdlib:%{!nodefaultlibs:%(link_ssp) %G %L}} \ |
165 |
-"/* APPLE LOCAL begin mainline 4.3 2006-10-31 4370146 */"\ |
166 |
- %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}}\n\ |
167 |
-%{!fdump=*:%{!fsyntax-only:%{!c:%{!M:%{!MM:%{!E:%{!S:\ |
168 |
-"/* APPLE LOCAL end mainline 4.3 2006-10-31 4370146 */"\ |
169 |
- %{.c|.cc|.C|.cpp|.cp|.c++|.cxx|.CPP|.m|.mm: \ |
170 |
- %{g*:%{!gstabs*:%{!g0: dsymutil %{o*:%*}%{!o:a.out}}}}}}}}}}}}" |
171 |
+ %{!A:%{!nostdlib:%{!nostartfiles:%E}}} %{T*} %{F*} }}}}}}}}" |
172 |
/* APPLE LOCAL end mainline */ |
173 |
|
174 |
#ifdef TARGET_SYSTEM_ROOT |
175 |
|
176 |
|
177 |
|
178 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.2.1-prefix-search-dirs.patch |
179 |
|
180 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-prefix-search-dirs.patch?rev=1.1&view=markup |
181 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-prefix-search-dirs.patch?rev=1.1&content-type=text/plain |
182 |
|
183 |
Index: gcc-apple-4.2.1-prefix-search-dirs.patch |
184 |
=================================================================== |
185 |
In Prefix we are really self-providing, so don't look back! |
186 |
Patch by Heiko Przybyl |
187 |
|
188 |
--- gcc/gcc.c |
189 |
+++ gcc/gcc.c |
190 |
@@ -1525,8 +1525,8 @@ static const char *gcc_libexec_prefix; |
191 |
#endif |
192 |
|
193 |
static const char *const standard_exec_prefix = STANDARD_EXEC_PREFIX; |
194 |
-static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/"; |
195 |
-static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/"; |
196 |
+static const char *const standard_exec_prefix_1 = "@GENTOO_PORTAGE_EPREFIX@/usr/libexec/gcc/"; |
197 |
+static const char *const standard_exec_prefix_2 = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/"; |
198 |
static const char *md_exec_prefix = MD_EXEC_PREFIX; |
199 |
|
200 |
static const char *md_startfile_prefix = MD_STARTFILE_PREFIX; |
201 |
--- gcc/config/darwin.h |
202 |
+++ gcc/config/darwin.h |
203 |
@@ -1286,7 +1286,7 @@ void add_framework_path (char *); |
204 |
} \ |
205 |
} while (0) |
206 |
|
207 |
-#define SYSROOT_PRIORITY PREFIX_PRIORITY_FIRST |
208 |
+#define SYSROOT_PRIORITY PREFIX_PRIORITY_LAST |
209 |
/* APPLE LOCAL end isysroot 5083137 */ |
210 |
|
211 |
/* Every program on darwin links against libSystem which contains the pthread |
212 |
|
213 |
|
214 |
|
215 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.0.1_p5465-default-altivec.patch |
216 |
|
217 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.0.1_p5465-default-altivec.patch?rev=1.1&view=markup |
218 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.0.1_p5465-default-altivec.patch?rev=1.1&content-type=text/plain |
219 |
|
220 |
Index: gcc-apple-4.0.1_p5465-default-altivec.patch |
221 |
=================================================================== |
222 |
* reverse patch to gain 10.4 behaviour for AltiVec. |
223 |
|
224 |
--- gcc/config/rs6000/rs6000-c.c |
225 |
+++ gcc/config/rs6000/rs6000-c.c |
226 |
@@ -245,22 +245,22 @@ |
227 |
builtin_define ("__bool=__attribute__((altivec(bool__))) unsigned"); |
228 |
|
229 |
/* APPLE LOCAL begin AltiVec */ |
230 |
+ builtin_define ("vector=vector"); |
231 |
+ builtin_define ("pixel=pixel"); |
232 |
+ builtin_define ("_Bool=_Bool"); |
233 |
+ builtin_define ("bool=bool"); |
234 |
+ init_vector_keywords (pfile); |
235 |
+ |
236 |
+ /* Indicate that the compiler supports Apple AltiVec syntax, |
237 |
+ including context-sensitive keywords. */ |
238 |
if (rs6000_altivec_pim) |
239 |
{ |
240 |
- builtin_define ("vector=vector"); |
241 |
- builtin_define ("pixel=pixel"); |
242 |
- builtin_define ("_Bool=_Bool"); |
243 |
- builtin_define ("bool=bool"); |
244 |
- init_vector_keywords (pfile); |
245 |
- |
246 |
- /* Indicate that the compiler supports Apple AltiVec syntax, |
247 |
- including context-sensitive keywords. */ |
248 |
builtin_define ("__APPLE_ALTIVEC__"); |
249 |
builtin_define ("vec_step(T)=(sizeof (__typeof__(T)) / sizeof (__typeof__(T) __attribute__((altivec(element__)))))"); |
250 |
- |
251 |
- /* Enable context-sensitive macros. */ |
252 |
- cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand; |
253 |
} |
254 |
+ |
255 |
+ /* Enable context-sensitive macros. */ |
256 |
+ cpp_get_callbacks (pfile)->macro_to_expand = rs6000_macro_to_expand; |
257 |
/* APPLE LOCAL end AltiVec */ |
258 |
} |
259 |
if (TARGET_SPE) |
260 |
|
261 |
|
262 |
|
263 |
1.1 sys-devel/gcc-apple/files/gcc-apple-4.2.1-gfortran.patch |
264 |
|
265 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-gfortran.patch?rev=1.1&view=markup |
266 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sys-devel/gcc-apple/files/gcc-apple-4.2.1-gfortran.patch?rev=1.1&content-type=text/plain |
267 |
|
268 |
Index: gcc-apple-4.2.1-gfortran.patch |
269 |
=================================================================== |
270 |
diff -Nru gcc_42-5564/build_gcc gcc_42-5564.mod/build_gcc |
271 |
--- gcc_42-5564/build_gcc 2008-04-15 20:25:12.000000000 -0400 |
272 |
+++ gcc_42-5564.mod/build_gcc 2008-08-29 17:25:03.000000000 -0400 |
273 |
@@ -112,7 +112,7 @@ |
274 |
CONFIGFLAGS="--disable-checking --enable-werror \ |
275 |
--prefix=$DEST_ROOT \ |
276 |
--mandir=\${prefix}/share/man \ |
277 |
- --enable-languages=c,objc,c++,obj-c++ \ |
278 |
+ --enable-languages=c,objc,c++,obj-c++,fortran \ |
279 |
--program-transform-name=/^[cg][^.-]*$/s/$/-$MAJ_VERS/ \ |
280 |
--with-gxx-include-dir=\${prefix}/include/c++/$LIBSTDCXX_VERSION \ |
281 |
--with-slibdir=/usr/lib \ |
282 |
@@ -326,6 +326,8 @@ |
283 |
$DIR/dst-*-$t$DEST_ROOT/bin/$t-apple-darwin$DARWIN_VERS-gcc-$VERS || exit 1 |
284 |
lipo -output .$DEST_ROOT/bin/$t-apple-darwin$DARWIN_VERS-g++-$VERS -create \ |
285 |
$DIR/dst-*-$t$DEST_ROOT/bin/$t-apple-darwin$DARWIN_VERS-g++* || exit 1 |
286 |
+ lipo -output .$DEST_ROOT/bin/$t-apple-darwin$DARWIN_VERS-gfortran-$VERS -create \ |
287 |
+ $DIR/dst-*-$t$DEST_ROOT/bin/$t-apple-darwin$DARWIN_VERS-gfortran* || exit 1 |
288 |
done |
289 |
|
290 |
# lib |
291 |
@@ -348,16 +350,22 @@ |
292 |
.$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/ || exit 1 |
293 |
cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/libgomp.spec \ |
294 |
.$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/ || exit 1 |
295 |
+ cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/libgfortran.a \ |
296 |
+ .$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/ || exit 1 |
297 |
if [ $h = 'powerpc' ] ; then |
298 |
cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/ppc64/libgomp.a \ |
299 |
.$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/ppc64/ || exit 1 |
300 |
cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/ppc64/libgomp.spec \ |
301 |
.$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/ppc64/ || exit 1 |
302 |
+ cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/ppc64/libgfortran.a \ |
303 |
+ .$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/ppc64/ || exit 1 |
304 |
elif [ $h = 'i686' ] ; then |
305 |
cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/x86_64/libgomp.a \ |
306 |
.$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/x86_64/ || exit 1 |
307 |
cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/x86_64/libgomp.spec \ |
308 |
.$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/x86_64/ || exit 1 |
309 |
+ cp -p $DIR/dst-$h-$t$DEST_ROOT/lib/x86_64/libgfortran.a \ |
310 |
+ .$DEST_ROOT/lib/gcc/$t-apple-darwin$DARWIN_VERS/$VERS/x86_64/ || exit 1 |
311 |
fi |
312 |
fi |
313 |
done |
314 |
@@ -432,6 +440,16 @@ |
315 |
-L$DIR/dst-$BUILD-$h$DEST_ROOT/$h-apple-darwin$DARWIN_VERS/lib/ \ |
316 |
-L$DIR/obj-$h-$BUILD/libiberty/ \ |
317 |
-o $DEST_DIR/$DEST_ROOT/bin/tmp-$h-g++-$MAJ_VERS || exit 1 |
318 |
+ |
319 |
+ $DEST_DIR$DEST_ROOT/bin/$h-apple-darwin$DARWIN_VERS-gcc-$VERS \ |
320 |
+ $ORIG_SRC_DIR/driverdriver.c \ |
321 |
+ -DPDN="\"-apple-darwin$DARWIN_VERS-gfortran-$VERS\"" \ |
322 |
+ -DIL="\"$DEST_ROOT/bin/\"" -I $ORIG_SRC_DIR/include \ |
323 |
+ -I $ORIG_SRC_DIR/gcc -I $ORIG_SRC_DIR/gcc/config \ |
324 |
+ -liberty -L$DIR/dst-$BUILD-$h$DEST_ROOT/lib/ \ |
325 |
+ -L$DIR/dst-$BUILD-$h$DEST_ROOT/$h-apple-darwin$DARWIN_VERS/lib/ \ |
326 |
+ -L$DIR/obj-$h-$BUILD/libiberty/ \ |
327 |
+ -o $DEST_DIR/$DEST_ROOT/bin/tmp-$h-gfortran-$MAJ_VERS || exit 1 |
328 |
done |
329 |
|
330 |
lipo -output $DEST_DIR/$DEST_ROOT/bin/gcc-$MAJ_VERS -create \ |
331 |
@@ -440,10 +458,14 @@ |
332 |
lipo -output $DEST_DIR/$DEST_ROOT/bin/g++-$MAJ_VERS -create \ |
333 |
$DEST_DIR/$DEST_ROOT/bin/tmp-*-g++-$MAJ_VERS || exit 1 |
334 |
|
335 |
+lipo -output $DEST_DIR/$DEST_ROOT/bin/gfortran-$MAJ_VERS -create \ |
336 |
+ $DEST_DIR/$DEST_ROOT/bin/tmp-*-gfortran-$MAJ_VERS || exit 1 |
337 |
+ |
338 |
ln -f $DEST_DIR/$DEST_ROOT/bin/g++-$MAJ_VERS $DEST_DIR/$DEST_ROOT/bin/c++-$MAJ_VERS || exit 1 |
339 |
|
340 |
rm $DEST_DIR/$DEST_ROOT/bin/tmp-*-gcc-$MAJ_VERS || exit 1 |
341 |
rm $DEST_DIR/$DEST_ROOT/bin/tmp-*-g++-$MAJ_VERS || exit 1 |
342 |
+rm $DEST_DIR/$DEST_ROOT/bin/tmp-*-gfortran-$MAJ_VERS || exit 1 |
343 |
|
344 |
# Remove extraneous stuff |
345 |
rm -rf $DEST_DIR/$DEST_ROOT/lib/gcc/*/*/include/c++ |
346 |
@@ -472,7 +494,7 @@ |
347 |
######################################## |
348 |
# Remove debugging information from DEST_DIR. |
349 |
|
350 |
-find $DEST_DIR -perm -0111 \! -name fixinc.sh \ |
351 |
+find $DEST_DIR -perm -0111 \! -name fixinc.sh \! -name libgfortran\* \ |
352 |
\! -name mkheaders \! -name libstdc++.dylib -type f -print \ |
353 |
| xargs strip || exit 1 |
354 |
find $DEST_DIR -name \*.a -print | xargs strip -SX || exit 1 |
355 |
diff -Nru gcc_42-5564/gcc/fortran/Make-lang.in gcc_42-5564.mod/gcc/fortran/Make-lang.in |
356 |
--- gcc_42-5564/gcc/fortran/Make-lang.in 2008-04-01 17:26:19.000000000 -0400 |
357 |
+++ gcc_42-5564.mod/gcc/fortran/Make-lang.in 2008-08-29 17:25:03.000000000 -0400 |
358 |
@@ -73,7 +73,7 @@ |
359 |
fortran/trans.o fortran/trans-array.o fortran/trans-common.o \ |
360 |
fortran/trans-const.o fortran/trans-decl.o fortran/trans-expr.o \ |
361 |
fortran/trans-intrinsic.o fortran/trans-io.o fortran/trans-openmp.o \ |
362 |
- fortran/trans-stmt.o fortran/trans-types.o |
363 |
+ fortran/trans-stmt.o fortran/trans-types.o fortran/fake.o |
364 |
|
365 |
# GFORTRAN uses GMP for its internal arithmetics. |
366 |
F95_LIBS = $(GMPLIBS) $(LIBS) |
367 |
@@ -106,7 +106,7 @@ |
368 |
f951$(exeext): $(F95_OBJS) \ |
369 |
$(BACKEND) $(LIBDEPS) |
370 |
$(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ \ |
371 |
- $(F95_OBJS) $(BACKEND) $(F95_LIBS) |
372 |
+ $(F95_OBJS) $(BACKEND) $(F95_LIBS) stub-objc.o |
373 |
|
374 |
gt-fortran-trans.h : s-gtype; @true |
375 |
# |
376 |
diff -Nru gcc_42-5564/gcc/fortran/fake.c gcc_42-5564.mod/gcc/fortran/fake.c |
377 |
--- gcc_42-5564/gcc/fortran/fake.c 1969-12-31 19:00:00.000000000 -0500 |
378 |
+++ gcc_42-5564.mod/gcc/fortran/fake.c 2008-08-29 17:42:58.000000000 -0400 |
379 |
@@ -0,0 +1,27 @@ |
380 |
+#include <stdlib.h> |
381 |
+#include <stdio.h> |
382 |
+ |
383 |
+#define MK_FAKE(X) void X (void); void X (void) { fprintf(stderr, "** FATAL: call to an unsupported function!\n"); exit(1); } |
384 |
+ |
385 |
+int c_language = 0; /* 0 is C which is the default */ |
386 |
+int disable_typechecking_for_spec_flag = 0; |
387 |
+ |
388 |
+MK_FAKE(build_function_call) |
389 |
+MK_FAKE(build_modify_expr) |
390 |
+MK_FAKE(build_stmt) |
391 |
+MK_FAKE(decl_attributes) |
392 |
+MK_FAKE(decl_constant_value) |
393 |
+MK_FAKE(flag_iasm_blocks) |
394 |
+MK_FAKE(iasm_addr) |
395 |
+MK_FAKE(iasm_build_bracket) |
396 |
+MK_FAKE(iasm_force_constraint) |
397 |
+MK_FAKE(iasm_get_register_var) |
398 |
+MK_FAKE(iasm_in_operands) |
399 |
+MK_FAKE(iasm_is_pseudo) |
400 |
+MK_FAKE(iasm_print_operand) |
401 |
+MK_FAKE(iasm_state) |
402 |
+MK_FAKE(lookup_name) |
403 |
+MK_FAKE(parse_in) |
404 |
+MK_FAKE(pointer_int_sum) |
405 |
+MK_FAKE(store_init_value) |
406 |
+ |