1 |
vapier 08/06/09 02:32:48 |
2 |
|
3 |
Added: 00_all_gcc-4.1-alpha-mieee-default.patch |
4 |
00_all_gcc-trampolinewarn.patch |
5 |
03_all_gcc43-java-nomulti.patch |
6 |
08_all_gcc-4.1-cross-compile.patch |
7 |
11_all_gcc-netbsd-symbolic.patch |
8 |
14_all_gcc-sparc64-bsd.patch |
9 |
18_all_904-flatten-switch-stmt-00.patch |
10 |
51_all_gcc-3.4-libiberty-pic.patch |
11 |
53_all_gcc4-superh-default-multilib.patch |
12 |
54_all_300-libstdc++-pic.patch |
13 |
61_all_gcc4-ia64-noteGNUstack.patch |
14 |
61_all_gcc43-pr24170.patch |
15 |
62_all_gcc4-noteGNUstack.patch |
16 |
64_all_gcc43-pr34571.patch |
17 |
66_all_gcc43-pr25343.patch 74_all_sh-pr24836.patch |
18 |
README.history |
19 |
Log: |
20 |
initial 4.3.1 patchset based on last 4.3.0 patchset |
21 |
|
22 |
Revision Changes Path |
23 |
1.1 src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch |
24 |
|
25 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch?rev=1.1&view=markup |
26 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch?rev=1.1&content-type=text/plain |
27 |
|
28 |
Index: 00_all_gcc-4.1-alpha-mieee-default.patch |
29 |
=================================================================== |
30 |
Set the default behavior on alpha to use -mieee since the large majority of |
31 |
time we want this (bad/weird things can happen with packages built without |
32 |
-mieee). |
33 |
|
34 |
To satisfy those people who may not want -mieee forced on them all the time, |
35 |
we also provide -mno-ieee. |
36 |
|
37 |
Patch by Mike Frysinger <vapier@g.o> |
38 |
|
39 |
--- gcc-4.3.0/gcc/config/alpha/alpha.h |
40 |
+++ gcc-4.3.0/gcc/config/alpha/alpha.h |
41 |
@@ -95,6 +95,8 @@ |
42 |
while (0) |
43 |
#endif |
44 |
|
45 |
+#define CPP_SPEC "%{!no-ieee:-mieee}" |
46 |
+ |
47 |
#define WORD_SWITCH_TAKES_ARG(STR) \ |
48 |
(!strcmp (STR, "rpath") || DEFAULT_WORD_SWITCH_TAKES_ARG(STR)) |
49 |
|
50 |
--- gcc-4.3.0/gcc/config/alpha/alpha.opt |
51 |
+++ gcc-4.3.0/gcc/config/alpha/alpha.opt |
52 |
@@ -39,7 +39,7 @@ |
53 |
Request IEEE-conformant math library routines (OSF/1) |
54 |
|
55 |
mieee |
56 |
-Target Report RejectNegative Mask(IEEE) |
57 |
+Target Report Mask(IEEE) |
58 |
Emit IEEE-conformant code, without inexact exceptions |
59 |
|
60 |
mieee-with-inexact |
61 |
|
62 |
|
63 |
|
64 |
1.1 src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-trampolinewarn.patch |
65 |
|
66 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-trampolinewarn.patch?rev=1.1&view=markup |
67 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/00_all_gcc-trampolinewarn.patch?rev=1.1&content-type=text/plain |
68 |
|
69 |
Index: 00_all_gcc-trampolinewarn.patch |
70 |
=================================================================== |
71 |
This trivial patch causes gcc to emit a warning whenever |
72 |
it generates a trampoline. These are otherwise hard to |
73 |
locate. It is rigged to default ON - to have it default |
74 |
to OFF remove the text 'Init(1)' from the common.opt |
75 |
patch, leaving just 'Common Var(warn_trampolines)'. |
76 |
Kevin F. Quinn <kevquinn@g.o> 17 Jan 2006 |
77 |
|
78 |
--- gcc/gcc/common.opt |
79 |
+++ gcc/gcc/common.opt |
80 |
@@ -141,6 +141,10 @@ |
81 |
Common Var(warn_system_headers) |
82 |
Do not suppress warnings from system headers |
83 |
|
84 |
+Wtrampolines |
85 |
+Common Var(warn_trampolines) Init(1) |
86 |
+Warn whenever a trampoline is generated |
87 |
+ |
88 |
Wuninitialized |
89 |
Common Var(warn_uninitialized) |
90 |
Warn about uninitialized automatic variables |
91 |
--- gcc/gcc/builtins.c |
92 |
+++ gcc/gcc/builtins.c |
93 |
@@ -5224,6 +5224,9 @@ |
94 |
#endif |
95 |
trampolines_created = 1; |
96 |
INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain); |
97 |
+ |
98 |
+ if (warn_trampolines) |
99 |
+ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)"); |
100 |
|
101 |
return const0_rtx; |
102 |
} |
103 |
|
104 |
|
105 |
|
106 |
1.1 src/patchsets/gcc/4.3.1/gentoo/03_all_gcc43-java-nomulti.patch |
107 |
|
108 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/03_all_gcc43-java-nomulti.patch?rev=1.1&view=markup |
109 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/03_all_gcc43-java-nomulti.patch?rev=1.1&content-type=text/plain |
110 |
|
111 |
Index: 03_all_gcc43-java-nomulti.patch |
112 |
=================================================================== |
113 |
--- libjava/configure.ac.jj 2007-12-07 17:55:50.000000000 +0100 |
114 |
+++ libjava/configure.ac 2007-12-07 18:36:56.000000000 +0100 |
115 |
@@ -82,6 +82,13 @@ AC_ARG_ENABLE(java-maintainer-mode, |
116 |
[allow rebuilding of .class and .h files])) |
117 |
AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes) |
118 |
|
119 |
+AC_ARG_ENABLE(libjava-multilib, |
120 |
+ AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib])) |
121 |
+if test "$enable_libjava_multilib" = no; then |
122 |
+ multilib=no |
123 |
+ ac_configure_args="$ac_configure_args --disable-multilib" |
124 |
+fi |
125 |
+ |
126 |
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. |
127 |
GCC_NO_EXECUTABLES |
128 |
|
129 |
--- libjava/configure.jj 2007-12-07 17:55:50.000000000 +0100 |
130 |
+++ libjava/configure 2007-12-07 18:39:58.000000000 +0100 |
131 |
@@ -1018,6 +1018,8 @@ Optional Features: |
132 |
--enable-gconf-peer compile GConf native peers for util.preferences |
133 |
--enable-java-maintainer-mode |
134 |
allow rebuilding of .class and .h files |
135 |
+ --enable-libjava-multilib |
136 |
+ build libjava as multilib |
137 |
--disable-dependency-tracking speeds up one-time build |
138 |
--enable-dependency-tracking do not reject slow dependency extractors |
139 |
--enable-maintainer-mode enable make rules and dependencies not useful |
140 |
@@ -1848,6 +1850,16 @@ else |
141 |
fi |
142 |
|
143 |
|
144 |
+# Check whether --enable-libjava-multilib was given. |
145 |
+if test "${enable_libjava_multilib+set}" = set; then |
146 |
+ enableval=$enable_libjava_multilib; |
147 |
+fi |
148 |
+ |
149 |
+if test "$enable_libjava_multilib" = no; then |
150 |
+ multilib=no |
151 |
+ ac_configure_args="$ac_configure_args --disable-multilib" |
152 |
+fi |
153 |
+ |
154 |
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. |
155 |
|
156 |
|
157 |
|
158 |
|
159 |
|
160 |
1.1 src/patchsets/gcc/4.3.1/gentoo/08_all_gcc-4.1-cross-compile.patch |
161 |
|
162 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/08_all_gcc-4.1-cross-compile.patch?rev=1.1&view=markup |
163 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/08_all_gcc-4.1-cross-compile.patch?rev=1.1&content-type=text/plain |
164 |
|
165 |
Index: 08_all_gcc-4.1-cross-compile.patch |
166 |
=================================================================== |
167 |
Some notes on the 'bootstrap with or without libc headers' debate: |
168 |
http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html |
169 |
http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html |
170 |
|
171 |
--- gcc/unwind-dw2.c |
172 |
+++ gcc/unwind-dw2.c |
173 |
@@ -253,9 +253,11 @@ |
174 |
} |
175 |
#endif |
176 |
|
177 |
+#ifndef inhibit_libc |
178 |
#ifdef MD_UNWIND_SUPPORT |
179 |
#include MD_UNWIND_SUPPORT |
180 |
#endif |
181 |
+#endif |
182 |
|
183 |
/* Extract any interesting information from the CIE for the translation |
184 |
unit F belongs to. Return a pointer to the byte after the augmentation, |
185 |
--- gcc/configure |
186 |
+++ gcc/configure |
187 |
@@ -12857,7 +12857,7 @@ then |
188 |
| powerpc*-*-*,powerpc64*-*-*) |
189 |
CROSS="$CROSS -DNATIVE_CROSS" ;; |
190 |
esac |
191 |
-elif test "x$TARGET_SYSTEM_ROOT" != x; then |
192 |
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then |
193 |
SYSTEM_HEADER_DIR=$build_system_header_dir |
194 |
fi |
195 |
|
196 |
--- gcc/configure.ac |
197 |
+++ gcc/configure.ac |
198 |
@@ -1717,7 +1717,7 @@ then |
199 |
| powerpc*-*-*,powerpc64*-*-*) |
200 |
CROSS="$CROSS -DNATIVE_CROSS" ;; |
201 |
esac |
202 |
-elif test "x$TARGET_SYSTEM_ROOT" != x; then |
203 |
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then |
204 |
SYSTEM_HEADER_DIR=$build_system_header_dir |
205 |
fi |
206 |
|
207 |
|
208 |
|
209 |
|
210 |
1.1 src/patchsets/gcc/4.3.1/gentoo/11_all_gcc-netbsd-symbolic.patch |
211 |
|
212 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/11_all_gcc-netbsd-symbolic.patch?rev=1.1&view=markup |
213 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/11_all_gcc-netbsd-symbolic.patch?rev=1.1&content-type=text/plain |
214 |
|
215 |
Index: 11_all_gcc-netbsd-symbolic.patch |
216 |
=================================================================== |
217 |
http://bugs.gentoo.org/122698 |
218 |
|
219 |
--- gcc/config/netbsd-elf.h |
220 |
+++ gcc/config/netbsd-elf.h |
221 |
@@ -83,6 +83,7 @@ |
222 |
#define NETBSD_LINK_SPEC_ELF \ |
223 |
"%{assert*} %{R*} %{rpath*} \ |
224 |
%{shared:-shared} \ |
225 |
+ %{symbolic:-Bsymbolic} \ |
226 |
%{!shared: \ |
227 |
-dc -dp \ |
228 |
%{!nostdlib: \ |
229 |
|
230 |
|
231 |
|
232 |
1.1 src/patchsets/gcc/4.3.1/gentoo/14_all_gcc-sparc64-bsd.patch |
233 |
|
234 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/14_all_gcc-sparc64-bsd.patch?rev=1.1&view=markup |
235 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/14_all_gcc-sparc64-bsd.patch?rev=1.1&content-type=text/plain |
236 |
|
237 |
Index: 14_all_gcc-sparc64-bsd.patch |
238 |
=================================================================== |
239 |
--- a/gcc/config/sparc/freebsd.h 2006-02-02 19:55:09 +0000 |
240 |
+++ b/gcc/config/sparc/freebsd.h 2007-09-06 23:55:21 +0100 |
241 |
@@ -26,9 +26,22 @@ |
242 |
/* FreeBSD needs the platform name (sparc64) defined. |
243 |
Emacs needs to know if the arch is 64 or 32-bits. */ |
244 |
|
245 |
-#undef CPP_CPU64_DEFAULT_SPEC |
246 |
-#define CPP_CPU64_DEFAULT_SPEC \ |
247 |
- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__" |
248 |
+#undef FBSD_TARGET_CPU_CPP_BUILTINS |
249 |
+#define FBSD_TARGET_CPU_CPP_BUILTINS() \ |
250 |
+ do \ |
251 |
+ { \ |
252 |
+ if (TARGET_ARCH64) \ |
253 |
+ { \ |
254 |
+ builtin_define ("__sparc64__"); \ |
255 |
+ builtin_define ("__sparc_v9__"); \ |
256 |
+ builtin_define ("__sparcv9"); \ |
257 |
+ } \ |
258 |
+ else \ |
259 |
+ builtin_define ("__sparc"); \ |
260 |
+ builtin_define ("__sparc__"); \ |
261 |
+ } \ |
262 |
+ while (0) |
263 |
+ |
264 |
|
265 |
#define LINK_SPEC "%(link_arch) \ |
266 |
%{!mno-relax:%{!r:-relax}} \ |
267 |
|
268 |
|
269 |
|
270 |
1.1 src/patchsets/gcc/4.3.1/gentoo/18_all_904-flatten-switch-stmt-00.patch |
271 |
|
272 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/18_all_904-flatten-switch-stmt-00.patch?rev=1.1&view=markup |
273 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/18_all_904-flatten-switch-stmt-00.patch?rev=1.1&content-type=text/plain |
274 |
|
275 |
Index: 18_all_904-flatten-switch-stmt-00.patch |
276 |
=================================================================== |
277 |
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00927.html |
278 |
|
279 |
Hi, |
280 |
|
281 |
The attached patch makes sure that we create smaller object code for |
282 |
simple switch statements. We just make sure to flatten the switch |
283 |
statement into an if-else chain, basically. |
284 |
|
285 |
This fixes a size-regression as compared to gcc-3.4, as can be seen |
286 |
below. |
287 |
|
288 |
2007-04-15 Bernhard Fischer <..> |
289 |
|
290 |
* stmt.c (expand_case): Do not create a complex binary tree when |
291 |
optimizing for size but rather use the simple ordered list. |
292 |
(emit_case_nodes): do not emit jumps to the default_label when |
293 |
optimizing for size. |
294 |
|
295 |
Not regtested so far. |
296 |
Comments? |
297 |
|
298 |
Attached is the test switch.c mentioned below. |
299 |
|
300 |
$ for i in 2.95 3.3 3.4 4.0 4.1 4.2.orig-HEAD 4.3.orig-HEAD 4.3-HEAD;do |
301 |
gcc-$i -DCHAIN -Os -o switch-CHAIN-$i.o -c switch.c ;done |
302 |
$ for i in 2.95 3.3 3.4 4.0 4.1 4.2.orig-HEAD 4.3.orig-HEAD 4.3-HEAD;do |
303 |
gcc-$i -UCHAIN -Os -o switch-$i.o -c switch.c ;done |
304 |
|
305 |
$ size switch-*.o |
306 |
text data bss dec hex filename |
307 |
169 0 0 169 a9 switch-2.95.o |
308 |
115 0 0 115 73 switch-3.3.o |
309 |
103 0 0 103 67 switch-3.4.o |
310 |
124 0 0 124 7c switch-4.0.o |
311 |
124 0 0 124 7c switch-4.1.o |
312 |
124 0 0 124 7c switch-4.2.orig-HEAD.o |
313 |
95 0 0 95 5f switch-4.3-HEAD.o |
314 |
124 0 0 124 7c switch-4.3.orig-HEAD.o |
315 |
166 0 0 166 a6 switch-CHAIN-2.95.o |
316 |
111 0 0 111 6f switch-CHAIN-3.3.o |
317 |
95 0 0 95 5f switch-CHAIN-3.4.o |
318 |
95 0 0 95 5f switch-CHAIN-4.0.o |
319 |
95 0 0 95 5f switch-CHAIN-4.1.o |
320 |
95 0 0 95 5f switch-CHAIN-4.2.orig-HEAD.o |
321 |
95 0 0 95 5f switch-CHAIN-4.3-HEAD.o |
322 |
95 0 0 95 5f switch-CHAIN-4.3.orig-HEAD.o |
323 |
|
324 |
|
325 |
Content-Type: text/x-diff; charset=us-ascii |
326 |
Content-Disposition: attachment; filename="gcc-4.3.gcc-flatten-switch-stmt.00.diff" |
327 |
|
328 |
Index: gcc-4.2.0/gcc/stmt.c |
329 |
=================================================================== |
330 |
--- gcc-4.2.0.orig/gcc/stmt.c (revision 123843) |
331 |
+++ gcc-4.2.0/gcc/stmt.c (working copy) |
332 |
@@ -2517,7 +2517,11 @@ expand_case (tree exp) |
333 |
use_cost_table |
334 |
= (TREE_CODE (orig_type) != ENUMERAL_TYPE |
335 |
&& estimate_case_costs (case_list)); |
336 |
- balance_case_nodes (&case_list, NULL); |
337 |
+ /* When optimizing for size, we want a straight list to avoid |
338 |
+ jumps as much as possible. This basically creates an if-else |
339 |
+ chain. */ |
340 |
+ if (!optimize_size) |
341 |
+ balance_case_nodes (&case_list, NULL); |
342 |
emit_case_nodes (index, case_list, default_label, index_type); |
343 |
emit_jump (default_label); |
344 |
} |
345 |
@@ -3075,6 +3079,7 @@ emit_case_nodes (rtx index, case_node_pt |
346 |
{ |
347 |
if (!node_has_low_bound (node, index_type)) |
348 |
{ |
349 |
+ if (!optimize_size) /* don't jl to the .default_label. */ |
350 |
emit_cmp_and_jump_insns (index, |
351 |
convert_modes |
352 |
(mode, imode, |
353 |
|
354 |
|
355 |
Content-Type: text/x-csrc; charset=us-ascii |
356 |
Content-Disposition: attachment; filename="switch.c" |
357 |
|
358 |
int |
359 |
commutative_tree_code (int code) |
360 |
{ |
361 |
#define CASE(val, ret) case val:/* __asm__("# val="#val ",ret="#ret);*/ return ret; |
362 |
#ifndef CHAIN |
363 |
switch (code) |
364 |
{ |
365 |
# if 1 |
366 |
CASE(1,3) |
367 |
CASE(3,2) |
368 |
CASE(5,8) |
369 |
CASE(7,1) |
370 |
CASE(33,4) |
371 |
CASE(44,9) |
372 |
CASE(55,10) |
373 |
CASE(66,-1) |
374 |
CASE(77,99) |
375 |
CASE(666,0) |
376 |
# else |
377 |
case 1: |
378 |
return 3; |
379 |
case 3: |
380 |
return 2; |
381 |
case 5: |
382 |
return 8; |
383 |
case 7: |
384 |
return 1; |
385 |
case 33: |
386 |
return 4; |
387 |
case 44: |
388 |
return 9; |
389 |
case 55: |
390 |
return 10; |
391 |
case 66: |
392 |
return -1; |
393 |
case 77: |
394 |
return 99; |
395 |
case 666: |
396 |
return 0; |
397 |
# endif |
398 |
default: |
399 |
break; |
400 |
} |
401 |
return 4711; |
402 |
|
403 |
#else |
404 |
if (code == 1) |
405 |
return 3; |
406 |
else if (code == 3) |
407 |
return 2; |
408 |
else if (code == 5) |
409 |
return 8; |
410 |
else if (code == 7) |
411 |
return 1; |
412 |
else if (code == 33) |
413 |
return 4; |
414 |
else if (code == 44) |
415 |
return 9; |
416 |
else if (code == 55) |
417 |
return 10; |
418 |
else if (code == 66) |
419 |
return -1; |
420 |
else if (code == 77) |
421 |
return 99; |
422 |
else if (code == 666) |
423 |
return 0; |
424 |
else |
425 |
return 4711; |
426 |
#endif |
427 |
} |
428 |
|
429 |
|
430 |
--AhhlLboLdkugWU4S-- |
431 |
|
432 |
|
433 |
|
434 |
|
435 |
1.1 src/patchsets/gcc/4.3.1/gentoo/51_all_gcc-3.4-libiberty-pic.patch |
436 |
|
437 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/51_all_gcc-3.4-libiberty-pic.patch?rev=1.1&view=markup |
438 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/51_all_gcc-3.4-libiberty-pic.patch?rev=1.1&content-type=text/plain |
439 |
|
440 |
Index: 51_all_gcc-3.4-libiberty-pic.patch |
441 |
=================================================================== |
442 |
--- gcc-4.1.0-orig/libiberty/Makefile.in 2006-03-01 15:49:14.000000000 -0500 |
443 |
+++ gcc-4.1.0/libiberty/Makefile.in 2006-03-01 18:10:46.000000000 -0500 |
444 |
@@ -232,6 +232,7 @@ |
445 |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
446 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
447 |
$(RANLIB) $(TARGETLIB); \ |
448 |
+ cp $(TARGETLIB) ../ ; \ |
449 |
cd ..; \ |
450 |
else true; fi |
451 |
|
452 |
|
453 |
|
454 |
|
455 |
1.1 src/patchsets/gcc/4.3.1/gentoo/53_all_gcc4-superh-default-multilib.patch |
456 |
|
457 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/53_all_gcc4-superh-default-multilib.patch?rev=1.1&view=markup |
458 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/53_all_gcc4-superh-default-multilib.patch?rev=1.1&content-type=text/plain |
459 |
|
460 |
Index: 53_all_gcc4-superh-default-multilib.patch |
461 |
=================================================================== |
462 |
The gcc-3.x toolchains would contain all the targets by default. With gcc-4, |
463 |
you have to actually list out the multilibs you want or you will end up with |
464 |
just one when using targets like 'sh4-linux-gnu'. |
465 |
|
466 |
The resulting toolchain can't even build a kernel as the kernel needs to build |
467 |
with the nofpu flag to be sure that no fpu ops are generated. |
468 |
|
469 |
Here we restore the gcc-3.x behavior; the additional overhead of building all |
470 |
of these multilibs by default is negligible. |
471 |
|
472 |
http://bugs.gentoo.org/140205 |
473 |
|
474 |
--- gcc-4.2.0/gcc/config.gcc |
475 |
+++ gcc-4.2.0/gcc/config.gcc |
476 |
@@ -2092,7 +2092,7 @@ |
477 |
if test x${sh_multilibs} = x ; then |
478 |
case ${target} in |
479 |
sh64-superh-linux* | \ |
480 |
- sh[1234]*) sh_multilibs=${sh_cpu_target} ;; |
481 |
+ sh[1234]*) sh_multilibs=`cd ${srcdir}/config/sh ; echo t-mlib-sh[1-4]* | sed 's:t-mlib-sh:,m:g;s: ::g'` ;; |
482 |
sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; |
483 |
sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; |
484 |
sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;; |
485 |
|
486 |
|
487 |
|
488 |
1.1 src/patchsets/gcc/4.3.1/gentoo/54_all_300-libstdc++-pic.patch |
489 |
|
490 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/54_all_300-libstdc++-pic.patch?rev=1.1&view=markup |
491 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/54_all_300-libstdc++-pic.patch?rev=1.1&content-type=text/plain |
492 |
|
493 |
Index: 54_all_300-libstdc++-pic.patch |
494 |
=================================================================== |
495 |
install libstdc++_pic.a if we have pic objs |
496 |
|
497 |
--- gcc/libstdc++-v3/src/Makefile.am |
498 |
+++ gcc/libstdc++-v3/src/Makefile.am |
499 |
@@ -214,6 +214,13 @@ |
500 |
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@ |
501 |
|
502 |
|
503 |
+install-exec-local: |
504 |
+ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \ |
505 |
+ if [ x"$$pic_objs" != x ]; then \ |
506 |
+ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \ |
507 |
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \ |
508 |
+ fi |
509 |
+ |
510 |
# Added bits to build debug library. |
511 |
if GLIBCXX_BUILD_DEBUG |
512 |
all-local: build_debug |
513 |
--- gcc/libstdc++-v3/src/Makefile.in |
514 |
+++ gcc/libstdc++-v3/src/Makefile.in |
515 |
@@ -625,7 +625,7 @@ |
516 |
|
517 |
install-data-am: install-data-local |
518 |
|
519 |
-install-exec-am: install-toolexeclibLTLIBRARIES |
520 |
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local |
521 |
|
522 |
install-info: install-info-am |
523 |
|
524 |
@@ -664,7 +664,7 @@ |
525 |
maintainer-clean-generic mostlyclean mostlyclean-compile \ |
526 |
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
527 |
tags uninstall uninstall-am uninstall-info-am \ |
528 |
- uninstall-toolexeclibLTLIBRARIES |
529 |
+ uninstall-toolexeclibLTLIBRARIES install-exec-local |
530 |
|
531 |
@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@libstdc++-symbol.ver: ${glibcxx_srcdir}/$(SYMVER_MAP) |
532 |
@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@ cp ${glibcxx_srcdir}/$(SYMVER_MAP) ./libstdc++-symbol.ver |
533 |
@@ -743,6 +743,14 @@ |
534 |
install_debug: |
535 |
(cd ${debugdir} && $(MAKE) \ |
536 |
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install) |
537 |
+ |
538 |
+install-exec-local: |
539 |
+ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \ |
540 |
+ if [ x"$$pic_objs" != x ]; then \ |
541 |
+ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \ |
542 |
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \ |
543 |
+ fi |
544 |
+ |
545 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
546 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
547 |
.NOEXPORT: |
548 |
|
549 |
|
550 |
|
551 |
1.1 src/patchsets/gcc/4.3.1/gentoo/61_all_gcc4-ia64-noteGNUstack.patch |
552 |
|
553 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/61_all_gcc4-ia64-noteGNUstack.patch?rev=1.1&view=markup |
554 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/61_all_gcc4-ia64-noteGNUstack.patch?rev=1.1&content-type=text/plain |
555 |
|
556 |
Index: 61_all_gcc4-ia64-noteGNUstack.patch |
557 |
=================================================================== |
558 |
2004-09-20 Jakub Jelinek <jakub@××××××.com> |
559 |
|
560 |
* config/rs6000/ppc-asm.h: Add .note.GNU-stack section also |
561 |
on ppc64-linux. |
562 |
|
563 |
* config/ia64/lib1funcs.asm: Add .note.GNU-stack section on |
564 |
ia64-linux. |
565 |
* config/ia64/crtbegin.asm: Likewise. |
566 |
* config/ia64/crtend.asm: Likewise. |
567 |
* config/ia64/crti.asm: Likewise. |
568 |
* config/ia64/crtn.asm: Likewise. |
569 |
|
570 |
2004-05-14 Jakub Jelinek <jakub@××××××.com> |
571 |
|
572 |
* config/ia64/linux.h (TARGET_ASM_FILE_END): Define. |
573 |
|
574 |
--- gcc/config/ia64/linux.h.jj 2004-05-14 07:21:27.000000000 -0400 |
575 |
+++ gcc/config/ia64/linux.h 2004-05-14 09:21:09.000000000 -0400 |
576 |
@@ -5,6 +5,8 @@ |
577 |
|
578 |
#define TARGET_VERSION fprintf (stderr, " (IA-64) Linux"); |
579 |
|
580 |
+#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
581 |
+ |
582 |
/* This is for -profile to use -lc_p instead of -lc. */ |
583 |
#undef CC1_SPEC |
584 |
#define CC1_SPEC "%{profile:-p} %{G*}" |
585 |
--- gcc/config/rs6000/ppc-asm.h.jj 2003-06-04 18:40:59.000000000 +0200 |
586 |
+++ gcc/config/rs6000/ppc-asm.h 2004-09-20 14:17:47.259396058 +0200 |
587 |
@@ -158,7 +158,7 @@ GLUE(.L,name): \ |
588 |
.size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name) |
589 |
#endif |
590 |
|
591 |
-#if defined __linux__ && !defined __powerpc64__ |
592 |
+#if defined __linux__ |
593 |
.section .note.GNU-stack |
594 |
.previous |
595 |
#endif |
596 |
--- gcc/config/ia64/lib1funcs.asm.jj 2003-10-27 11:45:17.000000000 +0100 |
597 |
+++ gcc/config/ia64/lib1funcs.asm 2004-09-20 14:26:28.094132706 +0200 |
598 |
@@ -741,3 +741,7 @@ __floattitf: |
599 |
.endp __floattitf |
600 |
|
601 |
#endif |
602 |
+ |
603 |
+#ifdef __linux__ |
604 |
+.section .note.GNU-stack; .previous |
605 |
+#endif |
606 |
--- gcc/config/ia64/crtend.asm.jj 2004-05-20 14:36:14.000000000 +0200 |
607 |
+++ gcc/config/ia64/crtend.asm 2004-09-20 14:25:57.329580329 +0200 |
608 |
@@ -113,3 +113,7 @@ __do_global_ctors_aux: |
609 |
|
610 |
br.ret.sptk.many rp |
611 |
.endp __do_global_ctors_aux |
612 |
+ |
613 |
+#ifdef __linux__ |
614 |
+.section .note.GNU-stack; .previous |
615 |
+#endif |
616 |
--- gcc/config/ia64/crti.asm.jj 2003-04-02 17:14:15.000000000 +0200 |
617 |
+++ gcc/config/ia64/crti.asm 2004-09-20 14:26:06.852894092 +0200 |
618 |
@@ -64,3 +64,7 @@ _fini: |
619 |
.body |
620 |
|
621 |
# end of crti.asm |
622 |
+ |
623 |
+#ifdef __linux__ |
624 |
+.section .note.GNU-stack; .previous |
625 |
+#endif |
626 |
--- gcc/config/ia64/crtbegin.asm.jj 2004-05-20 14:36:14.000000000 +0200 |
627 |
+++ gcc/config/ia64/crtbegin.asm 2004-09-20 14:25:47.105390566 +0200 |
628 |
@@ -246,3 +246,7 @@ __do_jv_register_classes: |
629 |
.weak __cxa_finalize |
630 |
#endif |
631 |
.weak _Jv_RegisterClasses |
632 |
+ |
633 |
+#ifdef __linux__ |
634 |
+.section .note.GNU-stack; .previous |
635 |
+#endif |
636 |
--- gcc/config/ia64/crtn.asm.jj 2003-04-02 17:14:15.000000000 +0200 |
637 |
+++ gcc/config/ia64/crtn.asm 2004-09-20 14:26:16.381206878 +0200 |
638 |
@@ -54,3 +54,7 @@ |
639 |
br.ret.sptk.many b0 |
640 |
|
641 |
# end of crtn.asm |
642 |
+ |
643 |
+#ifdef __linux__ |
644 |
+.section .note.GNU-stack; .previous |
645 |
+#endif |
646 |
|
647 |
|
648 |
|
649 |
1.1 src/patchsets/gcc/4.3.1/gentoo/61_all_gcc43-pr24170.patch |
650 |
|
651 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/61_all_gcc43-pr24170.patch?rev=1.1&view=markup |
652 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/61_all_gcc43-pr24170.patch?rev=1.1&content-type=text/plain |
653 |
|
654 |
Index: 61_all_gcc43-pr24170.patch |
655 |
=================================================================== |
656 |
http://gcc.gnu.org/PR24170 |
657 |
|
658 |
2008-02-20 Tom Tromey <tromey@××××××.com> |
659 |
|
660 |
PR libgcj/24170: |
661 |
* java/io/natFilePosix.cc (File::performList): Don't use |
662 |
readdir_r. |
663 |
* configure, include/config.h.in: Rebuilt. |
664 |
* configure.ac: Don't check for readdir_r. |
665 |
|
666 |
Index: libjava/configure.ac |
667 |
=================================================================== |
668 |
--- libjava/configure.ac (revision 132490) |
669 |
+++ libjava/configure.ac (revision 132491) |
670 |
@@ -1023,7 +1023,7 @@ |
671 |
PLATFORMNET=NoNet |
672 |
else |
673 |
AC_CHECK_FUNCS([strerror_r select fstat open fsync sleep opendir \ |
674 |
- localtime_r readdir_r getpwuid_r getcwd \ |
675 |
+ localtime_r getpwuid_r getcwd \ |
676 |
access stat lstat mkdir rename rmdir unlink utime chmod readlink \ |
677 |
nl_langinfo setlocale \ |
678 |
inet_pton uname inet_ntoa \ |
679 |
Index: libjava/include/config.h.in |
680 |
=================================================================== |
681 |
--- libjava/include/config.h.in (revision 132490) |
682 |
+++ libjava/include/config.h.in (revision 132491) |
683 |
@@ -214,9 +214,6 @@ |
684 |
/* Define to 1 if you have the <pwd.h> header file. */ |
685 |
#undef HAVE_PWD_H |
686 |
|
687 |
-/* Define to 1 if you have the `readdir_r' function. */ |
688 |
-#undef HAVE_READDIR_R |
689 |
- |
690 |
/* Define to 1 if you have the `readlink' function. */ |
691 |
#undef HAVE_READLINK |
692 |
|
693 |
Index: libjava/java/io/natFilePosix.cc |
694 |
=================================================================== |
695 |
--- libjava/java/io/natFilePosix.cc (revision 132490) |
696 |
+++ libjava/java/io/natFilePosix.cc (revision 132491) |
697 |
@@ -1,6 +1,6 @@ |
698 |
// natFile.cc - Native part of File class for POSIX. |
699 |
|
700 |
-/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006 |
701 |
+/* Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2006, 2008 |
702 |
Free Software Foundation |
703 |
|
704 |
This file is part of libgcj. |
705 |
@@ -292,13 +292,7 @@ |
706 |
|
707 |
java::util::ArrayList *list = new java::util::ArrayList (); |
708 |
struct dirent *d; |
709 |
-#if defined(HAVE_READDIR_R) && defined(_POSIX_PTHREAD_SEMANTICS) |
710 |
- int name_max = pathconf (buf, _PC_NAME_MAX); |
711 |
- char dbuf[sizeof (struct dirent) + name_max + 1]; |
712 |
- while (readdir_r (dir, (struct dirent *) dbuf, &d) == 0 && d != NULL) |
713 |
-#else /* HAVE_READDIR_R */ |
714 |
while ((d = readdir (dir)) != NULL) |
715 |
-#endif /* HAVE_READDIR_R */ |
716 |
{ |
717 |
// Omit "." and "..". |
718 |
if (d->d_name[0] == '.' |
719 |
|
720 |
|
721 |
|
722 |
1.1 src/patchsets/gcc/4.3.1/gentoo/62_all_gcc4-noteGNUstack.patch |
723 |
|
724 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/62_all_gcc4-noteGNUstack.patch?rev=1.1&view=markup |
725 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/62_all_gcc4-noteGNUstack.patch?rev=1.1&content-type=text/plain |
726 |
|
727 |
Index: 62_all_gcc4-noteGNUstack.patch |
728 |
=================================================================== |
729 |
2005-02-08 Jakub Jelinek <jakub@××××××.com> |
730 |
|
731 |
* src/alpha/osf.S: Add .note.GNU-stack on Linux. |
732 |
* src/s390/sysv.S: Likewise. |
733 |
* src/powerpc/linux64.S: Likewise. |
734 |
* src/powerpc/linux64_closure.S: Likewise. |
735 |
* src/powerpc/ppc_closure.S: Likewise. |
736 |
* src/powerpc/sysv.S: Likewise. |
737 |
* src/x86/unix64.S: Likewise. |
738 |
* src/x86/sysv.S: Likewise. |
739 |
* src/sparc/v8.S: Likewise. |
740 |
* src/sparc/v9.S: Likewise. |
741 |
* src/m68k/sysv.S: Likewise. |
742 |
* src/ia64/unix.S: Likewise. |
743 |
* src/arm/sysv.S: Likewise. |
744 |
|
745 |
* ia64_save_regs_in_stack.s: Moved to... |
746 |
* ia64_save_regs_in_stack.S: ... this. Add .note.GNU-stack |
747 |
on Linux. |
748 |
|
749 |
--- libffi/src/alpha/osf.S.jj 2003-10-23 09:55:21.000000000 +0200 |
750 |
+++ libffi/src/alpha/osf.S 2005-02-08 16:12:40.215425842 +0100 |
751 |
@@ -352,4 +352,8 @@ $LASFDE3: |
752 |
.byte 0x12 # uleb128 0x12 |
753 |
.align 3 |
754 |
$LEFDE3: |
755 |
+ |
756 |
+#ifdef __linux__ |
757 |
+ .section .note.GNU-stack,"",@progbits |
758 |
+#endif |
759 |
#endif |
760 |
--- libffi/src/s390/sysv.S.jj 2003-10-23 09:55:21.000000000 +0200 |
761 |
+++ libffi/src/s390/sysv.S 2005-02-08 16:22:30.810943388 +0100 |
762 |
@@ -427,3 +427,6 @@ ffi_closure_SYSV: |
763 |
|
764 |
#endif |
765 |
|
766 |
+#if defined __ELF__ && defined __linux__ |
767 |
+ .section .note.GNU-stack,"",@progbits |
768 |
+#endif |
769 |
--- libffi/src/powerpc/linux64.S.jj 2004-09-03 12:35:54.000000000 +0200 |
770 |
+++ libffi/src/powerpc/linux64.S 2005-02-08 16:18:41.998808639 +0100 |
771 |
@@ -174,3 +174,7 @@ ffi_call_LINUX64: |
772 |
.align 3 |
773 |
.LEFDE1: |
774 |
#endif |
775 |
+ |
776 |
+#if defined __ELF__ && defined __linux__ |
777 |
+ .section .note.GNU-stack,"",@progbits |
778 |
+#endif |
779 |
--- libffi/src/powerpc/linux64_closure.S.jj 2004-09-03 12:35:54.000000000 +0200 |
780 |
+++ libffi/src/powerpc/linux64_closure.S 2005-02-08 16:18:53.821697060 +0100 |
781 |
@@ -203,3 +203,7 @@ ffi_closure_LINUX64: |
782 |
.align 3 |
783 |
.LEFDE1: |
784 |
#endif |
785 |
+ |
786 |
+#if defined __ELF__ && defined __linux__ |
787 |
+ .section .note.GNU-stack,"",@progbits |
788 |
+#endif |
789 |
--- libffi/src/powerpc/ppc_closure.S.jj 2004-09-03 12:35:54.000000000 +0200 |
790 |
+++ libffi/src/powerpc/ppc_closure.S 2005-02-08 16:18:25.734713428 +0100 |
791 |
@@ -248,3 +248,7 @@ END(ffi_closure_SYSV) |
792 |
.LEFDE1: |
793 |
|
794 |
#endif |
795 |
+ |
796 |
+#if defined __ELF__ && defined __linux__ |
797 |
+ .section .note.GNU-stack,"",@progbits |
798 |
+#endif |
799 |
--- libffi/src/powerpc/sysv.S.jj 2004-09-03 12:35:54.000000000 +0200 |
800 |
+++ libffi/src/powerpc/sysv.S 2005-02-08 16:18:13.673867518 +0100 |
801 |
@@ -187,3 +187,7 @@ END(ffi_call_SYSV) |
802 |
.align 2 |
803 |
.LEFDE1: |
804 |
#endif |
805 |
+ |
806 |
+#if defined __ELF__ && defined __linux__ |
807 |
+ .section .note.GNU-stack,"",@progbits |
808 |
+#endif |
809 |
--- libffi/src/x86/unix64.S.jj 2004-12-27 13:01:37.000000000 +0100 |
810 |
+++ libffi/src/x86/unix64.S 2005-02-08 16:25:38.656395947 +0100 |
811 |
@@ -373,3 +373,7 @@ ffi_closure_unix64: |
812 |
.LEFDE3: |
813 |
|
814 |
#endif /* __x86_64__ */ |
815 |
+ |
816 |
+#if defined __ELF__ && defined __linux__ |
817 |
+ .section .note.GNU-stack,"",@progbits |
818 |
+#endif |
819 |
--- libffi/src/x86/sysv.S.jj 2003-10-23 09:55:21.000000000 +0200 |
820 |
+++ libffi/src/x86/sysv.S 2005-02-08 16:25:28.197263821 +0100 |
821 |
@@ -182,3 +182,7 @@ epilogue: |
822 |
.LEFDE1: |
823 |
|
824 |
#endif /* ifndef __x86_64__ */ |
825 |
+ |
826 |
+#if defined __ELF__ && defined __linux__ |
827 |
+ .section .note.GNU-stack,"",@progbits |
828 |
+#endif |
829 |
--- libffi/src/sparc/v8.S.jj 2004-11-24 22:02:00.000000000 +0100 |
830 |
+++ libffi/src/sparc/v8.S 2005-02-08 16:22:55.220583988 +0100 |
831 |
@@ -265,3 +265,7 @@ done2: |
832 |
.byte 0x1f ! uleb128 0x1f |
833 |
.align WS |
834 |
.LLEFDE2: |
835 |
+ |
836 |
+#if defined __ELF__ && defined __linux__ |
837 |
+ .section .note.GNU-stack,"",@progbits |
838 |
+#endif |
839 |
--- libffi/src/sparc/v9.S.jj 2004-01-26 11:34:57.000000000 +0100 |
840 |
+++ libffi/src/sparc/v9.S 2005-02-08 16:25:12.153129117 +0100 |
841 |
@@ -300,3 +300,7 @@ longdouble1: |
842 |
.align 8 |
843 |
.LLEFDE2: |
844 |
#endif |
845 |
+ |
846 |
+#ifdef __linux__ |
847 |
+ .section .note.GNU-stack,"",@progbits |
848 |
+#endif |
849 |
--- libffi/src/m68k/sysv.S.jj 2003-10-23 09:55:21.000000000 +0200 |
850 |
+++ libffi/src/m68k/sysv.S 2005-02-08 16:16:18.341466343 +0100 |
851 |
@@ -95,3 +95,7 @@ epilogue: |
852 |
rts |
853 |
CFI_ENDPROC() |
854 |
.size ffi_closure_struct_SYSV,.-ffi_closure_struct_SYSV |
855 |
+ |
856 |
+#if defined __ELF__ && defined __linux__ |
857 |
+ .section .note.GNU-stack,"",@progbits |
858 |
+#endif |
859 |
--- libffi/src/ia64/unix.S.jj 2005-01-04 15:42:01.000000000 +0100 |
860 |
+++ libffi/src/ia64/unix.S 2005-02-08 16:16:01.253518356 +0100 |
861 |
@@ -572,3 +572,7 @@ ffi_closure_unix: |
862 |
data8 @pcrel(.Lld_hfa_float) // FFI_IA64_TYPE_HFA_FLOAT |
863 |
data8 @pcrel(.Lld_hfa_double) // FFI_IA64_TYPE_HFA_DOUBLE |
864 |
data8 @pcrel(.Lld_hfa_ldouble) // FFI_IA64_TYPE_HFA_LDOUBLE |
865 |
+ |
866 |
+#if defined __ELF__ && defined __linux__ |
867 |
+ .section .note.GNU-stack,"",@progbits |
868 |
+#endif |
869 |
--- libffi/src/arm/sysv.S.jj 2004-10-28 15:10:11.000000000 +0200 |
870 |
+++ libffi/src/arm/sysv.S 2005-02-08 16:14:02.282767581 +0100 |
871 |
@@ -207,3 +207,6 @@ LSYM(Lepilogue): |
872 |
UNWIND .fnend |
873 |
.size CNAME(ffi_closure_SYSV),.ffi_closure_SYSV_end-CNAME(ffi_closure_SYSV) |
874 |
|
875 |
+#if defined __ELF__ && defined __linux__ |
876 |
+ .section .note.GNU-stack,"",%progbits |
877 |
+#endif |
878 |
--- boehm-gc/ia64_save_regs_in_stack.S.jj 2005-02-08 16:32:57.368040486 +0100 |
879 |
+++ boehm-gc/ia64_save_regs_in_stack.S 2005-02-08 16:33:36.243096641 +0100 |
880 |
@@ -0,0 +1,15 @@ |
881 |
+ .text |
882 |
+ .align 16 |
883 |
+ .global GC_save_regs_in_stack |
884 |
+ .proc GC_save_regs_in_stack |
885 |
+GC_save_regs_in_stack: |
886 |
+ .bodyfoo.mpg |
887 |
+ flushrs |
888 |
+ ;; |
889 |
+ mov r8=ar.bsp |
890 |
+ br.ret.sptk.few rp |
891 |
+ .endp GC_save_regs_in_stack |
892 |
+ |
893 |
+#ifdef __linux__ |
894 |
+ .section .note.GNU-stack,"",@progbits |
895 |
+#endif |
896 |
--- boehm-gc/ia64_save_regs_in_stack.s.jj 2004-06-30 09:32:52.000000000 +0200 |
897 |
+++ boehm-gc/ia64_save_regs_in_stack.s 2005-02-08 16:32:51.555078799 +0100 |
898 |
@@ -1,12 +0,0 @@ |
899 |
- .text |
900 |
- .align 16 |
901 |
- .global GC_save_regs_in_stack |
902 |
- .proc GC_save_regs_in_stack |
903 |
-GC_save_regs_in_stack: |
904 |
- .body |
905 |
- flushrs |
906 |
- ;; |
907 |
- mov r8=ar.bsp |
908 |
- br.ret.sptk.few rp |
909 |
- .endp GC_save_regs_in_stack |
910 |
- |
911 |
|
912 |
|
913 |
|
914 |
1.1 src/patchsets/gcc/4.3.1/gentoo/64_all_gcc43-pr34571.patch |
915 |
|
916 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/64_all_gcc43-pr34571.patch?rev=1.1&view=markup |
917 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/64_all_gcc43-pr34571.patch?rev=1.1&content-type=text/plain |
918 |
|
919 |
Index: 64_all_gcc43-pr34571.patch |
920 |
=================================================================== |
921 |
http://gcc.gnu.org/PR34571 |
922 |
|
923 |
2007-12-26 Rask Ingemann Lambertsen <rask@×××××××.dk> |
924 |
|
925 |
PR target/34571 |
926 |
* config/alpha/alpha.c (alpha_cannot_force_const_mem): Use |
927 |
symbolic_operand. |
928 |
* varasm.c (output_constant_pool_1): Fix typo. |
929 |
|
930 |
Index: gcc/config/alpha/alpha.c |
931 |
=================================================================== |
932 |
--- gcc/config/alpha/alpha.c (revision 131132) |
933 |
+++ gcc/config/alpha/alpha.c (working copy) |
934 |
@@ -1112,10 +1112,9 @@ alpha_legitimize_address (rtx x, rtx scr |
935 |
|
936 |
static bool |
937 |
alpha_cannot_force_const_mem (rtx x) |
938 |
{ |
939 |
- enum rtx_code code = GET_CODE (x); |
940 |
- return code == SYMBOL_REF || code == LABEL_REF || code == CONST; |
941 |
+ return symbolic_operand (x, GET_MODE (x)); |
942 |
} |
943 |
|
944 |
/* We do not allow indirect calls to be optimized into sibling calls, nor |
945 |
can we allow a call to a function with a different GP to be optimized |
946 |
Index: gcc/varasm.c |
947 |
=================================================================== |
948 |
--- gcc/varasm.c (revision 131132) |
949 |
+++ gcc/varasm.c (working copy) |
950 |
@@ -3709,9 +3709,9 @@ output_constant_pool_1 (struct constant_ |
951 |
tmp = XEXP (XEXP (x, 0), 0); |
952 |
/* FALLTHRU */ |
953 |
|
954 |
case LABEL_REF: |
955 |
- tmp = XEXP (x, 0); |
956 |
+ tmp = XEXP (tmp, 0); |
957 |
gcc_assert (!INSN_DELETED_P (tmp)); |
958 |
gcc_assert (!NOTE_P (tmp) |
959 |
|| NOTE_KIND (tmp) != NOTE_INSN_DELETED); |
960 |
break; |
961 |
|
962 |
|
963 |
|
964 |
1.1 src/patchsets/gcc/4.3.1/gentoo/66_all_gcc43-pr25343.patch |
965 |
|
966 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/66_all_gcc43-pr25343.patch?rev=1.1&view=markup |
967 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/66_all_gcc43-pr25343.patch?rev=1.1&content-type=text/plain |
968 |
|
969 |
Index: 66_all_gcc43-pr25343.patch |
970 |
=================================================================== |
971 |
http://gcc.gnu.org/PR25343 |
972 |
|
973 |
sniped from Debian |
974 |
|
975 |
2008-04-27 Roman Zippel <zippel@××××××××××.org> |
976 |
|
977 |
* config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __mc68000__. |
978 |
|
979 |
Index: gcc/config/host-linux.c |
980 |
=================================================================== |
981 |
--- gcc/config/host-linux.c |
982 |
+++ gcc/config/host-linux.c |
983 |
@@ -85,6 +85,8 @@ |
984 |
# define TRY_EMPTY_VM_SPACE 0x8000000000 |
985 |
#elif defined(__sparc__) |
986 |
# define TRY_EMPTY_VM_SPACE 0x60000000 |
987 |
+#elif defined(__mc68000__) |
988 |
+# define TRY_EMPTY_VM_SPACE 0x40000000 |
989 |
#else |
990 |
# define TRY_EMPTY_VM_SPACE 0 |
991 |
#endif |
992 |
|
993 |
|
994 |
|
995 |
|
996 |
1.1 src/patchsets/gcc/4.3.1/gentoo/74_all_sh-pr24836.patch |
997 |
|
998 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/74_all_sh-pr24836.patch?rev=1.1&view=markup |
999 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/74_all_sh-pr24836.patch?rev=1.1&content-type=text/plain |
1000 |
|
1001 |
Index: 74_all_sh-pr24836.patch |
1002 |
=================================================================== |
1003 |
http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348 |
1004 |
http://gcc.gnu.org/PR24836 |
1005 |
|
1006 |
--- gcc/gcc/configure.ac (revision 106699) |
1007 |
+++ gcc/gcc/configure.ac (working copy) |
1008 |
@@ -2446,7 +2446,7 @@ |
1009 |
tls_first_minor=14 |
1010 |
tls_as_opt="-m64 -Aesame --fatal-warnings" |
1011 |
;; |
1012 |
- sh-*-* | sh[34]-*-*) |
1013 |
+ sh-*-* | sh[34]*-*-*) |
1014 |
conftest_s=' |
1015 |
.section ".tdata","awT",@progbits |
1016 |
foo: .long 25 |
1017 |
--- gcc/gcc/configure |
1018 |
+++ gcc/gcc/configure |
1019 |
@@ -14846,7 +14846,7 @@ |
1020 |
tls_first_minor=14 |
1021 |
tls_as_opt="-m64 -Aesame --fatal-warnings" |
1022 |
;; |
1023 |
- sh-*-* | sh[34]-*-*) |
1024 |
+ sh-*-* | sh[34]*-*-*) |
1025 |
conftest_s=' |
1026 |
.section ".tdata","awT",@progbits |
1027 |
foo: .long 25 |
1028 |
|
1029 |
|
1030 |
|
1031 |
1.1 src/patchsets/gcc/4.3.1/gentoo/README.history |
1032 |
|
1033 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/README.history?rev=1.1&view=markup |
1034 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.1/gentoo/README.history?rev=1.1&content-type=text/plain |
1035 |
|
1036 |
Index: README.history |
1037 |
=================================================================== |
1038 |
1.0 08.06.2008 |
1039 |
+ 00_all_gcc-4.1-alpha-mieee-default.patch |
1040 |
+ 00_all_gcc-trampolinewarn.patch |
1041 |
+ 03_all_gcc43-java-nomulti.patch |
1042 |
+ 08_all_gcc-4.1-cross-compile.patch |
1043 |
+ 11_all_gcc-netbsd-symbolic.patch |
1044 |
+ 14_all_gcc-sparc64-bsd.patch |
1045 |
+ 18_all_904-flatten-switch-stmt-00.patch |
1046 |
+ 51_all_gcc-3.4-libiberty-pic.patch |
1047 |
+ 53_all_gcc4-superh-default-multilib.patch |
1048 |
+ 54_all_300-libstdc++-pic.patch |
1049 |
+ 61_all_gcc43-pr24170.patch |
1050 |
+ 61_all_gcc4-ia64-noteGNUstack.patch |
1051 |
+ 62_all_gcc4-noteGNUstack.patch |
1052 |
+ 64_all_gcc43-pr34571.patch |
1053 |
+ 66_all_gcc43-pr25343.patch |
1054 |
+ 74_all_sh-pr24836.patch |
1055 |
|
1056 |
|
1057 |
|
1058 |
-- |
1059 |
gentoo-commits@l.g.o mailing list |