Gentoo Archives: gentoo-commits

From: "Mark Loeser (halcy0n)" <halcy0n@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo commit in src/patchsets/gcc/4.5.0/gentoo: 00_all_gcc-4.1-alpha-mieee-default.patch 01_all_gcc-4.1-alpha-asm-mcpu.patch 03_all_gcc43-java-nomulti.patch 08_all_gcc-4.1-cross-compile.patch 10_all_gcc-default-format-security.patch 10_all_gcc-default-fortify-source.patch 11_all_gcc-netbsd-symbolic.patch 14_all_gcc-sparc64-bsd.patch 15_all_gcc-libgomp-no-werror.patch 40_all_gcc-4.4-libiberty.h-asprintf.patch 47_all_arm-unbreak-armv4t.patch 51_all_gcc-3.4-libiberty-pic.patch 53_all_gcc4-superh-default-multilib.patch 61_all_gcc4-ia64-noteGNUstack.patch 74_all_sh-pr24836.patch README.history
Date: Sat, 24 Apr 2010 23:44:32
Message-Id: 20100424234428.7953B2C04C@corvid.gentoo.org
1 halcy0n 10/04/24 23:44:28
2
3 Added: 00_all_gcc-4.1-alpha-mieee-default.patch
4 01_all_gcc-4.1-alpha-asm-mcpu.patch
5 03_all_gcc43-java-nomulti.patch
6 08_all_gcc-4.1-cross-compile.patch
7 10_all_gcc-default-format-security.patch
8 10_all_gcc-default-fortify-source.patch
9 11_all_gcc-netbsd-symbolic.patch
10 14_all_gcc-sparc64-bsd.patch
11 15_all_gcc-libgomp-no-werror.patch
12 40_all_gcc-4.4-libiberty.h-asprintf.patch
13 47_all_arm-unbreak-armv4t.patch
14 51_all_gcc-3.4-libiberty-pic.patch
15 53_all_gcc4-superh-default-multilib.patch
16 61_all_gcc4-ia64-noteGNUstack.patch
17 74_all_sh-pr24836.patch README.history
18 Log:
19 Add 4.5.0 patchset, based off of 4.4.3 patchset
20
21 Revision Changes Path
22 1.1 src/patchsets/gcc/4.5.0/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch
23
24 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch?rev=1.1&view=markup
25 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/00_all_gcc-4.1-alpha-mieee-default.patch?rev=1.1&content-type=text/plain
26
27 Index: 00_all_gcc-4.1-alpha-mieee-default.patch
28 ===================================================================
29 Set the default behavior on alpha to use -mieee since the large majority of
30 time we want this (bad/weird things can happen with packages built without
31 -mieee).
32
33 To satisfy those people who may not want -mieee forced on them all the time,
34 we also provide -mno-ieee.
35
36 Patch by Mike Frysinger <vapier@g.o>
37
38 --- gcc-4.3.0/gcc/config/alpha/alpha.h
39 +++ gcc-4.3.0/gcc/config/alpha/alpha.h
40 @@ -95,6 +95,8 @@
41 while (0)
42 #endif
43
44 +#define CPP_SPEC "%{!no-ieee:-mieee}"
45 +
46 #define WORD_SWITCH_TAKES_ARG(STR) \
47 (!strcmp (STR, "rpath") || DEFAULT_WORD_SWITCH_TAKES_ARG(STR))
48
49 --- gcc-4.3.0/gcc/config/alpha/alpha.opt
50 +++ gcc-4.3.0/gcc/config/alpha/alpha.opt
51 @@ -39,7 +39,7 @@
52 Request IEEE-conformant math library routines (OSF/1)
53
54 mieee
55 -Target Report RejectNegative Mask(IEEE)
56 +Target Report Mask(IEEE)
57 Emit IEEE-conformant code, without inexact exceptions
58
59 mieee-with-inexact
60
61
62
63 1.1 src/patchsets/gcc/4.5.0/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch
64
65 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch?rev=1.1&view=markup
66 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/01_all_gcc-4.1-alpha-asm-mcpu.patch?rev=1.1&content-type=text/plain
67
68 Index: 01_all_gcc-4.1-alpha-asm-mcpu.patch
69 ===================================================================
70 http://bugs.gentoo.org/170146
71 http://gcc.gnu.org/ml/gcc-patches/2009-11/msg00403.html
72
73 alpha: turn -mcpu=<cpu> into -m<cpu> for assembler all the time
74
75 --- gcc-x/gcc/config/alpha/elf.h
76 +++ gcc-x/gcc/config/alpha/elf.h
77 @@ -46,7 +46,7 @@
78 #define CC1_SPEC "%{G*}"
79
80 #undef ASM_SPEC
81 -#define ASM_SPEC "%{G*} %{relax:-relax} %{!gstabs*:-no-mdebug}%{gstabs*:-mdebug}"
82 +#define ASM_SPEC "%{G*} %{relax:-relax} %{!gstabs*:-no-mdebug}%{gstabs*:-mdebug} %{mcpu=*:-m%*}"
83
84 #undef IDENT_ASM_OP
85 #define IDENT_ASM_OP "\t.ident\t"
86
87
88
89 1.1 src/patchsets/gcc/4.5.0/gentoo/03_all_gcc43-java-nomulti.patch
90
91 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/03_all_gcc43-java-nomulti.patch?rev=1.1&view=markup
92 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/03_all_gcc43-java-nomulti.patch?rev=1.1&content-type=text/plain
93
94 Index: 03_all_gcc43-java-nomulti.patch
95 ===================================================================
96 --- libjava/configure.ac.jj 2007-12-07 17:55:50.000000000 +0100
97 +++ libjava/configure.ac 2007-12-07 18:36:56.000000000 +0100
98 @@ -82,6 +82,13 @@ AC_ARG_ENABLE(java-maintainer-mode,
99 [allow rebuilding of .class and .h files]))
100 AM_CONDITIONAL(JAVA_MAINTAINER_MODE, test "$enable_java_maintainer_mode" = yes)
101
102 +AC_ARG_ENABLE(libjava-multilib,
103 + AS_HELP_STRING([--enable-libjava-multilib], [build libjava as multilib]))
104 +if test "$enable_libjava_multilib" = no; then
105 + multilib=no
106 + ac_configure_args="$ac_configure_args --disable-multilib"
107 +fi
108 +
109 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
110 GCC_NO_EXECUTABLES
111
112 --- libjava/configure.jj 2007-12-07 17:55:50.000000000 +0100
113 +++ libjava/configure 2007-12-07 18:39:58.000000000 +0100
114 @@ -1018,6 +1018,8 @@ Optional Features:
115 --enable-gconf-peer compile GConf native peers for util.preferences
116 --enable-java-maintainer-mode
117 allow rebuilding of .class and .h files
118 + --enable-libjava-multilib
119 + build libjava as multilib
120 --disable-dependency-tracking speeds up one-time build
121 --enable-dependency-tracking do not reject slow dependency extractors
122 --enable-maintainer-mode enable make rules and dependencies not useful
123 @@ -1848,6 +1850,16 @@ else
124 fi
125
126
127 +# Check whether --enable-libjava-multilib was given.
128 +if test "${enable_libjava_multilib+set}" = set; then
129 + enableval=$enable_libjava_multilib;
130 +fi
131 +
132 +if test "$enable_libjava_multilib" = no; then
133 + multilib=no
134 + ac_configure_args="$ac_configure_args --disable-multilib"
135 +fi
136 +
137 # It may not be safe to run linking tests in AC_PROG_CC/AC_PROG_CXX.
138
139
140
141
142
143 1.1 src/patchsets/gcc/4.5.0/gentoo/08_all_gcc-4.1-cross-compile.patch
144
145 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/08_all_gcc-4.1-cross-compile.patch?rev=1.1&view=markup
146 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/08_all_gcc-4.1-cross-compile.patch?rev=1.1&content-type=text/plain
147
148 Index: 08_all_gcc-4.1-cross-compile.patch
149 ===================================================================
150 Some notes on the 'bootstrap with or without libc headers' debate:
151 http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html
152 http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
153
154 --- gcc/unwind-dw2.c
155 +++ gcc/unwind-dw2.c
156 @@ -253,9 +253,11 @@
157 }
158 #endif
159
160 +#ifndef inhibit_libc
161 #ifdef MD_UNWIND_SUPPORT
162 #include MD_UNWIND_SUPPORT
163 #endif
164 +#endif
165
166 /* Extract any interesting information from the CIE for the translation
167 unit F belongs to. Return a pointer to the byte after the augmentation,
168 --- gcc/configure
169 +++ gcc/configure
170 @@ -12857,7 +12857,7 @@ then
171 | powerpc*-*-*,powerpc64*-*-*)
172 CROSS="$CROSS -DNATIVE_CROSS" ;;
173 esac
174 -elif test "x$TARGET_SYSTEM_ROOT" != x; then
175 +elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
176 SYSTEM_HEADER_DIR=$build_system_header_dir
177 fi
178
179 --- gcc/configure.ac
180 +++ gcc/configure.ac
181 @@ -1717,7 +1717,7 @@ then
182 | powerpc*-*-*,powerpc64*-*-*)
183 CROSS="$CROSS -DNATIVE_CROSS" ;;
184 esac
185 -elif test "x$TARGET_SYSTEM_ROOT" != x; then
186 +elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
187 SYSTEM_HEADER_DIR=$build_system_header_dir
188 fi
189
190
191
192
193 1.1 src/patchsets/gcc/4.5.0/gentoo/10_all_gcc-default-format-security.patch
194
195 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/10_all_gcc-default-format-security.patch?rev=1.1&view=markup
196 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/10_all_gcc-default-format-security.patch?rev=1.1&content-type=text/plain
197
198 Index: 10_all_gcc-default-format-security.patch
199 ===================================================================
200 ripped from Debian
201
202 # DP: Turn on -Wformat -Wformat-security by default for C, C++, ObjC, ObjC++.
203
204 --- gcc/c-common.c
205 +++ gcc/c-common.c
206 @@ -277,7 +277,7 @@
207 /* Warn about format/argument anomalies in calls to formatted I/O functions
208 (*printf, *scanf, strftime, strfmon, etc.). */
209
210 -int warn_format;
211 +int warn_format = 1;
212
213 /* Warn about using __null (as NULL in C++) as sentinel. For code compiled
214 with GCC this doesn't matter as __null is guaranteed to have the right
215 --- gcc/c.opt
216 +++ gcc/c.opt
217 @@ -228,7 +228,7 @@
218 Warn about format strings that contain NUL bytes
219
220 Wformat-security
221 -C ObjC C++ ObjC++ Var(warn_format_security) Warning
222 +C ObjC C++ ObjC++ Var(warn_format_security) Init(1) Warning
223 Warn about possible security problems with format functions
224
225 Wformat-y2k
226 --- gcc/doc/invoke.texi
227 +++ gcc/doc/invoke.texi
228 @@ -2802,6 +2802,9 @@
229 @option{-Wformat-nonliteral}, @option{-Wformat-security}, and
230 @option{-Wformat=2} are available, but are not included in @option{-Wall}.
231
232 +NOTE: In Gentoo, this option is enabled by default for C, C++, ObjC, ObjC++.
233 +To disable, use @option{-Wformat=0}.
234 +
235 @item -Wformat-y2k
236 @opindex Wformat-y2k
237 @opindex Wno-format-y2k
238 @@ -2849,6 +2852,11 @@
239 in future warnings may be added to @option{-Wformat-security} that are not
240 included in @option{-Wformat-nonliteral}.)
241
242 +NOTE: In Gentoo, this option is enabled by default for C, C++, ObjC, ObjC++.
243 +To disable, use @option{-Wno-format-security}, or disable all format warnings
244 +with @option{-Wformat=0}. To make format security warnings fatal, specify
245 +@option{-Werror=format-security}.
246 +
247 @item -Wformat=2
248 @opindex Wformat=2
249 @opindex Wno-format=2
250
251
252
253 1.1 src/patchsets/gcc/4.5.0/gentoo/10_all_gcc-default-fortify-source.patch
254
255 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/10_all_gcc-default-fortify-source.patch?rev=1.1&view=markup
256 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/10_all_gcc-default-fortify-source.patch?rev=1.1&content-type=text/plain
257
258 Index: 10_all_gcc-default-fortify-source.patch
259 ===================================================================
260 ripped from Debian
261
262 # DP: Turn on -D_FORTIFY_SOURCE=2 by default for C, C++, ObjC, ObjC++.
263
264 --- gcc/doc/invoke.texi
265 +++ gcc/doc/invoke.texi
266 @@ -5204,6 +5204,11 @@
267 Please note the warning under @option{-fgcse} about
268 invoking @option{-O2} on programs that use computed gotos.
269
270 +NOTE: In Gentoo, @option{-D_FORTIFY_SOURCE=2} is set by default, and is
271 +activated when @option{-O} is set to 2 or higher. This enables additional
272 +compile-time and run-time checks for several libc functions. To disable,
273 +specify either @option{-U_FORTIFY_SOURCE} or @option{-D_FORTIFY_SOURCE=0}.
274 +
275 @item -O3
276 @opindex O3
277 Optimize yet more. @option{-O3} turns on all optimizations specified by
278 --- gcc/gcc.c
279 +++ gcc/gcc.c
280 @@ -802,6 +802,7 @@
281 %{H} %C %{D*&U*&A*} %{i*} %Z %i\
282 %{fmudflap:-D_MUDFLAP -include mf-runtime.h}\
283 %{fmudflapth:-D_MUDFLAP -D_MUDFLAPTH -include mf-runtime.h}\
284 + %{!D_FORTIFY_SOURCE:%{!D_FORTIFY_SOURCE=*:%{!U_FORTIFY_SOURCE:-D_FORTIFY_SOURCE=2}}}\
285 %{E|M|MM:%W{o*}}";
286
287 /* This contains cpp options which are common with cc1_options and are passed
288
289
290
291 1.1 src/patchsets/gcc/4.5.0/gentoo/11_all_gcc-netbsd-symbolic.patch
292
293 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/11_all_gcc-netbsd-symbolic.patch?rev=1.1&view=markup
294 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/11_all_gcc-netbsd-symbolic.patch?rev=1.1&content-type=text/plain
295
296 Index: 11_all_gcc-netbsd-symbolic.patch
297 ===================================================================
298 http://bugs.gentoo.org/122698
299
300 --- gcc/config/netbsd-elf.h
301 +++ gcc/config/netbsd-elf.h
302 @@ -83,6 +83,7 @@
303 #define NETBSD_LINK_SPEC_ELF \
304 "%{assert*} %{R*} %{rpath*} \
305 %{shared:-shared} \
306 + %{symbolic:-Bsymbolic} \
307 %{!shared: \
308 -dc -dp \
309 %{!nostdlib: \
310
311
312
313 1.1 src/patchsets/gcc/4.5.0/gentoo/14_all_gcc-sparc64-bsd.patch
314
315 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/14_all_gcc-sparc64-bsd.patch?rev=1.1&view=markup
316 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/14_all_gcc-sparc64-bsd.patch?rev=1.1&content-type=text/plain
317
318 Index: 14_all_gcc-sparc64-bsd.patch
319 ===================================================================
320 --- a/gcc/config/sparc/freebsd.h 2006-02-02 19:55:09 +0000
321 +++ b/gcc/config/sparc/freebsd.h 2007-09-06 23:55:21 +0100
322 @@ -26,9 +26,22 @@
323 /* FreeBSD needs the platform name (sparc64) defined.
324 Emacs needs to know if the arch is 64 or 32-bits. */
325
326 -#undef CPP_CPU64_DEFAULT_SPEC
327 -#define CPP_CPU64_DEFAULT_SPEC \
328 - "-D__sparc64__ -D__sparc_v9__ -D__sparcv9 -D__arch64__"
329 +#undef FBSD_TARGET_CPU_CPP_BUILTINS
330 +#define FBSD_TARGET_CPU_CPP_BUILTINS() \
331 + do \
332 + { \
333 + if (TARGET_ARCH64) \
334 + { \
335 + builtin_define ("__sparc64__"); \
336 + builtin_define ("__sparc_v9__"); \
337 + builtin_define ("__sparcv9"); \
338 + } \
339 + else \
340 + builtin_define ("__sparc"); \
341 + builtin_define ("__sparc__"); \
342 + } \
343 + while (0)
344 +
345
346 #define LINK_SPEC "%(link_arch) \
347 %{!mno-relax:%{!r:-relax}} \
348
349
350
351 1.1 src/patchsets/gcc/4.5.0/gentoo/15_all_gcc-libgomp-no-werror.patch
352
353 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/15_all_gcc-libgomp-no-werror.patch?rev=1.1&view=markup
354 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/15_all_gcc-libgomp-no-werror.patch?rev=1.1&content-type=text/plain
355
356 Index: 15_all_gcc-libgomp-no-werror.patch
357 ===================================================================
358 libgomp does not respect --disable-werror
359
360 http://bugs.gentoo.org/229059
361 http://gcc.gnu.org/PR38436
362
363 --- gcc-4.3.2/libgomp/configure
364 +++ gcc-4.3.2/libgomp/configure
365 @@ -3297,7 +3297,7 @@
366
367 # Add -Wall -Werror if we are using GCC.
368 if test "x$GCC" = "xyes"; then
369 - XCFLAGS="$XCFLAGS -Wall -Werror"
370 + XCFLAGS="$XCFLAGS -Wall"
371 fi
372
373 # Find other programs we need.
374
375
376
377 1.1 src/patchsets/gcc/4.5.0/gentoo/40_all_gcc-4.4-libiberty.h-asprintf.patch
378
379 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/40_all_gcc-4.4-libiberty.h-asprintf.patch?rev=1.1&view=markup
380 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/40_all_gcc-4.4-libiberty.h-asprintf.patch?rev=1.1&content-type=text/plain
381
382 Index: 40_all_gcc-4.4-libiberty.h-asprintf.patch
383 ===================================================================
384 2008-07-25 Magnus Granberg <zorry@×××.nu>
385
386 * include/libiberty.h (asprintf): Don't declare if defined as a macro
387
388 --- include/libiberty.h.zorry
389 +++ include/libiberty.h
390 @@ -554,8 +554,11 @@
391 /* Like sprintf but provides a pointer to malloc'd storage, which must
392 be freed by the caller. */
393
394 +/* asprintf may be declared as a macro by glibc with __USE_FORTIFY_LEVEL. */
395 +#ifndef asprintf
396 extern int asprintf (char **, const char *, ...) ATTRIBUTE_PRINTF_2;
397 #endif
398 +#endif
399
400 #if !HAVE_DECL_VASPRINTF
401 /* Like vsprintf but provides a pointer to malloc'd storage, which
402
403
404
405 1.1 src/patchsets/gcc/4.5.0/gentoo/47_all_arm-unbreak-armv4t.patch
406
407 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/47_all_arm-unbreak-armv4t.patch?rev=1.1&view=markup
408 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/47_all_arm-unbreak-armv4t.patch?rev=1.1&content-type=text/plain
409
410 Index: 47_all_arm-unbreak-armv4t.patch
411 ===================================================================
412 http://sourceware.org/ml/crossgcc/2008-05/msg00009.html
413
414 gcc defaults to armv5t for all targets even armv4t
415
416 --- gcc/config/arm/linux-eabi.h
417 +++ gcc/config/arm/linux-eabi.h
418 @@ -45,7 +45,7 @@
419 The ARM10TDMI core is the default for armv5t, so set
420 SUBTARGET_CPU_DEFAULT to achieve this. */
421 #undef SUBTARGET_CPU_DEFAULT
422 -#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
423 +#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm9tdmi
424
425 /* TARGET_BIG_ENDIAN_DEFAULT is set in
426 config.gcc for big endian configurations. */
427
428
429
430 1.1 src/patchsets/gcc/4.5.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch
431
432 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch?rev=1.1&view=markup
433 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/51_all_gcc-3.4-libiberty-pic.patch?rev=1.1&content-type=text/plain
434
435 Index: 51_all_gcc-3.4-libiberty-pic.patch
436 ===================================================================
437 --- gcc-4.1.0-orig/libiberty/Makefile.in 2006-03-01 15:49:14.000000000 -0500
438 +++ gcc-4.1.0/libiberty/Makefile.in 2006-03-01 18:10:46.000000000 -0500
439 @@ -232,6 +232,7 @@
440 $(AR) $(AR_FLAGS) $(TARGETLIB) \
441 $(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \
442 $(RANLIB) $(TARGETLIB); \
443 + cp $(TARGETLIB) ../ ; \
444 cd ..; \
445 else true; fi
446
447
448
449
450 1.1 src/patchsets/gcc/4.5.0/gentoo/53_all_gcc4-superh-default-multilib.patch
451
452 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/53_all_gcc4-superh-default-multilib.patch?rev=1.1&view=markup
453 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/53_all_gcc4-superh-default-multilib.patch?rev=1.1&content-type=text/plain
454
455 Index: 53_all_gcc4-superh-default-multilib.patch
456 ===================================================================
457 The gcc-3.x toolchains would contain all the targets by default. With gcc-4,
458 you have to actually list out the multilibs you want or you will end up with
459 just one when using targets like 'sh4-linux-gnu'.
460
461 The resulting toolchain can't even build a kernel as the kernel needs to build
462 with the nofpu flag to be sure that no fpu ops are generated.
463
464 Here we restore the gcc-3.x behavior; the additional overhead of building all
465 of these multilibs by default is negligible.
466
467 http://bugs.gentoo.org/140205
468
469 --- gcc-4.2.0/gcc/config.gcc
470 +++ gcc-4.2.0/gcc/config.gcc
471 @@ -2092,7 +2092,7 @@
472 if test x${sh_multilibs} = x ; then
473 case ${target} in
474 sh64-superh-linux* | \
475 - sh[1234]*) sh_multilibs=${sh_cpu_target} ;;
476 + sh[1234]*) sh_multilibs=`cd ${srcdir}/config/sh ; echo t-mlib-sh[1-4]* | sed 's:t-mlib-sh:,m:g;s: ::g'` ;;
477 sh64* | sh5*) sh_multilibs=m5-32media,m5-32media-nofpu,m5-compact,m5-compact-nofpu,m5-64media,m5-64media-nofpu ;;
478 sh-superh-*) sh_multilibs=m4,m4-single,m4-single-only,m4-nofpu ;;
479 sh*-*-linux*) sh_multilibs=m1,m3e,m4 ;;
480
481
482
483 1.1 src/patchsets/gcc/4.5.0/gentoo/61_all_gcc4-ia64-noteGNUstack.patch
484
485 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/61_all_gcc4-ia64-noteGNUstack.patch?rev=1.1&view=markup
486 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/61_all_gcc4-ia64-noteGNUstack.patch?rev=1.1&content-type=text/plain
487
488 Index: 61_all_gcc4-ia64-noteGNUstack.patch
489 ===================================================================
490 2004-09-20 Jakub Jelinek <jakub@××××××.com>
491
492 * config/rs6000/ppc-asm.h: Add .note.GNU-stack section also
493 on ppc64-linux.
494
495 * config/ia64/lib1funcs.asm: Add .note.GNU-stack section on
496 ia64-linux.
497 * config/ia64/crtbegin.asm: Likewise.
498 * config/ia64/crtend.asm: Likewise.
499 * config/ia64/crti.asm: Likewise.
500 * config/ia64/crtn.asm: Likewise.
501
502 2004-05-14 Jakub Jelinek <jakub@××××××.com>
503
504 * config/ia64/linux.h (TARGET_ASM_FILE_END): Define.
505
506 --- gcc/config/ia64/linux.h.jj 2004-05-14 07:21:27.000000000 -0400
507 +++ gcc/config/ia64/linux.h 2004-05-14 09:21:09.000000000 -0400
508 @@ -5,6 +5,8 @@
509
510 #define TARGET_VERSION fprintf (stderr, " (IA-64) Linux");
511
512 +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack
513 +
514 /* This is for -profile to use -lc_p instead of -lc. */
515 #undef CC1_SPEC
516 #define CC1_SPEC "%{profile:-p} %{G*}"
517 --- gcc/config/rs6000/ppc-asm.h.jj 2003-06-04 18:40:59.000000000 +0200
518 +++ gcc/config/rs6000/ppc-asm.h 2004-09-20 14:17:47.259396058 +0200
519 @@ -158,7 +158,7 @@ GLUE(.L,name): \
520 .size FUNC_NAME(name),GLUE(.L,name)-FUNC_NAME(name)
521 #endif
522
523 -#if defined __linux__ && !defined __powerpc64__
524 +#if defined __linux__
525 .section .note.GNU-stack
526 .previous
527 #endif
528 --- gcc/config/ia64/lib1funcs.asm.jj 2003-10-27 11:45:17.000000000 +0100
529 +++ gcc/config/ia64/lib1funcs.asm 2004-09-20 14:26:28.094132706 +0200
530 @@ -741,3 +741,7 @@ __floattitf:
531 .endp __floattitf
532
533 #endif
534 +
535 +#ifdef __linux__
536 +.section .note.GNU-stack; .previous
537 +#endif
538 --- gcc/config/ia64/crtend.asm.jj 2004-05-20 14:36:14.000000000 +0200
539 +++ gcc/config/ia64/crtend.asm 2004-09-20 14:25:57.329580329 +0200
540 @@ -113,3 +113,7 @@ __do_global_ctors_aux:
541
542 br.ret.sptk.many rp
543 .endp __do_global_ctors_aux
544 +
545 +#ifdef __linux__
546 +.section .note.GNU-stack; .previous
547 +#endif
548 --- gcc/config/ia64/crti.asm.jj 2003-04-02 17:14:15.000000000 +0200
549 +++ gcc/config/ia64/crti.asm 2004-09-20 14:26:06.852894092 +0200
550 @@ -64,3 +64,7 @@ _fini:
551 .body
552
553 # end of crti.asm
554 +
555 +#ifdef __linux__
556 +.section .note.GNU-stack; .previous
557 +#endif
558 --- gcc/config/ia64/crtbegin.asm.jj 2004-05-20 14:36:14.000000000 +0200
559 +++ gcc/config/ia64/crtbegin.asm 2004-09-20 14:25:47.105390566 +0200
560 @@ -246,3 +246,7 @@ __do_jv_register_classes:
561 .weak __cxa_finalize
562 #endif
563 .weak _Jv_RegisterClasses
564 +
565 +#ifdef __linux__
566 +.section .note.GNU-stack; .previous
567 +#endif
568 --- gcc/config/ia64/crtn.asm.jj 2003-04-02 17:14:15.000000000 +0200
569 +++ gcc/config/ia64/crtn.asm 2004-09-20 14:26:16.381206878 +0200
570 @@ -54,3 +54,7 @@
571 br.ret.sptk.many b0
572
573 # end of crtn.asm
574 +
575 +#ifdef __linux__
576 +.section .note.GNU-stack; .previous
577 +#endif
578
579
580
581 1.1 src/patchsets/gcc/4.5.0/gentoo/74_all_sh-pr24836.patch
582
583 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/74_all_sh-pr24836.patch?rev=1.1&view=markup
584 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/74_all_sh-pr24836.patch?rev=1.1&content-type=text/plain
585
586 Index: 74_all_sh-pr24836.patch
587 ===================================================================
588 http://sourceforge.net/mailarchive/forum.php?thread_id=8959304&forum_id=5348
589 http://gcc.gnu.org/PR24836
590
591 --- gcc/gcc/configure.ac
592 +++ gcc/gcc/configure.ac
593 @@ -2446,7 +2446,7 @@
594 tls_first_minor=14
595 tls_as_opt="-m64 -Aesame --fatal-warnings"
596 ;;
597 - sh-*-* | sh[34]-*-*)
598 + sh-*-* | sh[34]*-*-*)
599 conftest_s='
600 .section ".tdata","awT",@progbits
601 foo: .long 25
602 --- gcc/gcc/configure
603 +++ gcc/gcc/configure
604 @@ -14846,7 +14846,7 @@
605 tls_first_minor=14
606 tls_as_opt="-m64 -Aesame --fatal-warnings"
607 ;;
608 - sh-*-* | sh[34]-*-*)
609 + sh-*-* | sh[34]*-*-*)
610 conftest_s='
611 .section ".tdata","awT",@progbits
612 foo: .long 25
613
614
615
616 1.1 src/patchsets/gcc/4.5.0/gentoo/README.history
617
618 file : http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/README.history?rev=1.1&view=markup
619 plain: http://sources.gentoo.org/viewcvs.py/gentoo/src/patchsets/gcc/4.5.0/gentoo/README.history?rev=1.1&content-type=text/plain
620
621 Index: README.history
622 ===================================================================
623 1.0 24.04.2010
624 + 00_all_gcc-4.1-alpha-mieee-default.patch
625 + 01_all_gcc-4.1-alpha-asm-mcpu.patch
626 + 03_all_gcc43-java-nomulti.patch
627 + 08_all_gcc-4.1-cross-compile.patch
628 + 10_all_gcc-default-format-security.patch
629 + 10_all_gcc-default-fortify-source.patch
630 + 11_all_gcc-netbsd-symbolic.patch
631 + 14_all_gcc-sparc64-bsd.patch
632 + 15_all_gcc-libgomp-no-werror.patch
633 + 40_all_gcc-4.4-libiberty.h-asprintf.patch
634 + 47_all_arm-unbreak-armv4t.patch
635 + 51_all_gcc-3.4-libiberty-pic.patch
636 + 53_all_gcc4-superh-default-multilib.patch
637 + 61_all_gcc4-ia64-noteGNUstack.patch
638 + 74_all_sh-pr24836.patch