Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/riscv:master commit in: sys-devel/gcc/files/4.1.0/, sys-devel/gcc/files/3.3.4/, ...
Date: Fri, 11 Sep 2020 16:15:03
Message-Id: 1599840772.ae02e82f6f5bc8e3241e48973a4e26c73079a130.dilfridge@gentoo
1 commit: ae02e82f6f5bc8e3241e48973a4e26c73079a130
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Fri Sep 11 16:12:20 2020 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Fri Sep 11 16:12:52 2020 +0000
6 URL: https://gitweb.gentoo.org/proj/riscv.git/commit/?id=ae02e82f
7
8 sys-devel/gcc: remove copy
9
10 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
11
12 sys-devel/gcc/Manifest | 2 -
13 .../gcc/files/3.3.4/libffi-without-libgcj.patch | 22 ------
14 .../files/3.4.3/libffi-nogcj-lib-path-fix.patch | 40 ----------
15 .../gcc/files/3.4.3/libffi-without-libgcj.patch | 40 ----------
16 .../gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch | 63 ----------------
17 .../gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch | 40 ----------
18 .../gcc-4.1.0-fast-math-i386-Os-workaround.patch | 64 ----------------
19 sys-devel/gcc/files/gcc-4.9.4-bootstrap.patch | 66 ----------------
20 sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch | 29 --------
21 sys-devel/gcc/files/gcc-configure-LANG.patch | 64 ----------------
22 sys-devel/gcc/files/gcc-configure-texinfo.patch | 16 ----
23 sys-devel/gcc/files/gcc-spec-env-r1.patch | 87 ----------------------
24 sys-devel/gcc/files/gcc-spec-env.patch | 42 -----------
25 sys-devel/gcc/gcc-10.2.0-r1.ebuild | 18 -----
26 sys-devel/gcc/metadata.xml | 36 ---------
27 15 files changed, 629 deletions(-)
28
29 diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
30 deleted file mode 100644
31 index ac1a8f2..0000000
32 --- a/sys-devel/gcc/Manifest
33 +++ /dev/null
34 @@ -1,2 +0,0 @@
35 -DIST gcc-10.2.0-patches-2.tar.bz2 17701 BLAKE2B bed0cf2dcb6b2e35dbd86c43db617cfa0a0973b3d55bd6e12baf9e6495afd0fec855fefd223172c23f11449769996c18359abacfac36f62681310c861d5d2850 SHA512 6ebf5875ecc9f10dea67d4793fcc47178ddd6abe8959fc0390c6ff967fba7318013b4bf251abf451999b86697e97390c8698685b12086956c8e6bc2e97708bc9
36 -DIST gcc-10.2.0.tar.xz 75004144 BLAKE2B 1d79397330354e61439283cac96a109bf78ffc726265442e6d3ec131f107589ab7349d6612836edd8c8512f7bcc1d901a65a0d5d925d28a5bf3ef5cc3f9787ee SHA512 42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e
37
38 diff --git a/sys-devel/gcc/files/3.3.4/libffi-without-libgcj.patch b/sys-devel/gcc/files/3.3.4/libffi-without-libgcj.patch
39 deleted file mode 100644
40 index 507d42f..0000000
41 --- a/sys-devel/gcc/files/3.3.4/libffi-without-libgcj.patch
42 +++ /dev/null
43 @@ -1,22 +0,0 @@
44 ---- configure.in.old 2004-06-26 07:01:06.000000000 +0200
45 -+++ configure.in 2004-06-26 07:02:55.000000000 +0200
46 -@@ -52,8 +52,7 @@
47 - host_tools="texinfo byacc flex bison binutils ld gas gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool grep diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils snavigator libtool gettext zip fastjar"
48 -
49 - # libgcj represents the runtime libraries only used by gcj.
50 --libgcj="target-libffi \
51 -- target-boehm-gc \
52 -+libgcj="target-boehm-gc \
53 - target-zlib \
54 - target-qthreads \
55 - target-libjava"
56 -@@ -66,7 +65,8 @@
57 - target-newlib \
58 - ${libstdcxx_version} \
59 - target-libf2c \
60 -- ${libgcj}
61 -+ ${libgcj} \
62 -+ target-libffi \
63 - target-libobjc"
64 -
65 - # these tools are built using the target libs, and are intended to run only
66
67 diff --git a/sys-devel/gcc/files/3.4.3/libffi-nogcj-lib-path-fix.patch b/sys-devel/gcc/files/3.4.3/libffi-nogcj-lib-path-fix.patch
68 deleted file mode 100644
69 index b5195e4..0000000
70 --- a/sys-devel/gcc/files/3.4.3/libffi-nogcj-lib-path-fix.patch
71 +++ /dev/null
72 @@ -1,40 +0,0 @@
73 -diff -ur gcc-3.4.3/libffi/Makefile.in gcc-3.4.3-ffi-fixes/libffi/Makefile.in
74 ---- gcc-3.4.3/libffi/Makefile.in 2003-11-22 08:41:32.000000000 -0500
75 -+++ gcc-3.4.3-ffi-fixes/libffi/Makefile.in 2004-11-28 17:31:50.000000000 -0500
76 -@@ -89,7 +89,7 @@
77 - libffi_basedir = @libffi_basedir@
78 - tool_include_dir = @tool_include_dir@
79 - toolexecdir = @toolexecdir@
80 --toolexeclibdir = @toolexeclibdir@
81 -+toolexeclibdir = @toolexeclibdir@/@gcc_version@
82 -
83 - AUTOMAKE_OPTIONS = cygnus
84 -
85 -diff -ur gcc-3.4.3/libffi/configure gcc-3.4.3-ffi-fixes/libffi/configure
86 ---- gcc-3.4.3/libffi/configure 2004-05-18 05:08:39.000000000 -0400
87 -+++ gcc-3.4.3-ffi-fixes/libffi/configure 2004-11-28 17:48:19.000000000 -0500
88 -@@ -3800,8 +3800,8 @@
89 - toolexecdir='$(exec_prefix)/$(target_alias)'
90 - toolexeclibdir='$(toolexecdir)/lib'
91 - else
92 -- toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
93 -- toolexeclibdir='$(libdir)'
94 -+ toolexecdir='$(libdir)/gcc/$(target_alias)'
95 -+ toolexeclibdir='$(libdir)/gcc/$(target_alias)/$(gcc-version)'
96 - fi
97 - multi_os_directory=`$CC -print-multi-os-directory`
98 - case $multi_os_directory in
99 -diff -ur gcc-3.4.3/libffi/configure.in gcc-3.4.3-ffi-fixes/libffi/configure.in
100 ---- gcc-3.4.3/libffi/configure.in 2004-04-27 01:10:19.000000000 -0400
101 -+++ gcc-3.4.3-ffi-fixes/libffi/configure.in 2004-11-28 17:40:30.000000000 -0500
102 -@@ -225,8 +225,8 @@
103 - toolexecdir='$(exec_prefix)/$(target_alias)'
104 - toolexeclibdir='$(toolexecdir)/lib'
105 - else
106 -- toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
107 -- toolexeclibdir='$(libdir)'
108 -+ toolexecdir='$(libdir)/gcc/$(target_alias)'
109 -+ toolexeclibdir='$(libdir)/gcc/$(target_alias)/$(gcc_version)'
110 - fi
111 - multi_os_directory=`$CC -print-multi-os-directory`
112 - case $multi_os_directory in
113
114 diff --git a/sys-devel/gcc/files/3.4.3/libffi-without-libgcj.patch b/sys-devel/gcc/files/3.4.3/libffi-without-libgcj.patch
115 deleted file mode 100644
116 index b270a06..0000000
117 --- a/sys-devel/gcc/files/3.4.3/libffi-without-libgcj.patch
118 +++ /dev/null
119 @@ -1,40 +0,0 @@
120 ---- configure.in.orig 2004-08-03 00:53:36.000000000 +0200
121 -+++ configure.in 2004-08-03 00:52:35.000000000 +0200
122 -@@ -136,8 +136,7 @@
123 - host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
124 -
125 - # libgcj represents the runtime libraries only used by gcj.
126 --libgcj="target-libffi \
127 -- target-boehm-gc \
128 -+libgcj="target-boehm-gc \
129 - target-zlib \
130 - target-qthreads \
131 - target-libjava"
132 -@@ -150,6 +150,7 @@
133 - target-libstdc++-v3 \
134 - target-libf2c \
135 - ${libgcj} \
136 -+ target-libffi \
137 - target-libobjc"
138 -
139 - # these tools are built using the target libraries, and are intended to
140 ---- configure~ 2004-08-28 02:31:04.000000000 +0200
141 -+++ configure 2004-08-28 10:55:28.000000000 +0200
142 -@@ -876,8 +876,7 @@
143 - host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
144 -
145 - # libgcj represents the runtime libraries only used by gcj.
146 --libgcj="target-libffi \
147 -- target-boehm-gc \
148 -+libgcj="target-boehm-gc \
149 - target-zlib \
150 - target-qthreads \
151 - target-libjava"
152 -@@ -891,6 +890,7 @@
153 - target-libstdc++-v3 \
154 - target-libf2c \
155 - ${libgcj} \
156 -+ target-libffi \
157 - target-libobjc"
158 -
159 - # these tools are built using the target libraries, and are intended to
160
161 diff --git a/sys-devel/gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch b/sys-devel/gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch
162 deleted file mode 100644
163 index 0389543..0000000
164 --- a/sys-devel/gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch
165 +++ /dev/null
166 @@ -1,63 +0,0 @@
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/config/sh/linux.h
172 -+++ gcc/config/sh/linux.h
173 -@@ -145,6 +145,7 @@
174 - /* Do code reading to identify a signal frame, and set the frame
175 - state data appropriately. See unwind-dw2.c for the structs. */
176 -
177 -+#ifndef inhibit_libc
178 - #ifdef IN_LIBGCC2
179 - #include <signal.h>
180 - #include <sys/ucontext.h>
181 -@@ -295,6 +296,7 @@
182 -
183 - #endif /* defined (__SH5__) */
184 - #endif /* IN_LIBGCC2 */
185 -+#endif /* inhibit_libc */
186 -
187 - /* For SH3 and SH4, we use a slot of the unwind frame which correspond
188 - to a fake register number 16 as a placeholder for the return address
189 ---- gcc/config/i386/linux.h
190 -+++ gcc/config/i386/linux.h
191 -@@ -208,6 +208,7 @@
192 - /* Do code reading to identify a signal frame, and set the frame
193 - state data appropriately. See unwind-dw2.c for the structs. */
194 -
195 -+#ifndef inhibit_libc
196 - #ifdef IN_LIBGCC2
197 - /* There's no sys/ucontext.h for some (all?) libc1, so no
198 - signal-turned-exceptions for them. There's also no configure-run for
199 -@@ -272,3 +273,4 @@
200 - } while (0)
201 - #endif /* not USE_GNULIBC_1 */
202 - #endif /* IN_LIBGCC2 */
203 -+#endif /* inhibit_libc */
204 ---- gcc/config/alpha/linux.h
205 -+++ gcc/config/alpha/linux.h
206 -@@ -73,6 +73,7 @@
207 - /* Do code reading to identify a signal frame, and set the frame
208 - state data appropriately. See unwind-dw2.c for the structs. */
209 -
210 -+#ifndef inhibit_libc
211 - #ifdef IN_LIBGCC2
212 - #include <signal.h>
213 - #include <sys/ucontext.h>
214 -@@ -122,3 +123,4 @@
215 - (FS)->retaddr_column = 64; \
216 - goto SUCCESS; \
217 - } while (0)
218 -+#endif /* inhibit_libc */
219 ---- gcc/config.gcc
220 -+++ gcc/config.gcc
221 -@@ -321,7 +321,7 @@
222 - need_64bit_hwint=yes
223 - ;;
224 - # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
225 --sh[123456789l]*-*-*)
226 -+sh[123456789lbe]*-*-*)
227 - cpu_type=sh
228 - need_64bit_hwint=yes
229 - ;;
230
231 diff --git a/sys-devel/gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch b/sys-devel/gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch
232 deleted file mode 100644
233 index 523caa4..0000000
234 --- a/sys-devel/gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch
235 +++ /dev/null
236 @@ -1,40 +0,0 @@
237 -Some notes on the 'bootstrap with or without libc headers' debate:
238 -http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html
239 -http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
240 -
241 ---- gcc/unwind-dw2.c
242 -+++ gcc/unwind-dw2.c
243 -@@ -253,9 +253,11 @@
244 - }
245 - #endif
246 -
247 -+#ifndef inhibit_libc
248 - #ifdef MD_UNWIND_SUPPORT
249 - #include MD_UNWIND_SUPPORT
250 - #endif
251 -+#endif
252 -
253 - /* Extract any interesting information from the CIE for the translation
254 - unit F belongs to. Return a pointer to the byte after the augmentation,
255 ---- gcc/configure
256 -+++ gcc/configure
257 -@@ -12857,7 +12857,7 @@ then
258 - | powerpc*-*-*,powerpc64*-*-*)
259 - CROSS="$CROSS -DNATIVE_CROSS" ;;
260 - esac
261 --elif test "x$TARGET_SYSTEM_ROOT" != x; then
262 -+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
263 - SYSTEM_HEADER_DIR=$build_system_header_dir
264 - fi
265 -
266 ---- gcc/configure.ac
267 -+++ gcc/configure.ac
268 -@@ -1717,7 +1717,7 @@ then
269 - | powerpc*-*-*,powerpc64*-*-*)
270 - CROSS="$CROSS -DNATIVE_CROSS" ;;
271 - esac
272 --elif test "x$TARGET_SYSTEM_ROOT" != x; then
273 -+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
274 - SYSTEM_HEADER_DIR=$build_system_header_dir
275 - fi
276 -
277
278 diff --git a/sys-devel/gcc/files/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch b/sys-devel/gcc/files/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch
279 deleted file mode 100644
280 index 6090d66..0000000
281 --- a/sys-devel/gcc/files/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch
282 +++ /dev/null
283 @@ -1,64 +0,0 @@
284 -workaround for lame stack packing on i386 ...
285 -
286 - - build gcc with -Os (crtfastmath.o to be specific)
287 - - crtfastmath.o is installed into gcc libdir
288 - - run gcc with -ffast-math and get crtfastmath.o linked in
289 - - resulting compiled app segfaults due to init code in
290 - crtfastmath.o that has mis-aligned structure on stack
291 -
292 -http://bugs.gentoo.org/147020
293 -http://gcc.gnu.org/PR28621
294 -
295 -this is supposed to be fixed in current 4.1 branch, but i'm unable to get
296 -the fix to work so until i can figure out what i'm doing wrong, we'll use
297 -this workaround for now.
298 -
299 ---- gcc-4.1.1/gcc/config/i386/crtfastmath.c
300 -+++ gcc-4.1.1/gcc/config/i386/crtfastmath.c
301 -@@ -37,6 +37,23 @@
302 - #define FXSAVE (1 << 24)
303 - #define SSE (1 << 25)
304 -
305 -+struct
306 -+{
307 -+ unsigned short int cwd;
308 -+ unsigned short int swd;
309 -+ unsigned short int twd;
310 -+ unsigned short int fop;
311 -+ long int fip;
312 -+ long int fcs;
313 -+ long int foo;
314 -+ long int fos;
315 -+ long int mxcsr;
316 -+ long int mxcsr_mask;
317 -+ long int st_space[32];
318 -+ long int xmm_space[32];
319 -+ long int padding[56];
320 -+} __attribute__ ((aligned (16))) fxsave;
321 -+
322 - static void __attribute__((constructor))
323 - set_fast_math (void)
324 - {
325 -@@ -75,22 +92,6 @@
326 - if (edx & FXSAVE)
327 - {
328 - /* Check if DAZ is available. */
329 -- struct
330 -- {
331 -- unsigned short int cwd;
332 -- unsigned short int swd;
333 -- unsigned short int twd;
334 -- unsigned short int fop;
335 -- long int fip;
336 -- long int fcs;
337 -- long int foo;
338 -- long int fos;
339 -- long int mxcsr;
340 -- long int mxcsr_mask;
341 -- long int st_space[32];
342 -- long int xmm_space[32];
343 -- long int padding[56];
344 -- } __attribute__ ((aligned (16))) fxsave;
345 -
346 - __builtin_memset (&fxsave, 0, sizeof (fxsave));
347 -
348
349 diff --git a/sys-devel/gcc/files/gcc-4.9.4-bootstrap.patch b/sys-devel/gcc/files/gcc-4.9.4-bootstrap.patch
350 deleted file mode 100644
351 index aed1ad0..0000000
352 --- a/sys-devel/gcc/files/gcc-4.9.4-bootstrap.patch
353 +++ /dev/null
354 @@ -1,66 +0,0 @@
355 -From 41a4aa66eac45c8862a79351647ec06dd03bd1f5 Mon Sep 17 00:00:00 2001
356 -From: jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
357 -Date: Sat, 13 Dec 2014 11:24:37 +0000
358 -Subject: [PATCH] PR bootstrap/64023 * Makefile.tpl
359 - (EXTRA_TARGET_FLAGS): Set STAGE1_LDFLAGS to POSTSTAGE1_LDFLAGS and
360 - STAGE1_LIBS to POSTSTAGE1_LIBS. Add -B to libstdc++-v3/src/.libs and
361 - libstdc++-v3/libsupc++/.libs to CXX. * Makefile.in: Regenerated.
362 -
363 -git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218705 138bc75d-0d04-0410-961f-82ee72b054a4
364 ----
365 - ChangeLog | 9 +++++++++
366 - Makefile.in | 6 +++++-
367 - Makefile.tpl | 6 +++++-
368 - 3 files changed, 19 insertions(+), 2 deletions(-)
369 -
370 -diff --git a/Makefile.in b/Makefile.in
371 -index ba5ae4c2ecb..8ffc313f157 100644
372 ---- a/Makefile.in
373 -+++ b/Makefile.in
374 -@@ -835,7 +835,9 @@ EXTRA_TARGET_FLAGS = \
375 - 'AS=$(COMPILER_AS_FOR_TARGET)' \
376 - 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
377 - 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
378 -- 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
379 -+ 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
380 -+ -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
381 -+ $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
382 - 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
383 - 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
384 - 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
385 -@@ -853,6 +855,8 @@ EXTRA_TARGET_FLAGS = \
386 - 'WINDRES=$$(WINDRES_FOR_TARGET)' \
387 - 'WINDMC=$$(WINDMC_FOR_TARGET)' \
388 - 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
389 -+ 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
390 -+ 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
391 - "TFLAGS=$$TFLAGS"
392 -
393 - TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
394 -diff --git a/Makefile.tpl b/Makefile.tpl
395 -index dcbc6b1b143..bb8227eaafa 100644
396 ---- a/Makefile.tpl
397 -+++ b/Makefile.tpl
398 -@@ -641,7 +641,9 @@ EXTRA_TARGET_FLAGS = \
399 - 'AS=$(COMPILER_AS_FOR_TARGET)' \
400 - 'CC=$$(CC_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
401 - 'CFLAGS=$$(CFLAGS_FOR_TARGET)' \
402 -- 'CXX=$$(CXX_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
403 -+ 'CXX=$$(CXX_FOR_TARGET) -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \
404 -+ -B$$r/$$(TARGET_SUBDIR)/libstdc++-v3/libsupc++/.libs \
405 -+ $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
406 - 'CXXFLAGS=$$(CXXFLAGS_FOR_TARGET)' \
407 - 'DLLTOOL=$$(DLLTOOL_FOR_TARGET)' \
408 - 'GCJ=$$(GCJ_FOR_TARGET) $$(XGCC_FLAGS_FOR_TARGET) $$(TFLAGS)' \
409 -@@ -659,6 +661,8 @@ EXTRA_TARGET_FLAGS = \
410 - 'WINDRES=$$(WINDRES_FOR_TARGET)' \
411 - 'WINDMC=$$(WINDMC_FOR_TARGET)' \
412 - 'XGCC_FLAGS_FOR_TARGET=$(XGCC_FLAGS_FOR_TARGET)' \
413 -+ 'STAGE1_LDFLAGS=$$(POSTSTAGE1_LDFLAGS)' \
414 -+ 'STAGE1_LIBS=$$(POSTSTAGE1_LIBS)' \
415 - "TFLAGS=$$TFLAGS"
416 -
417 - TARGET_FLAGS_TO_PASS = $(BASE_FLAGS_TO_PASS) $(EXTRA_TARGET_FLAGS)
418 ---
419 -2.15.0
420 -
421
422 diff --git a/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch b/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
423 deleted file mode 100644
424 index 7a6bebd..0000000
425 --- a/sys-devel/gcc/files/gcc-9.2.0-neg-insn-cost.patch
426 +++ /dev/null
427 @@ -1,29 +0,0 @@
428 -https://bugs.gentoo.org/707958
429 -https://gcc.gnu.org/PR88879
430 -
431 -Subject: [PATCH] sel-sched: allow negative insn priority (PR 88879)
432 -From: Alexander Monakov <amonakov@××××××.ru>
433 -
434 - PR rtl-optimization/88879
435 - * sel-sched.c (sel_target_adjust_priority): Remove assert.
436 -
437 -From-SVN: r271039
438 ----
439 - gcc/ChangeLog | 5 +++++
440 - gcc/sel-sched.c | 2 --
441 - 2 files changed, 5 insertions(+), 2 deletions(-)
442 -
443 ---- a/gcc/sel-sched.c
444 -+++ b/gcc/sel-sched.c
445 -@@ -3331,8 +3331,6 @@ sel_target_adjust_priority (expr_t expr)
446 - else
447 - new_priority = priority;
448 -
449 -- gcc_assert (new_priority >= 0);
450 --
451 - /* If the priority has changed, adjust EXPR_PRIORITY_ADJ accordingly. */
452 - EXPR_PRIORITY_ADJ (expr) = new_priority - EXPR_PRIORITY (expr);
453 -
454 ---
455 -2.25.0
456 -
457
458 diff --git a/sys-devel/gcc/files/gcc-configure-LANG.patch b/sys-devel/gcc/files/gcc-configure-LANG.patch
459 deleted file mode 100644
460 index d1b1b03..0000000
461 --- a/sys-devel/gcc/files/gcc-configure-LANG.patch
462 +++ /dev/null
463 @@ -1,64 +0,0 @@
464 -The LANG vars aren't reset early enough so when sed tries to use [a-zA-Z] in
465 -option parsing, it may break.
466 -
467 -http://bugs.gentoo.org/103483
468 -
469 ---- configure
470 -+++ configure
471 -@@ -54,6 +54,19 @@
472 - infodir='${prefix}/info'
473 - mandir='${prefix}/man'
474 -
475 -+# NLS nuisances.
476 -+for as_var in \
477 -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
478 -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
479 -+ LC_TELEPHONE LC_TIME
480 -+do
481 -+ if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
482 -+ eval $as_var=C; export $as_var
483 -+ else
484 -+ unset $as_var
485 -+ fi
486 -+done
487 -+
488 - # Initialize some other variables.
489 - subdirs=
490 - MFLAGS= MAKEFLAGS=
491 -@@ -452,16 +463,6 @@
492 - esac
493 - done
494 -
495 --# NLS nuisances.
496 --# Only set these to C if already set. These must not be set unconditionally
497 --# because not all systems understand e.g. LANG=C (notably SCO).
498 --# Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 --# Non-C LC_CTYPE values break the ctype check.
500 --if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 --if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 --if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 --if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 --
505 - # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 - rm -rf conftest* confdefs.h
507 - # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 -@@ -1850,6 +1850,19 @@
509 - # Compiler output produced by configure, useful for debugging
510 - # configure, is in ./config.log if it exists.
511 -
512 -+# NLS nuisances.
513 -+for as_var in \
514 -+ LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
515 -+ LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
516 -+ LC_TELEPHONE LC_TIME
517 -+do
518 -+ if (set +x; test -z "`(eval \$as_var=C; export \$as_var) 2>&1`"); then
519 -+ eval \$as_var=C; export \$as_var
520 -+ else
521 -+ unset \$as_var
522 -+ fi
523 -+done
524 -+
525 - ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
526 - for ac_option
527 - do
528
529 diff --git a/sys-devel/gcc/files/gcc-configure-texinfo.patch b/sys-devel/gcc/files/gcc-configure-texinfo.patch
530 deleted file mode 100644
531 index 99e9099..0000000
532 --- a/sys-devel/gcc/files/gcc-configure-texinfo.patch
533 +++ /dev/null
534 @@ -1,16 +0,0 @@
535 -Chances are quite good that the installed makeinfo is sufficient.
536 -So ignore false positives where the makeinfo installed is so new
537 -that it violates the cheesy version grep.
538 -
539 -http://bugs.gentoo.org/198182
540 -
541 ---- a/configure
542 -+++ b/configure
543 -@@ -3573,6 +3573,6 @@
544 - :
545 - else
546 -- MAKEINFO="$MISSING makeinfo"
547 -+ :
548 - fi
549 - ;;
550 -
551
552 diff --git a/sys-devel/gcc/files/gcc-spec-env-r1.patch b/sys-devel/gcc/files/gcc-spec-env-r1.patch
553 deleted file mode 100644
554 index a589268..0000000
555 --- a/sys-devel/gcc/files/gcc-spec-env-r1.patch
556 +++ /dev/null
557 @@ -1,87 +0,0 @@
558 -2013-08-22 Magnus Granberg <zorry@g.o>
559 -
560 - * gcc/gcc.c (main): Add support for external spec file via the GCC_SPECS env var
561 - and move the process of the user specifed specs.
562 -
563 - This allows us to easily control pie/ssp defaults with gcc-config profiles.
564 - Original patch by Rob Holland
565 - Extended to support multiple entries separated by ':' by Kevin F. Quinn
566 - Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill
567 - Modified to process the GCC_SPECS env var befor DRIVER_SELF_SPECS by Magnus Granberg
568 -
569 ---- gcc-4.8-20130210/gcc/gcc.c 2013-02-05 16:55:31.000000000 +0100
570 -+++ gcc-4.8-20130210-work/gcc/gcc.c 2013-07-26 02:32:14.625089864 +0200
571 -@@ -6427,6 +6428,48 @@ main (int argc, char **argv)
572 - do_option_spec (option_default_specs[i].name,
573 - option_default_specs[i].spec);
574 -
575 -+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32))
576 -+ /* Add specs listed in GCC_SPECS. Note; in the process of separating
577 -+ * each spec listed, the string is overwritten at token boundaries
578 -+ * (':') with '\0', an effect of strtok_r().
579 -+ */
580 -+ specs_file = getenv ("GCC_SPECS");
581 -+ if (specs_file && (strlen(specs_file) > 0))
582 -+ {
583 -+ char *spec, *saveptr;
584 -+ for (spec=strtok_r(specs_file,":",&saveptr);
585 -+ spec!=NULL;
586 -+ spec=strtok_r(NULL,":",&saveptr))
587 -+ {
588 -+ struct user_specs *user = (struct user_specs *)
589 -+ xmalloc (sizeof (struct user_specs));
590 -+ user->next = (struct user_specs *) 0;
591 -+ user->filename = spec;
592 -+ if (user_specs_tail)
593 -+ user_specs_tail->next = user;
594 -+ else
595 -+ user_specs_head = user;
596 -+ user_specs_tail = user;
597 -+ }
598 -+ }
599 -+#endif
600 -+ /* Process any user specified specs in the order given on the command
601 -+ * line. */
602 -+ for (uptr = user_specs_head; uptr; uptr = uptr->next)
603 -+ {
604 -+ char *filename = find_a_file (&startfile_prefixes, uptr->filename,
605 -+ R_OK, true);
606 -+ read_specs (filename ? filename : uptr->filename, false, true);
607 -+ }
608 -+ /* Process any user self specs. */
609 -+ {
610 -+ struct spec_list *sl;
611 -+ for (sl = specs; sl; sl = sl->next)
612 -+ if (sl->name_len == sizeof "self_spec" - 1
613 -+ && !strcmp (sl->name, "self_spec"))
614 -+ do_self_spec (*sl->ptr_spec);
615 -+ }
616 -+
617 - /* Process DRIVER_SELF_SPECS, adding any new options to the end
618 - of the command line. */
619 -
620 -@@ -6535,24 +6578,6 @@ main (int argc, char **argv)
621 - PREFIX_PRIORITY_LAST, 0, 1);
622 - }
623 -
624 -- /* Process any user specified specs in the order given on the command
625 -- line. */
626 -- for (uptr = user_specs_head; uptr; uptr = uptr->next)
627 -- {
628 -- char *filename = find_a_file (&startfile_prefixes, uptr->filename,
629 -- R_OK, true);
630 -- read_specs (filename ? filename : uptr->filename, false, true);
631 -- }
632 --
633 -- /* Process any user self specs. */
634 -- {
635 -- struct spec_list *sl;
636 -- for (sl = specs; sl; sl = sl->next)
637 -- if (sl->name_len == sizeof "self_spec" - 1
638 -- && !strcmp (sl->name, "self_spec"))
639 -- do_self_spec (*sl->ptr_spec);
640 -- }
641 --
642 - if (compare_debug)
643 - {
644 - enum save_temps save;
645
646 diff --git a/sys-devel/gcc/files/gcc-spec-env.patch b/sys-devel/gcc/files/gcc-spec-env.patch
647 deleted file mode 100644
648 index 57e7567..0000000
649 --- a/sys-devel/gcc/files/gcc-spec-env.patch
650 +++ /dev/null
651 @@ -1,42 +0,0 @@
652 - Add support for external spec file via the GCC_SPECS env var. This
653 - allows us to easily control pie/ssp defaults with gcc-config profiles.
654 -
655 - Original patch by Rob Holland
656 - Extended to support multiple entries separated by ':' by Kevin F. Quinn
657 - Modified to use getenv instead of poisoned GET_ENVIRONMENT by Ryan Hill
658 -
659 ---- gcc-4/gcc/gcc.c
660 -+++ gcc-4/gcc/gcc.c
661 -@@ -6482,6 +6482,32 @@
662 -
663 - /* Process any user specified specs in the order given on the command
664 - line. */
665 -+#if !(defined (__MSDOS__) || defined (OS2) || defined (VMS) || defined (WIN32))
666 -+ /* Add specs listed in GCC_SPECS. Note; in the process of separating
667 -+ * each spec listed, the string is overwritten at token boundaries
668 -+ * (':') with '\0', an effect of strtok_r().
669 -+ */
670 -+ specs_file = getenv ("GCC_SPECS");
671 -+ if (specs_file && (strlen(specs_file) > 0))
672 -+ {
673 -+ char *spec, *saveptr;
674 -+ for (spec=strtok_r(specs_file,":",&saveptr);
675 -+ spec!=NULL;
676 -+ spec=strtok_r(NULL,":",&saveptr))
677 -+ {
678 -+ struct user_specs *user = (struct user_specs *)
679 -+ xmalloc (sizeof (struct user_specs));
680 -+
681 -+ user->next = (struct user_specs *) 0;
682 -+ user->filename = spec;
683 -+ if (user_specs_tail)
684 -+ user_specs_tail->next = user;
685 -+ else
686 -+ user_specs_head = user;
687 -+ user_specs_tail = user;
688 -+ }
689 -+ }
690 -+#endif
691 - for (uptr = user_specs_head; uptr; uptr = uptr->next)
692 - {
693 - char *filename = find_a_file (&startfile_prefixes, uptr->filename,
694
695 diff --git a/sys-devel/gcc/gcc-10.2.0-r1.ebuild b/sys-devel/gcc/gcc-10.2.0-r1.ebuild
696 deleted file mode 100644
697 index 2d2ebe5..0000000
698 --- a/sys-devel/gcc/gcc-10.2.0-r1.ebuild
699 +++ /dev/null
700 @@ -1,18 +0,0 @@
701 -# Copyright 1999-2020 Gentoo Authors
702 -# Distributed under the terms of the GNU General Public License v2
703 -
704 -EAPI="7"
705 -
706 -PATCH_VER="2"
707 -
708 -inherit toolchain
709 -
710 -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
711 -
712 -RDEPEND=""
713 -BDEPEND="${CATEGORY}/binutils"
714 -
715 -src_prepare() {
716 - has_version '>=sys-libs/glibc-2.32-r1' && rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch"
717 - toolchain_src_prepare
718 -}
719
720 diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml
721 deleted file mode 100644
722 index 6161017..0000000
723 --- a/sys-devel/gcc/metadata.xml
724 +++ /dev/null
725 @@ -1,36 +0,0 @@
726 -<?xml version="1.0" encoding="UTF-8"?>
727 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
728 -<pkgmetadata>
729 - <maintainer type="project">
730 - <email>toolchain@g.o</email>
731 - <name>Gentoo Toolchain Project</name>
732 - </maintainer>
733 - <use>
734 - <flag name="ada">Build the ADA language (GNAT) frontend</flag>
735 - <flag name="d">Enable support for the D programming language</flag>
736 - <flag name="fixed-point">Enable fixed-point arithmetic support for MIPS targets
737 - in gcc (Warning: significantly increases compile time!)</flag>
738 - <flag name="go">Build the GCC Go language frontend.</flag>
739 - <flag name="graphite">Add support for the framework for loop
740 - optimizations based on a polyhedral intermediate representation</flag>
741 - <flag name="jit">Enable libgccjit so other applications can embed gcc for Just-In-Time compilation.
742 - This will slow down the compiler a bit as it forces all of the toolchain to be shared libs.</flag>
743 - <flag name="libssp">Build SSP support into a dedicated library rather than use the
744 - code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag>
745 - <flag name="lto">Build using Link Time Optimizations (LTO)</flag>
746 - <flag name="nptl">Enable support for Native POSIX Threads Library, the new threading module (requires linux-2.6 or better usually)</flag>
747 - <flag name="objc">Build support for the Objective C code language</flag>
748 - <flag name="objc++">Build support for the Objective C++ language</flag>
749 - <flag name="objc-gc">Build support for the Objective C code language Garbage
750 - Collector</flag>
751 - <flag name="pgo">Build GCC using Profile Guided Optimization (PGO)</flag>
752 - <flag name="sanitize">Build support for various sanitizer functions (ASAN/TSAN/etc...)</flag>
753 - <flag name="ssp">Build packages with stack smashing protector on by default</flag>
754 - <flag name="systemtap">enable systemtap static probe points</flag>
755 - <flag name="vtv">Build support for virtual table verification (a C++ hardening feature)</flag>
756 - </use>
757 - <upstream>
758 - <remote-id type="cpe">cpe:/a:gnu:gcc</remote-id>
759 - <remote-id type="sourceforge">dgcc</remote-id>
760 - </upstream>
761 -</pkgmetadata>