1 |
vapier 08/03/17 03:37:06 |
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 |
74_all_sh-pr24836.patch |
14 |
85_all_gcc-ca-translation-typo.patch README.history |
15 |
Log: |
16 |
initial 4.3.0 patchset based on last 4.2.3 patchset |
17 |
|
18 |
Revision Changes Path |
19 |
1.1 src/patchsets/gcc/4.3.0/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch |
20 |
|
21 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch?rev=1.1&view=markup |
22 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch?rev=1.1&content-type=text/plain |
23 |
|
24 |
Index: 00_all_gcc-4.1-alpha-mieee-default.patch |
25 |
=================================================================== |
26 |
Set the default behavior on alpha to use -mieee since the large majority of |
27 |
time we want this (bad/weird things can happen with packages built without |
28 |
-mieee). |
29 |
|
30 |
To satisfy those people who may not want -mieee forced on them all the time, |
31 |
we also provide -mno-ieee. |
32 |
|
33 |
Patch by Mike Frysinger <vapier@g.o> |
34 |
|
35 |
--- gcc-4.3.0/gcc/config/alpha/alpha.h |
36 |
+++ gcc-4.3.0/gcc/config/alpha/alpha.h |
37 |
@@ -95,6 +95,8 @@ |
38 |
while (0) |
39 |
#endif |
40 |
|
41 |
+#define CPP_SPEC "%{!no-ieee:-mieee}" |
42 |
+ |
43 |
#define WORD_SWITCH_TAKES_ARG(STR) \ |
44 |
(!strcmp (STR, "rpath") || DEFAULT_WORD_SWITCH_TAKES_ARG(STR)) |
45 |
|
46 |
--- gcc-4.3.0/gcc/config/alpha/alpha.opt |
47 |
+++ gcc-4.3.0/gcc/config/alpha/alpha.opt |
48 |
@@ -39,7 +39,7 @@ |
49 |
Request IEEE-conformant math library routines (OSF/1) |
50 |
|
51 |
mieee |
52 |
-Target Report RejectNegative Mask(IEEE) |
53 |
+Target Report Mask(IEEE) |
54 |
Emit IEEE-conformant code, without inexact exceptions |
55 |
|
56 |
mieee-with-inexact |
57 |
|
58 |
|
59 |
|
60 |
1.1 src/patchsets/gcc/4.3.0/gentoo/00_all_gcc-trampolinewarn.patch |
61 |
|
62 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/00_all_gcc-trampolinewarn.patch?rev=1.1&view=markup |
63 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/00_all_gcc-trampolinewarn.patch?rev=1.1&content-type=text/plain |
64 |
|
65 |
Index: 00_all_gcc-trampolinewarn.patch |
66 |
=================================================================== |
67 |
This trivial patch causes gcc to emit a warning whenever |
68 |
it generates a trampoline. These are otherwise hard to |
69 |
locate. It is rigged to default ON - to have it default |
70 |
to OFF remove the text 'Init(1)' from the common.opt |
71 |
patch, leaving just 'Common Var(warn_trampolines)'. |
72 |
Kevin F. Quinn <kevquinn@g.o> 17 Jan 2006 |
73 |
|
74 |
--- gcc/gcc/common.opt |
75 |
+++ gcc/gcc/common.opt |
76 |
@@ -141,6 +141,10 @@ |
77 |
Common Var(warn_system_headers) |
78 |
Do not suppress warnings from system headers |
79 |
|
80 |
+Wtrampolines |
81 |
+Common Var(warn_trampolines) Init(1) |
82 |
+Warn whenever a trampoline is generated |
83 |
+ |
84 |
Wuninitialized |
85 |
Common Var(warn_uninitialized) |
86 |
Warn about uninitialized automatic variables |
87 |
--- gcc/gcc/builtins.c |
88 |
+++ gcc/gcc/builtins.c |
89 |
@@ -5224,6 +5224,9 @@ |
90 |
#endif |
91 |
trampolines_created = 1; |
92 |
INITIALIZE_TRAMPOLINE (r_tramp, r_func, r_chain); |
93 |
+ |
94 |
+ if (warn_trampolines) |
95 |
+ warning (OPT_Wtrampolines, "generating trampoline in object (requires executable stack)"); |
96 |
|
97 |
return const0_rtx; |
98 |
} |
99 |
|
100 |
|
101 |
|
102 |
1.1 src/patchsets/gcc/4.3.0/gentoo/03_all_gcc43-java-nomulti.patch |
103 |
|
104 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/03_all_gcc43-java-nomulti.patch?rev=1.1&view=markup |
105 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/03_all_gcc43-java-nomulti.patch?rev=1.1&content-type=text/plain |
106 |
|
107 |
Index: 03_all_gcc43-java-nomulti.patch |
108 |
=================================================================== |
109 |
--- libjava/configure.ac.jj 2007-12-07 17:55:50.000000000 +0100 |
110 |
+++ libjava/configure.ac 2007-12-07 18:36:56.000000000 +0100 |
111 |
@@ -82,6 +82,13 @@ AC_ARG_ENABLE(java-maintainer-mode, |
112 |
[allow rebuilding of .class and .h files])) |
113 |
AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes) |
114 |
|
115 |
+AC_ARG_ENABLE(libjava-multilib, |
116 |
+ AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib])) |
117 |
+if test "$enable_libjava_multilib" = no; then |
118 |
+ multilib=no |
119 |
+ ac_configure_args="$ac_configure_args --disable-multilib" |
120 |
+fi |
121 |
+ |
122 |
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. |
123 |
GCC_NO_EXECUTABLES |
124 |
|
125 |
--- libjava/configure.jj 2007-12-07 17:55:50.000000000 +0100 |
126 |
+++ libjava/configure 2007-12-07 18:39:58.000000000 +0100 |
127 |
@@ -1018,6 +1018,8 @@ Optional Features: |
128 |
--enable-gconf-peer compile GConf native peers for util.preferences |
129 |
--enable-java-maintainer-mode |
130 |
allow rebuilding of .class and .h files |
131 |
+ --enable-libjava-multilib |
132 |
+ build libjava as multilib |
133 |
--disable-dependency-tracking speeds up one-time build |
134 |
--enable-dependency-tracking do not reject slow dependency extractors |
135 |
--enable-maintainer-mode enable make rules and dependencies not useful |
136 |
@@ -1848,6 +1850,16 @@ else |
137 |
fi |
138 |
|
139 |
|
140 |
+# Check whether --enable-libjava-multilib was given. |
141 |
+if test "${enable_libjava_multilib+set}" = set; then |
142 |
+ enableval=$enable_libjava_multilib; |
143 |
+fi |
144 |
+ |
145 |
+if test "$enable_libjava_multilib" = no; then |
146 |
+ multilib=no |
147 |
+ ac_configure_args="$ac_configure_args --disable-multilib" |
148 |
+fi |
149 |
+ |
150 |
# It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX. |
151 |
|
152 |
|
153 |
|
154 |
|
155 |
|
156 |
1.1 src/patchsets/gcc/4.3.0/gentoo/08_all_gcc-4.1-cross-compile.patch |
157 |
|
158 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/08_all_gcc-4.1-cross-compile.patch?rev=1.1&view=markup |
159 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/08_all_gcc-4.1-cross-compile.patch?rev=1.1&content-type=text/plain |
160 |
|
161 |
Index: 08_all_gcc-4.1-cross-compile.patch |
162 |
=================================================================== |
163 |
Some notes on the 'bootstrap with or without libc headers' debate: |
164 |
http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html |
165 |
http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html |
166 |
|
167 |
--- gcc/unwind-dw2.c |
168 |
+++ gcc/unwind-dw2.c |
169 |
@@ -253,9 +253,11 @@ |
170 |
} |
171 |
#endif |
172 |
|
173 |
+#ifndef inhibit_libc |
174 |
#ifdef MD_UNWIND_SUPPORT |
175 |
#include MD_UNWIND_SUPPORT |
176 |
#endif |
177 |
+#endif |
178 |
|
179 |
/* Extract any interesting information from the CIE for the translation |
180 |
unit F belongs to. Return a pointer to the byte after the augmentation, |
181 |
--- gcc/configure |
182 |
+++ gcc/configure |
183 |
@@ -12857,7 +12857,7 @@ then |
184 |
| powerpc*-*-*,powerpc64*-*-*) |
185 |
CROSS="$CROSS -DNATIVE_CROSS" ;; |
186 |
esac |
187 |
-elif test "x$TARGET_SYSTEM_ROOT" != x; then |
188 |
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then |
189 |
SYSTEM_HEADER_DIR=$build_system_header_dir |
190 |
fi |
191 |
|
192 |
--- gcc/configure.ac |
193 |
+++ gcc/configure.ac |
194 |
@@ -1717,7 +1717,7 @@ then |
195 |
| powerpc*-*-*,powerpc64*-*-*) |
196 |
CROSS="$CROSS -DNATIVE_CROSS" ;; |
197 |
esac |
198 |
-elif test "x$TARGET_SYSTEM_ROOT" != x; then |
199 |
+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then |
200 |
SYSTEM_HEADER_DIR=$build_system_header_dir |
201 |
fi |
202 |
|
203 |
|
204 |
|
205 |
|
206 |
1.1 src/patchsets/gcc/4.3.0/gentoo/11_all_gcc-netbsd-symbolic.patch |
207 |
|
208 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/11_all_gcc-netbsd-symbolic.patch?rev=1.1&view=markup |
209 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/11_all_gcc-netbsd-symbolic.patch?rev=1.1&content-type=text/plain |
210 |
|
211 |
Index: 11_all_gcc-netbsd-symbolic.patch |
212 |
=================================================================== |
213 |
http://bugs.gentoo.org/122698 |
214 |
|
215 |
--- gcc/config/netbsd-elf.h |
216 |
+++ gcc/config/netbsd-elf.h |
217 |
@@ -83,6 +83,7 @@ |
218 |
#define NETBSD_LINK_SPEC_ELF \ |
219 |
"%{assert*} %{R*} %{rpath*} \ |
220 |
%{shared:-shared} \ |
221 |
+ %{symbolic:-Bsymbolic} \ |
222 |
%{!shared: \ |
223 |
-dc -dp \ |
224 |
%{!nostdlib: \ |
225 |
|
226 |
|
227 |
|
228 |
1.1 src/patchsets/gcc/4.3.0/gentoo/14_all_gcc-sparc64-bsd.patch |
229 |
|
230 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/14_all_gcc-sparc64-bsd.patch?rev=1.1&view=markup |
231 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/14_all_gcc-sparc64-bsd.patch?rev=1.1&content-type=text/plain |
232 |
|
233 |
Index: 14_all_gcc-sparc64-bsd.patch |
234 |
=================================================================== |
235 |
--- a/gcc/config/sparc/freebsd.h 2006-02-02 19:55:09 +0000 |
236 |
+++ b/gcc/config/sparc/freebsd.h 2007-09-06 23:55:21 +0100 |
237 |
@@ -26,9 +26,22 @@ |
238 |
/* FreeBSD needs the platform name (sparc64) defined. |
239 |
Emacs needs to know if the arch is 64 or 32-bits. */ |
240 |
|
241 |
-#undef CPP_CPU64_DEFAULT_SPEC |
242 |
-#define CPP_CPU64_DEFAULT_SPEC \ |
243 |
- "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__" |
244 |
+#undef FBSD_TARGET_CPU_CPP_BUILTINS |
245 |
+#define FBSD_TARGET_CPU_CPP_BUILTINS() \ |
246 |
+ do \ |
247 |
+ { \ |
248 |
+ if (TARGET_ARCH64) \ |
249 |
+ { \ |
250 |
+ builtin_define ("__sparc64__"); \ |
251 |
+ builtin_define ("__sparc_v9__"); \ |
252 |
+ builtin_define ("__sparcv9"); \ |
253 |
+ } \ |
254 |
+ else \ |
255 |
+ builtin_define ("__sparc"); \ |
256 |
+ builtin_define ("__sparc__"); \ |
257 |
+ } \ |
258 |
+ while (0) |
259 |
+ |
260 |
|
261 |
#define LINK_SPEC "%(link_arch) \ |
262 |
%{!mno-relax:%{!r:-relax}} \ |
263 |
|
264 |
|
265 |
|
266 |
1.1 src/patchsets/gcc/4.3.0/gentoo/18_all_904-flatten-switch-stmt-00.patch |
267 |
|
268 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/18_all_904-flatten-switch-stmt-00.patch?rev=1.1&view=markup |
269 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/18_all_904-flatten-switch-stmt-00.patch?rev=1.1&content-type=text/plain |
270 |
|
271 |
Index: 18_all_904-flatten-switch-stmt-00.patch |
272 |
=================================================================== |
273 |
http://gcc.gnu.org/ml/gcc-patches/2007-04/msg00927.html |
274 |
|
275 |
Hi, |
276 |
|
277 |
The attached patch makes sure that we create smaller object code for |
278 |
simple switch statements. We just make sure to flatten the switch |
279 |
statement into an if-else chain, basically. |
280 |
|
281 |
This fixes a size-regression as compared to gcc-3.4, as can be seen |
282 |
below. |
283 |
|
284 |
2007-04-15 Bernhard Fischer <..> |
285 |
|
286 |
* stmt.c (expand_case): Do not create a complex binary tree when |
287 |
optimizing for size but rather use the simple ordered list. |
288 |
(emit_case_nodes): do not emit jumps to the default_label when |
289 |
optimizing for size. |
290 |
|
291 |
Not regtested so far. |
292 |
Comments? |
293 |
|
294 |
Attached is the test switch.c mentioned below. |
295 |
|
296 |
$ 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 |
297 |
gcc-$i -DCHAIN -Os -o switch-CHAIN-$i.o -c switch.c ;done |
298 |
$ 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 |
299 |
gcc-$i -UCHAIN -Os -o switch-$i.o -c switch.c ;done |
300 |
|
301 |
$ size switch-*.o |
302 |
text data bss dec hex filename |
303 |
169 0 0 169 a9 switch-2.95.o |
304 |
115 0 0 115 73 switch-3.3.o |
305 |
103 0 0 103 67 switch-3.4.o |
306 |
124 0 0 124 7c switch-4.0.o |
307 |
124 0 0 124 7c switch-4.1.o |
308 |
124 0 0 124 7c switch-4.2.orig-HEAD.o |
309 |
95 0 0 95 5f switch-4.3-HEAD.o |
310 |
124 0 0 124 7c switch-4.3.orig-HEAD.o |
311 |
166 0 0 166 a6 switch-CHAIN-2.95.o |
312 |
111 0 0 111 6f switch-CHAIN-3.3.o |
313 |
95 0 0 95 5f switch-CHAIN-3.4.o |
314 |
95 0 0 95 5f switch-CHAIN-4.0.o |
315 |
95 0 0 95 5f switch-CHAIN-4.1.o |
316 |
95 0 0 95 5f switch-CHAIN-4.2.orig-HEAD.o |
317 |
95 0 0 95 5f switch-CHAIN-4.3-HEAD.o |
318 |
95 0 0 95 5f switch-CHAIN-4.3.orig-HEAD.o |
319 |
|
320 |
|
321 |
Content-Type: text/x-diff; charset=us-ascii |
322 |
Content-Disposition: attachment; filename="gcc-4.3.gcc-flatten-switch-stmt.00.diff" |
323 |
|
324 |
Index: gcc-4.2.0/gcc/stmt.c |
325 |
=================================================================== |
326 |
--- gcc-4.2.0.orig/gcc/stmt.c (revision 123843) |
327 |
+++ gcc-4.2.0/gcc/stmt.c (working copy) |
328 |
@@ -2517,7 +2517,11 @@ expand_case (tree exp) |
329 |
use_cost_table |
330 |
= (TREE_CODE (orig_type) != ENUMERAL_TYPE |
331 |
&& estimate_case_costs (case_list)); |
332 |
- balance_case_nodes (&case_list, NULL); |
333 |
+ /* When optimizing for size, we want a straight list to avoid |
334 |
+ jumps as much as possible. This basically creates an if-else |
335 |
+ chain. */ |
336 |
+ if (!optimize_size) |
337 |
+ balance_case_nodes (&case_list, NULL); |
338 |
emit_case_nodes (index, case_list, default_label, index_type); |
339 |
emit_jump (default_label); |
340 |
} |
341 |
@@ -3075,6 +3079,7 @@ emit_case_nodes (rtx index, case_node_pt |
342 |
{ |
343 |
if (!node_has_low_bound (node, index_type)) |
344 |
{ |
345 |
+ if (!optimize_size) /* don't jl to the .default_label. */ |
346 |
emit_cmp_and_jump_insns (index, |
347 |
convert_modes |
348 |
(mode, imode, |
349 |
|
350 |
|
351 |
Content-Type: text/x-csrc; charset=us-ascii |
352 |
Content-Disposition: attachment; filename="switch.c" |
353 |
|
354 |
int |
355 |
commutative_tree_code (int code) |
356 |
{ |
357 |
#define CASE(val, ret) case val:/* __asm__("# val="#val ",ret="#ret);*/ return ret; |
358 |
#ifndef CHAIN |
359 |
switch (code) |
360 |
{ |
361 |
# if 1 |
362 |
CASE(1,3) |
363 |
CASE(3,2) |
364 |
CASE(5,8) |
365 |
CASE(7,1) |
366 |
CASE(33,4) |
367 |
CASE(44,9) |
368 |
CASE(55,10) |
369 |
CASE(66,-1) |
370 |
CASE(77,99) |
371 |
CASE(666,0) |
372 |
# else |
373 |
case 1: |
374 |
return 3; |
375 |
case 3: |
376 |
return 2; |
377 |
case 5: |
378 |
return 8; |
379 |
case 7: |
380 |
return 1; |
381 |
case 33: |
382 |
return 4; |
383 |
case 44: |
384 |
return 9; |
385 |
case 55: |
386 |
return 10; |
387 |
case 66: |
388 |
return -1; |
389 |
case 77: |
390 |
return 99; |
391 |
case 666: |
392 |
return 0; |
393 |
# endif |
394 |
default: |
395 |
break; |
396 |
} |
397 |
return 4711; |
398 |
|
399 |
#else |
400 |
if (code == 1) |
401 |
return 3; |
402 |
else if (code == 3) |
403 |
return 2; |
404 |
else if (code == 5) |
405 |
return 8; |
406 |
else if (code == 7) |
407 |
return 1; |
408 |
else if (code == 33) |
409 |
return 4; |
410 |
else if (code == 44) |
411 |
return 9; |
412 |
else if (code == 55) |
413 |
return 10; |
414 |
else if (code == 66) |
415 |
return -1; |
416 |
else if (code == 77) |
417 |
return 99; |
418 |
else if (code == 666) |
419 |
return 0; |
420 |
else |
421 |
return 4711; |
422 |
#endif |
423 |
} |
424 |
|
425 |
|
426 |
--AhhlLboLdkugWU4S-- |
427 |
|
428 |
|
429 |
|
430 |
|
431 |
1.1 src/patchsets/gcc/4.3.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch |
432 |
|
433 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch?rev=1.1&view=markup |
434 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch?rev=1.1&content-type=text/plain |
435 |
|
436 |
Index: 51_all_gcc-3.4-libiberty-pic.patch |
437 |
=================================================================== |
438 |
--- gcc-4.1.0-orig/libiberty/Makefile.in 2006-03-01 15:49:14.000000000 -0500 |
439 |
+++ gcc-4.1.0/libiberty/Makefile.in 2006-03-01 18:10:46.000000000 -0500 |
440 |
@@ -232,6 +232,7 @@ |
441 |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
442 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
443 |
$(RANLIB) $(TARGETLIB); \ |
444 |
+ cp $(TARGETLIB) ../ ; \ |
445 |
cd ..; \ |
446 |
else true; fi |
447 |
|
448 |
|
449 |
|
450 |
|
451 |
1.1 src/patchsets/gcc/4.3.0/gentoo/53_all_gcc4-superh-default-multilib.patch |
452 |
|
453 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/53_all_gcc4-superh-default-multilib.patch?rev=1.1&view=markup |
454 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/53_all_gcc4-superh-default-multilib.patch?rev=1.1&content-type=text/plain |
455 |
|
456 |
Index: 53_all_gcc4-superh-default-multilib.patch |
457 |
=================================================================== |
458 |
The gcc-3.x toolchains would contain all the targets by default. With gcc-4, |
459 |
you have to actually list out the multilibs you want or you will end up with |
460 |
just one when using targets like 'sh4-linux-gnu'. |
461 |
|
462 |
The resulting toolchain can't even build a kernel as the kernel needs to build |
463 |
with the nofpu flag to be sure that no fpu ops are generated. |
464 |
|
465 |
Here we restore the gcc-3.x behavior; the additional overhead of building all |
466 |
of these multilibs by default is negligible. |
467 |
|
468 |
http://bugs.gentoo.org/140205 |
469 |
|
470 |
--- gcc-4.2.0/gcc/config.gcc |
471 |
+++ gcc-4.2.0/gcc/config.gcc |
472 |
@@ -2092,7 +2092,7 @@ |
473 |
if test x${sh_multilibs} = x ; then |
474 |
case ${target} in |
475 |
sh64-superh-linux* | \ |
476 |
- sh[1234]*) sh_multilibs=${sh_cpu_target} ;; |
477 |
+ sh[1234]*) sh_multilibs=`cd ${srcdir}/config/sh ; echo t-mlib-sh[1-4]* | sed 's:t-mlib-sh:,m:g;s: ::g'` ;; |
478 |
sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;; |
479 |
sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;; |
480 |
sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;; |
481 |
|
482 |
|
483 |
|
484 |
1.1 src/patchsets/gcc/4.3.0/gentoo/54_all_300-libstdc++-pic.patch |
485 |
|
486 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/54_all_300-libstdc++-pic.patch?rev=1.1&view=markup |
487 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/54_all_300-libstdc++-pic.patch?rev=1.1&content-type=text/plain |
488 |
|
489 |
Index: 54_all_300-libstdc++-pic.patch |
490 |
=================================================================== |
491 |
install libstdc++_pic.a if we have pic objs |
492 |
|
493 |
--- gcc/libstdc++-v3/src/Makefile.am |
494 |
+++ gcc/libstdc++-v3/src/Makefile.am |
495 |
@@ -214,6 +214,13 @@ |
496 |
$(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LDFLAGS) -o $@ |
497 |
|
498 |
|
499 |
+install-exec-local: |
500 |
+ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \ |
501 |
+ if [ x"$$pic_objs" != x ]; then \ |
502 |
+ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \ |
503 |
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \ |
504 |
+ fi |
505 |
+ |
506 |
# Added bits to build debug library. |
507 |
if GLIBCXX_BUILD_DEBUG |
508 |
all-local: build_debug |
509 |
--- gcc/libstdc++-v3/src/Makefile.in |
510 |
+++ gcc/libstdc++-v3/src/Makefile.in |
511 |
@@ -625,7 +625,7 @@ |
512 |
|
513 |
install-data-am: install-data-local |
514 |
|
515 |
-install-exec-am: install-toolexeclibLTLIBRARIES |
516 |
+install-exec-am: install-toolexeclibLTLIBRARIES install-exec-local |
517 |
|
518 |
install-info: install-info-am |
519 |
|
520 |
@@ -664,7 +664,7 @@ |
521 |
maintainer-clean-generic mostlyclean mostlyclean-compile \ |
522 |
mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ |
523 |
tags uninstall uninstall-am uninstall-info-am \ |
524 |
- uninstall-toolexeclibLTLIBRARIES |
525 |
+ uninstall-toolexeclibLTLIBRARIES install-exec-local |
526 |
|
527 |
@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@libstdc++-symbol.ver: ${glibcxx_srcdir}/$(SYMVER_MAP) |
528 |
@GLIBCXX_BUILD_VERSIONED_SHLIB_TRUE@ cp ${glibcxx_srcdir}/$(SYMVER_MAP) ./libstdc++-symbol.ver |
529 |
@@ -743,6 +743,14 @@ |
530 |
install_debug: |
531 |
(cd ${debugdir} && $(MAKE) \ |
532 |
toolexeclibdir=$(glibcxx_toolexeclibdir)/debug install) |
533 |
+ |
534 |
+install-exec-local: |
535 |
+ pic_objs=`sed -n "s:'::g;s:^pic_object=::p" *.lo | grep -v '^none$$'`; \ |
536 |
+ if [ x"$$pic_objs" != x ]; then \ |
537 |
+ $(AR) cru libstdc++_pic.a $$pic_objs $(top_builddir)/libsupc++/*.o || exit 1; \ |
538 |
+ $(INSTALL_DATA) libstdc++_pic.a $(DESTDIR)$(toolexeclibdir) || exit 1; \ |
539 |
+ fi |
540 |
+ |
541 |
# Tell versions [3.59,3.63) of GNU make to not export all variables. |
542 |
# Otherwise a system limit (for SysV at least) may be exceeded. |
543 |
.NOEXPORT: |
544 |
|
545 |
|
546 |
|
547 |
1.1 src/patchsets/gcc/4.3.0/gentoo/74_all_sh-pr24836.patch |
548 |
|
549 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/74_all_sh-pr24836.patch?rev=1.1&view=markup |
550 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/74_all_sh-pr24836.patch?rev=1.1&content-type=text/plain |
551 |
|
552 |
Index: 74_all_sh-pr24836.patch |
553 |
=================================================================== |
554 |
http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348 |
555 |
http://gcc.gnu.org/PR24836 |
556 |
|
557 |
--- gcc/gcc/configure.ac (revision 106699) |
558 |
+++ gcc/gcc/configure.ac (working copy) |
559 |
@@ -2446,7 +2446,7 @@ |
560 |
tls_first_minor=14 |
561 |
tls_as_opt="-m64 -Aesame --fatal-warnings" |
562 |
;; |
563 |
- sh-*-* | sh[34]-*-*) |
564 |
+ sh-*-* | sh[34]*-*-*) |
565 |
conftest_s=' |
566 |
.section ".tdata","awT",@progbits |
567 |
foo: .long 25 |
568 |
--- gcc/gcc/configure |
569 |
+++ gcc/gcc/configure |
570 |
@@ -14846,7 +14846,7 @@ |
571 |
tls_first_minor=14 |
572 |
tls_as_opt="-m64 -Aesame --fatal-warnings" |
573 |
;; |
574 |
- sh-*-* | sh[34]-*-*) |
575 |
+ sh-*-* | sh[34]*-*-*) |
576 |
conftest_s=' |
577 |
.section ".tdata","awT",@progbits |
578 |
foo: .long 25 |
579 |
|
580 |
|
581 |
|
582 |
1.1 src/patchsets/gcc/4.3.0/gentoo/85_all_gcc-ca-translation-typo.patch |
583 |
|
584 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/85_all_gcc-ca-translation-typo.patch?rev=1.1&view=markup |
585 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/85_all_gcc-ca-translation-typo.patch?rev=1.1&content-type=text/plain |
586 |
|
587 |
Index: 85_all_gcc-ca-translation-typo.patch |
588 |
=================================================================== |
589 |
http://bugs.gentoo.org/127190 |
590 |
|
591 |
2006-03-28 Harald van Dijk <truedfx@g.o> |
592 |
|
593 |
* ca.po: Fix printf flag typo in negative value translation. |
594 |
|
595 |
--- gcc-4_1-branch/gcc/po/ca.po |
596 |
+++ gcc-4_1-branch/gcc/po/ca.po |
597 |
@@ -31083,7 +31083,7 @@ msgstr "s'ignora l'atribut \"%s\"" |
598 |
#~ msgstr "passant el valor negatiu `%E' per a %s %P de \"%D\"" |
599 |
|
600 |
#~ msgid "%s of negative value `%E' to `%T'" |
601 |
-#~ msgstr "%s de valor negatiu `%I' a \"%T\"" |
602 |
+#~ msgstr "%s de valor negatiu `%E' a \"%T\"" |
603 |
|
604 |
#~ msgid "initializing array with parameter list" |
605 |
#~ msgstr "inicialitzant una matriu amb una llista de parĂ metres" |
606 |
|
607 |
|
608 |
|
609 |
1.1 src/patchsets/gcc/4.3.0/gentoo/README.history |
610 |
|
611 |
file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/README.history?rev=1.1&view=markup |
612 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.3.0/gentoo/README.history?rev=1.1&content-type=text/plain |
613 |
|
614 |
Index: README.history |
615 |
=================================================================== |
616 |
1.0 16.03.2008 |
617 |
+ 00_all_gcc-4.1-alpha-mieee-default.patch |
618 |
+ 00_all_gcc-trampolinewarn.patch |
619 |
+ 03_all_gcc43-java-nomulti.patch |
620 |
+ 08_all_gcc-4.1-cross-compile.patch |
621 |
+ 11_all_gcc-netbsd-symbolic.patch |
622 |
+ 14_all_gcc-sparc64-bsd.patch |
623 |
+ 18_all_904-flatten-switch-stmt-00.patch |
624 |
+ 51_all_gcc-3.4-libiberty-pic.patch |
625 |
+ 53_all_gcc4-superh-default-multilib.patch |
626 |
+ 54_all_300-libstdc++-pic.patch |
627 |
+ 74_all_sh-pr24836.patch |
628 |
+ 85_all_gcc-ca-translation-typo.patch |
629 |
|
630 |
|
631 |
|
632 |
-- |
633 |
gentoo-commits@l.g.o mailing list |