summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2023-08-30 12:29:33 +0200
committerFabian Groffen <grobian@gentoo.org>2023-08-30 12:29:33 +0200
commitd9292615580292acafc18a2ae7796005f702edf7 (patch)
tree1b3670b728561a5dbc0491674755fc6546a6f47b /sys-devel
parentsys-devel/binutils-2.40-r8: pull in EAPI=8 ebuild from gx86 (diff)
downloadprefix-d9292615580292acafc18a2ae7796005f702edf7.tar.gz
prefix-d9292615580292acafc18a2ae7796005f702edf7.tar.bz2
prefix-d9292615580292acafc18a2ae7796005f702edf7.zip
sys-devel/gcc: cleanup EAPI=7 ebuilds
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
Diffstat (limited to 'sys-devel')
-rw-r--r--sys-devel/gcc/Manifest11
-rw-r--r--sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch84
-rw-r--r--sys-devel/gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch40
-rw-r--r--sys-devel/gcc/files/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch64
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-bnoerok.patch26
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-force-pthread-r1.patch42
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-force-pthread.patch275
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-libssp.patch24
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-lineno.patch29
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-minimal-toc.patch20
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-pr46072.patch25
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-runtimelinking-r1.patch46
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-runtimelinking.patch113
-rw-r--r--sys-devel/gcc/files/4.2.2/aix-soname.patch132
-rw-r--r--sys-devel/gcc/files/4.2.2/aix61-longdouble64.patch14
-rw-r--r--sys-devel/gcc/files/4.2.2/gentoo-fixincludes.patch29
-rw-r--r--sys-devel/gcc/files/4.2.2/interix-3.5-x86.patch11
-rw-r--r--sys-devel/gcc/files/4.2.2/interix-x86.patch.bz2bin8885 -> 0 bytes
-rw-r--r--sys-devel/gcc/files/4.2.2/pr26189-pa.patch24
-rw-r--r--sys-devel/gcc/files/4.2.2/pr31899.patch66
-rw-r--r--sys-devel/gcc/files/4.2.2/prefix-search-dirs.patch48
-rw-r--r--sys-devel/gcc/files/4.2.2/ro-string.patch109
-rw-r--r--sys-devel/gcc/files/4.2.2/solarisx86.patch15
-rw-r--r--sys-devel/gcc/files/4.2.2/solarisx86_64.patch89
-rw-r--r--sys-devel/gcc/files/4.2.2/targettools-checks.patch108
-rw-r--r--sys-devel/gcc/files/4.2.2/treelang-nomakeinfo.patch12
-rw-r--r--sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch88
-rw-r--r--sys-devel/gcc/files/4.3.3/aix-force-pthread.patch316
-rw-r--r--sys-devel/gcc/files/4.3.3/gcc-4.3.3-redundant-linkage.patch18
-rw-r--r--sys-devel/gcc/files/4.3.3/prefix-search-dirs.patch48
-rw-r--r--sys-devel/gcc/files/4.3.3/solarisx86_64.patch118
-rw-r--r--sys-devel/gcc/files/4.5.2/m68k-coldfire.patch52
-rw-r--r--sys-devel/gcc/files/4.5.2/prefix-search-dirs.patch37
-rw-r--r--sys-devel/gcc/files/4.5.2/solaris-pthread.patch32
-rw-r--r--sys-devel/gcc/files/4.5.2/solaris-searchpath.patch89
-rw-r--r--sys-devel/gcc/files/4.7.1/solaris-searchpath.patch38
-rw-r--r--sys-devel/gcc/files/4.7.2/solaris-x64-tls-gnu-as.patch135
-rw-r--r--sys-devel/gcc/gcc-10.2.0-r5.ebuild111
-rw-r--r--sys-devel/gcc/gcc-10.3.0-r2.ebuild116
-rw-r--r--sys-devel/gcc/gcc-11.2.0.ebuild118
-rw-r--r--sys-devel/gcc/gcc-8.3.0.ebuild97
-rw-r--r--sys-devel/gcc/gcc-9.2.0-r3.ebuild98
42 files changed, 0 insertions, 2967 deletions
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
index 2b4ecba53e..50516e4616 100644
--- a/sys-devel/gcc/Manifest
+++ b/sys-devel/gcc/Manifest
@@ -1,9 +1,3 @@
-DIST gcc-10.2.0-patches-6.tar.bz2 24103 BLAKE2B f719012f86136ad9c4ea1397548caca6e69687534599a88cc25fe0e4f83dd7fd34c07375fa6e612e2b430e078c1a59913160cce07312e94fa1ce575a33e5457b SHA512 61d97dba29024c7a22806689ebf33f5cb9ce099230bcc344f2865b976c3fdfd8ebec5962eaffd0156de75eca58499ba785867bd4a4ac92c6f799ab1bee8844a1
-DIST gcc-10.2.0.tar.xz 75004144 BLAKE2B 1d79397330354e61439283cac96a109bf78ffc726265442e6d3ec131f107589ab7349d6612836edd8c8512f7bcc1d901a65a0d5d925d28a5bf3ef5cc3f9787ee SHA512 42ae38928bd2e8183af445da34220964eb690b675b1892bbeb7cd5bb62be499011ec9a93397dba5e2fb681afadfc6f2767d03b9035b44ba9be807187ae6dc65e
-DIST gcc-10.3.0-patches-3.tar.bz2 18935 BLAKE2B 13eaf1e055b5b63069aed1575ed93f6bc822b5e3f2181ddfc88f4e7ff801f58997cd131b2efd79b90469b1f861db994feb2adcaecacf165442078f76e233fd9a SHA512 c3d6a6f32863cc0ff7c877314ff0c00a892e473f64d16b82d46b4a77aa97c3e7a575492d27f0d423acb2621c86c9a49bca0e26e45bda9e697495444fcac85084
-DIST gcc-10.3.0.tar.xz 76692288 BLAKE2B ac7898f5eb8a7c5f151a526d1bb38913a68b50a65e4d010ac09fa20b6c801c671c790d780f23ccb8e4ecdfc686f4aa588082ccc9eb5c80c7b0e30788f824c1eb SHA512 2b2dd7453d48a398c29eaebd1422b70341001b8c90a62aee51e83344e7fdd8a8e45f82a4a9165bd7edc76dada912c932f4b6632c5636760fec4c5d7e402b3f86
-DIST gcc-11.2.0-patches-1.tar.bz2 11537 BLAKE2B 9dd791ada244c9b70b8b99f9f305a688c248134715ed1b26d406e53b114983faae6873cdc521497164388d24d5f61c199e98df146bc02f5578e877295bcf5c82 SHA512 6539efc60c656d0798a5896dc1b944ed69914b815102c7a1c10bdba4ef935abd326b01309f38316e121f1ed90ceb2abcaf65df6af116892daad829ac2623cefc
-DIST gcc-11.2.0.tar.xz 80888824 BLAKE2B 69b61234ac436edfea2933df68c434a2ce7aa4454ef4da573e82587e1a42dc420189e949cfdadaf4cb37fc0de9674822210a95b77ff03aca0dbedfe67df19cc6 SHA512 d53a0a966230895c54f01aea38696f818817b505f1e2bfa65e508753fcd01b2aedb4a61434f41f3a2ddbbd9f41384b96153c684ded3f0fa97c82758d9de5c7cf
DIST gcc-12.1-darwin-r0.tar.gz 131006433 BLAKE2B fe94275821772586b90d003e5179a72c5662216d216db6b7fd066df8873744d5edff25521f3f30cb08d45f59545fa03e44364bdf831998a0285c0ba5df0c1547 SHA512 8bfae411e8f6f853ad50cda4f7bd672217883b305893c8dda9f630d712d8ef0857e89c8f4ce6c446340041d8da2ec98e6dfcc99861e844eb99c6f837e4f47dbb
DIST gcc-12.1.0-musl-patches-4.tar.xz 4448 BLAKE2B ddad7bccea7474a0552e069df25e66b4af68470da655aaf7669c2ceca7d0588cebb171e8a949c8935eeadff23af4d3de41d44245c06d48044cfc1d1fadc6540a SHA512 bb3b9e4a81efd2d0ceb405220a9c15453d780d8bc01ed5ebf4837a318e0f8ad8cc36d6ad3f2eed5051bb6dc82f223d8b61321b8f602890a770eefd69c0c144b9
DIST gcc-12.1.0-patches-7.tar.xz 11584 BLAKE2B 4487726f8225d6bb2fde91fce8343c34ebece8cca08b258115a55b0f0c594e3a205efe26738c2b06cb8c6ea9d13b451514e073bb3a94d664a56120d9826515df SHA512 4882754d2f55c8144a5af4bcfbc1ee7802f08fc5acca96151cc6323a98e94b9246a69e067bcbf92dcdb8021499b8e1197cd7bd682876aca3e6f1f63a405c1dae
@@ -12,8 +6,3 @@ DIST gcc-12.2-darwin-r0.tar.gz 131069986 BLAKE2B 42de71c9f0802f1a43e675d3fae7341
DIST gcc-12.2.0-musl-patches-1.tar.xz 3844 BLAKE2B 004432806696f7d0a32366270ac45695e858abee73a255e44dc6e0a225339e4cad40aab0d51dfe9a55d5aa4b4001f5726064bb2eea3212a0874b2d27e229abd7 SHA512 c354edcd641a9dfaf902a0ff4c44c75065d0cf1c36bbf6c3c35c2e23bff22b8f70bcf4458a5a0ef86371e9f2fafca8a54ca822e35820ff442c9458a2819c3606
DIST gcc-12.2.0-patches-1.tar.xz 12864 BLAKE2B a5ae0a85dfc1b6f0bd968f0d5262ebed14ec9cdb3249e3a4c571578c54eda0e53708ee7fe8e03e506366c7f3cf7926eced9b390d9dee948c1249298c0fabd9fb SHA512 f3d793b89a2a0385d596162fb0c653d4acdf21ae418cb792c1786a01fde0391bd0719715dbf07d53636f127168f5cd99108a1dc11cf6cea889b7d82385bcc258
DIST gcc-12.2.0.tar.xz 84645292 BLAKE2B 715574af9ad678f9dc8cfd19c866bf910c7edfd479e7e9681337feaa9b54e5d304ddb85483816b8d89754d502405823ae2eff0d1e444538763f40be8e428d8da SHA512 e9e857bd81bf7a370307d6848c81b2f5403db8c7b5207f54bce3f3faac3bde63445684092c2bc1a2427cddb6f7746496d9fbbef05fbbd77f2810b2998f1f9173
-DIST gcc-8.3.0-patches-1.0.tar.bz2 12278 BLAKE2B 793465c5de0af850c7f3017b3011e68f3bd1664e6ce3500a3dc3003d37c03fe81857698957770a135eadd395a7767fa804d354ecdcdeb1d83623280ca569d4ec SHA512 0efadd2481713992807fed2683666f1094b3757674754601c079569f3ef70cd7aed3cefc9f815f4e59a21d37e4e940c122df714e16f3878a5f966450c4273669
-DIST gcc-8.3.0.tar.xz 63694700 BLAKE2B 71df2ff5bd6874d57519c2e9af6b22152c8c4d7fab906a5f427b41bc4e8e742127592a8684120d9d3c9ce6241439531850be08ec0a4f29dbfdee95435655fdca SHA512 1811337ae3add9680cec64968a2509d085b6dc5b6783fc1e8c295e3e47416196fd1a3ad8dfe7e10be2276b4f62c357659ce2902f239f60a8648548231b4b5802
-DIST gcc-9.2.0-patches-4.tar.bz2 21655 BLAKE2B 2acf6d83ec934a65e77d2079a024b42622e1234f0516f12839f7d03c2f3e1bb275037b020e35ba847d6809d5577ba966619c78345b75355df0a754d02ccf9819 SHA512 114e01a7b08ecb1feab24ef3cfc72c8953748f1526722b80c18602025eef132e2b4c05db59c7a23eb2e7f42ed48eb02d92bcd73b1ca932374d6bedaf89cc66d0
-DIST gcc-9.2.0.tar.xz 70607648 BLAKE2B 41a5e148f9a6857d6599679964c203533f76f330ad527fbe7c5e746d78f6f6f6d6d0f330a67cb1e794e155be8d1cd6e986bcc8a116d620dca410b78f0bcdd453 SHA512 a12dff52af876aee0fd89a8d09cdc455f35ec46845e154023202392adc164848faf8ee881b59b681b696e27c69fd143a214014db4214db62f9891a1c8365c040
-DIST gcc-cygwinports-0de6b2ae6b6577eb0891a7ca8d551bdfa79bf5e8.tar.gz 20183 BLAKE2B dc9a4c78f98851ed77720d4c06d3fbf9f2d7d0e81a825cc89026994060fd29214f111fd3a52cec6518417cab2be89caf4a844a0869136287f174147ca7a6ebf3 SHA512 d01ee85a1327e7f6f16b3c2de6659699764f365215bd3e58247c5c65594153b9232bdc43ff89420cac75ad908ed39c7ff9fa4006818f5dd209b792d34d9ae7de
diff --git a/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch b/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch
deleted file mode 100644
index e49fea61a1..0000000000
--- a/sys-devel/gcc/files/4.0.2/gcc-4.0.2-softfloat.patch
+++ /dev/null
@@ -1,84 +0,0 @@
-The hunk for gcc/config/arm/t-linux comes from:
-http://gcc.gnu.org/PR14352
-
-The rest is a custom job by Yuri Vasilevski.
-
-The idea here is that we add soft float support into the spec file
-so that we don't have to worry about packages stripping out softfloat
-flags from CFLAGS/CXXFLAGS.
-
-http://bugs.gentoo.org/75585
-
---- gcc-4.0.2/gcc/config/arm/elf.h
-+++ gcc-4.0.2/gcc/config/arm/elf.h
-@@ -45,8 +45,9 @@
- #endif
-
- #ifndef SUBTARGET_ASM_FLOAT_SPEC
--#define SUBTARGET_ASM_FLOAT_SPEC "\
--%{mapcs-float:-mfloat}"
-+#define SUBTARGET_ASM_FLOAT_SPEC "%{mapcs-float:-mfloat} \
-+ %{mhard-float:-mfpu=fpa} \
-+ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
- #endif
-
- #ifndef ASM_SPEC
-@@ -58,8 +59,6 @@
- %{mapcs-*:-mapcs-%*} \
- %(subtarget_asm_float_spec) \
- %{mthumb-interwork:-mthumb-interwork} \
--%{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \
--%{mfloat-abi=*} %{mfpu=*} \
- %(subtarget_extra_asm_spec)"
- #endif
-
---- gcc-4.0.2/gcc/config/arm/linux-elf.h
-+++ gcc-4.0.2/gcc/config/arm/linux-elf.h
-@@ -32,18 +32,22 @@
- #endif
-
- #undef TARGET_DEFAULT_FLOAT_ABI
--#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
-+#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
-
-+#undef SUBTARGET_EXTRA_ASM_SPEC
-+#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \
-+ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
-+
- #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
-
- #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
-
- #undef MULTILIB_DEFAULTS
- #define MULTILIB_DEFAULTS \
-- { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mno-thumb-interwork" }
-+ { "marm", TARGET_ENDIAN_OPTION, "msoft-float", "mno-thumb-interwork" }
-
- /* The GNU C++ standard library requires that these macros be defined. */
- #undef CPLUSPLUS_CPP_SPEC
-@@ -56,7 +60,7 @@
- %{shared:-lc} \
- %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
-
--#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
-+#define LIBGCC_SPEC "-lgcc"
-
- /* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
- the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
---- gcc-4.0.2/gcc/config/arm/t-linux
-+++ gcc-4.0.2/gcc/config/arm/t-linux
-@@ -4,7 +4,10 @@ TARGET_LIBGCC2_CFLAGS = -fomit-frame-poi
- LIBGCC2_DEBUG_CFLAGS = -g0
-
- LIB1ASMSRC = arm/lib1funcs.asm
--LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
-+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
-+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
-+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
-+ _fixsfsi _fixunssfsi _floatdidf _floatdisf
-
- # MULTILIB_OPTIONS = mhard-float/msoft-float
- # MULTILIB_DIRNAMES = hard-float soft-float
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
deleted file mode 100644
index 523caa48a3..0000000000
--- a/sys-devel/gcc/files/4.1.0/gcc-4.1.0-cross-compile.patch
+++ /dev/null
@@ -1,40 +0,0 @@
-Some notes on the 'bootstrap with or without libc headers' debate:
-http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html
-http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
-
---- gcc/unwind-dw2.c
-+++ gcc/unwind-dw2.c
-@@ -253,9 +253,11 @@
- }
- #endif
-
-+#ifndef inhibit_libc
- #ifdef MD_UNWIND_SUPPORT
- #include MD_UNWIND_SUPPORT
- #endif
-+#endif
-
- /* Extract any interesting information from the CIE for the translation
- unit F belongs to. Return a pointer to the byte after the augmentation,
---- gcc/configure
-+++ gcc/configure
-@@ -12857,7 +12857,7 @@ then
- | powerpc*-*-*,powerpc64*-*-*)
- CROSS="$CROSS -DNATIVE_CROSS" ;;
- esac
--elif test "x$TARGET_SYSTEM_ROOT" != x; then
-+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
- SYSTEM_HEADER_DIR=$build_system_header_dir
- fi
-
---- gcc/configure.ac
-+++ gcc/configure.ac
-@@ -1717,7 +1717,7 @@ then
- | powerpc*-*-*,powerpc64*-*-*)
- CROSS="$CROSS -DNATIVE_CROSS" ;;
- esac
--elif test "x$TARGET_SYSTEM_ROOT" != x; then
-+elif test "x$TARGET_SYSTEM_ROOT" != x -o $build != $host; then
- SYSTEM_HEADER_DIR=$build_system_header_dir
- fi
-
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
deleted file mode 100644
index 6090d66d13..0000000000
--- a/sys-devel/gcc/files/4.1.0/gcc-4.1.0-fast-math-i386-Os-workaround.patch
+++ /dev/null
@@ -1,64 +0,0 @@
-workaround for lame stack packing on i386 ...
-
- - build gcc with -Os (crtfastmath.o to be specific)
- - crtfastmath.o is installed into gcc libdir
- - run gcc with -ffast-math and get crtfastmath.o linked in
- - resulting compiled app segfaults due to init code in
- crtfastmath.o that has mis-aligned structure on stack
-
-http://bugs.gentoo.org/147020
-http://gcc.gnu.org/PR28621
-
-this is supposed to be fixed in current 4.1 branch, but i'm unable to get
-the fix to work so until i can figure out what i'm doing wrong, we'll use
-this workaround for now.
-
---- gcc-4.1.1/gcc/config/i386/crtfastmath.c
-+++ gcc-4.1.1/gcc/config/i386/crtfastmath.c
-@@ -37,6 +37,23 @@
- #define FXSAVE (1 << 24)
- #define SSE (1 << 25)
-
-+struct
-+{
-+ unsigned short int cwd;
-+ unsigned short int swd;
-+ unsigned short int twd;
-+ unsigned short int fop;
-+ long int fip;
-+ long int fcs;
-+ long int foo;
-+ long int fos;
-+ long int mxcsr;
-+ long int mxcsr_mask;
-+ long int st_space[32];
-+ long int xmm_space[32];
-+ long int padding[56];
-+} __attribute__ ((aligned (16))) fxsave;
-+
- static void __attribute__((constructor))
- set_fast_math (void)
- {
-@@ -75,22 +92,6 @@
- if (edx & FXSAVE)
- {
- /* Check if DAZ is available. */
-- struct
-- {
-- unsigned short int cwd;
-- unsigned short int swd;
-- unsigned short int twd;
-- unsigned short int fop;
-- long int fip;
-- long int fcs;
-- long int foo;
-- long int fos;
-- long int mxcsr;
-- long int mxcsr_mask;
-- long int st_space[32];
-- long int xmm_space[32];
-- long int padding[56];
-- } __attribute__ ((aligned (16))) fxsave;
-
- __builtin_memset (&fxsave, 0, sizeof (fxsave));
-
diff --git a/sys-devel/gcc/files/4.2.2/aix-bnoerok.patch b/sys-devel/gcc/files/4.2.2/aix-bnoerok.patch
deleted file mode 100644
index acd6fd3d5f..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-bnoerok.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-http://gcc.gnu.org/PR46887
-Fix a typo in gcc-local copy of libtool files.
-This is triggered in Prefix only, as elibtoolize enables aix_runtime_linking.
-
---- ltcf-cxx.sh.orig 2010-04-24 15:32:36.894202675 +0200
-+++ ltcf-cxx.sh 2010-04-24 15:33:08.070885742 +0200
-@@ -204,7 +204,7 @@
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- # Warning - without using the other run time loading flags, -berok will
- # link without error, but may produce a broken library.
-- no_undefined_flag=' ${wl}-bnoerok'
-+ no_undefined_flag=' ${wl}-bernotok'
- allow_undefined_flag=' ${wl}-berok'
- # -bexpall does not export symbols beginning with underscore (_)
- always_export_symbols=yes
---- libjava/classpath/ltcf-cxx.sh.orig 2010-04-24 15:32:46.967555111 +0200
-+++ libjava/classpath/ltcf-cxx.sh 2010-04-24 15:33:12.627573175 +0200
-@@ -204,7 +204,7 @@
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- # Warning - without using the other run time loading flags, -berok will
- # link without error, but may produce a broken library.
-- no_undefined_flag=' ${wl}-bnoerok'
-+ no_undefined_flag=' ${wl}-bernotok'
- allow_undefined_flag=' ${wl}-berok'
- # -bexpall does not export symbols beginning with underscore (_)
- always_export_symbols=yes
diff --git a/sys-devel/gcc/files/4.2.2/aix-force-pthread-r1.patch b/sys-devel/gcc/files/4.2.2/aix-force-pthread-r1.patch
deleted file mode 100644
index 0451a91f17..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-force-pthread-r1.patch
+++ /dev/null
@@ -1,42 +0,0 @@
-diff -ru gcc/config/rs6000.orig/t-aix43 gcc/config/rs6000/t-aix43
---- gcc/config/rs6000.orig/t-aix43 2009-04-17 17:06:51 +0200
-+++ gcc/config/rs6000/t-aix43 2009-04-17 17:13:15 +0200
-@@ -46,7 +46,7 @@
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
- @multilib_flags@ @shlib_objs@ -lc \
-- `case @multilib_dir@ in \
-+ `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
- *) echo -lc ;; esac` ; \
- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-@@ -61,7 +61,7 @@
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
--SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
-+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
- SHLIB_NM_FLAGS = -Bpg -X32_64
-diff -ru gcc/config/rs6000.orig/t-aix52 gcc/config/rs6000/t-aix52
---- gcc/config/rs6000.orig/t-aix52 2009-04-17 17:06:50 +0200
-+++ gcc/config/rs6000/t-aix52 2009-04-17 17:13:32 +0200
-@@ -27,7 +27,7 @@
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
- @multilib_flags@ @shlib_objs@ -lc \
-- `case @multilib_dir@ in \
-+ `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
- *) echo -lc ;; esac` ; \
- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-@@ -42,7 +42,7 @@
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
--SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
-+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
- SHLIB_NM_FLAGS = -Bpg -X32_64
diff --git a/sys-devel/gcc/files/4.2.2/aix-force-pthread.patch b/sys-devel/gcc/files/4.2.2/aix-force-pthread.patch
deleted file mode 100644
index fbd3abb62e..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-force-pthread.patch
+++ /dev/null
@@ -1,275 +0,0 @@
-diff -ru gcc/config/rs6000.orig/aix41.h gcc/config/rs6000/aix41.h
---- gcc/config/rs6000.orig/aix41.h 2009-04-17 17:06:51 +0200
-+++ gcc/config/rs6000/aix41.h 2009-04-17 17:10:00 +0200
-@@ -39,7 +39,7 @@
- #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
- %{ansi: -D_ANSI_C_SOURCE}\
- %{mpe: -I/usr/lpp/ppe.poe/include}\
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT MASK_NEW_MNEMONICS
-@@ -63,8 +63,8 @@
- #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
- %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
-- %{!pthread: -lc}"
-+ %{pthread:} -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\
-+ "
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -77,8 +77,8 @@
- %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\
- %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\
- %{!mpe:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC
- and "cror 31,31,31" for POWER architecture. */
-diff -ru gcc/config/rs6000.orig/aix43.h gcc/config/rs6000/aix43.h
---- gcc/config/rs6000.orig/aix43.h 2009-04-17 17:06:51 +0200
-+++ gcc/config/rs6000/aix43.h 2009-04-17 17:10:34 +0200
-@@ -105,7 +105,7 @@
- %{ansi: -D_ANSI_C_SOURCE}\
- %{maix64: -D__64BIT__}\
- %{mpe: -I/usr/lpp/ppe.poe/include}\
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. */
-@@ -114,7 +114,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT MASK_NEW_MNEMONICS
-@@ -139,8 +139,8 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
-- %{!pthread:-lc}"
-+ %{pthread:}-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\
-+ "
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -152,8 +152,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX 4.3 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix51.h gcc/config/rs6000/aix51.h
---- gcc/config/rs6000.orig/aix51.h 2009-04-17 17:06:51 +0200
-+++ gcc/config/rs6000/aix51.h 2009-04-17 17:10:56 +0200
-@@ -101,7 +101,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. */
-@@ -110,7 +110,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT MASK_NEW_MNEMONICS
-@@ -135,7 +135,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -147,8 +147,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix52.h gcc/config/rs6000/aix52.h
---- gcc/config/rs6000.orig/aix52.h 2009-04-17 17:06:50 +0200
-+++ gcc/config/rs6000/aix52.h 2009-04-17 17:11:15 +0200
-@@ -99,7 +99,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. Synchronize with libstdc++ os_defines.h. */
-@@ -108,7 +108,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
-@@ -137,7 +137,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -149,8 +149,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix61.h gcc/config/rs6000/aix61.h
---- gcc/config/rs6000.orig/aix61.h 2009-04-17 17:06:51 +0200
-+++ gcc/config/rs6000/aix61.h 2009-04-17 17:11:32 +0200
-@@ -102,7 +102,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. Synchronize with libstdc++ os_defines.h. */
-@@ -111,7 +111,7 @@
- "-D_ALL_SOURCE -D__COMPATMATH__ \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
-@@ -140,7 +140,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -152,8 +152,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/t-aix43 gcc/config/rs6000/t-aix43
---- gcc/config/rs6000.orig/t-aix43 2009-04-17 17:06:51 +0200
-+++ gcc/config/rs6000/t-aix43 2009-04-17 17:13:15 +0200
-@@ -10,13 +10,13 @@
- echo '#define FLOAT' > fp-bit.c
- cat $(srcdir)/config/fp-bit.c >> fp-bit.c
-
--# Build the libraries for pthread and all of the
-+# Build the libraries for all of the
- # different processor models
-
--MULTILIB_OPTIONS = pthread \
-+MULTILIB_OPTIONS = \
- mcpu=common/mcpu=power/mcpu=powerpc/maix64
-
--MULTILIB_DIRNAMES = pthread \
-+MULTILIB_DIRNAMES = \
- common power powerpc ppc64
-
- MULTILIB_MATCHES = mcpu?power=mcpu?power \
-@@ -46,7 +46,7 @@
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
- @multilib_flags@ @shlib_objs@ -lc \
-- `case @multilib_dir@ in \
-+ `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
- *) echo -lc ;; esac` ; \
- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-@@ -61,7 +61,7 @@
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
--SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
-+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
- SHLIB_NM_FLAGS = -Bpg -X32_64
-diff -ru gcc/config/rs6000.orig/t-aix52 gcc/config/rs6000/t-aix52
---- gcc/config/rs6000.orig/t-aix52 2009-04-17 17:06:50 +0200
-+++ gcc/config/rs6000/t-aix52 2009-04-17 17:13:32 +0200
-@@ -10,12 +10,12 @@
- echo '#define FLOAT' > fp-bit.c
- cat $(srcdir)/config/fp-bit.c >> fp-bit.c
-
--# Build the libraries for pthread and all of the
-+# Build the libraries for all of the
- # different processor models
-
--MULTILIB_OPTIONS = pthread maix64
-+MULTILIB_OPTIONS = maix64
-
--MULTILIB_DIRNAMES = pthread ppc64
-+MULTILIB_DIRNAMES = ppc64
-
- MULTILIB_MATCHES =
-
-@@ -27,7 +27,7 @@
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
- @multilib_flags@ @shlib_objs@ -lc \
-- `case @multilib_dir@ in \
-+ `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
- *) echo -lc ;; esac` ; \
- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-@@ -42,7 +42,7 @@
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
--SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
-+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
- SHLIB_NM_FLAGS = -Bpg -X32_64
diff --git a/sys-devel/gcc/files/4.2.2/aix-libssp.patch b/sys-devel/gcc/files/4.2.2/aix-libssp.patch
deleted file mode 100644
index df8bfafda9..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-libssp.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-When locked to GCC, Stack Smashing Protector works well on AIX.
-
---- gcc-4.2.4/configure.in
-+++ gcc-4.2.4/configure.in
-@@ -686,7 +686,7 @@
- ;;
- powerpc-*-aix*)
- # copied from rs6000-*-* entry
-- noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
-+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
- ;;
- powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
- target_configdirs="$target_configdirs target-winsup"
---- gcc-4.2.4/configure
-+++ gcc-4.2.4/configure
-@@ -1529,7 +1529,7 @@
- ;;
- powerpc-*-aix*)
- # copied from rs6000-*-* entry
-- noconfigdirs="$noconfigdirs gprof target-libgloss target-libssp ${libgcj}"
-+ noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
- ;;
- powerpc*-*-winnt* | powerpc*-*-pe* | ppc*-*-pe)
- target_configdirs="$target_configdirs target-winsup"
diff --git a/sys-devel/gcc/files/4.2.2/aix-lineno.patch b/sys-devel/gcc/files/4.2.2/aix-lineno.patch
deleted file mode 100644
index 9697bc575d..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-lineno.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-2010-11-30 Olivier Hainque <hainque@adacore.com>
- Michael Haubenwallner <michael.haubenwallner@salomon.at>
-
- PR target/46655
- * xcoffout.c (ASM_OUTPUT_LINE): Output line as unsigned,
- when line > 0, and line <= USHRT_MAX in 32bit mode.
-
---- gcc/xcoffout.c.orig 2010-11-30 14:46:44 +0100
-+++ gcc/xcoffout.c 2010-11-30 15:04:21 +0100
-@@ -80,8 +80,18 @@
- #define ASM_OUTPUT_LINE(FILE,LINENUM) \
- do \
- { \
-+ /* Make sure we're in a function and prevent output of .line 0, as \
-+ line # 0 is meant for symbol addresses in Xcoff. We could get \
-+ this for insns which inherited BUILTINS_LOCATION or the function \
-+ decl location somehow, typically created post-gimplification for \
-+ statements inserted by some optimizers. \
-+ Additionally, line numbers are 'unsigned short' in 32bit mode. */ \
- if (xcoff_begin_function_line >= 0) \
-- fprintf (FILE, "\t.line\t%d\n", ABS_OR_RELATIVE_LINENO (LINENUM)); \
-+ { \
-+ unsigned int lno = ABS_OR_RELATIVE_LINENO (LINENUM); \
-+ if (lno > 0 && (TARGET_64BIT || lno <= USHRT_MAX)) \
-+ fprintf (FILE, "\t.line\t%u\n", lno); \
-+ } \
- } \
- while (0)
-
diff --git a/sys-devel/gcc/files/4.2.2/aix-minimal-toc.patch b/sys-devel/gcc/files/4.2.2/aix-minimal-toc.patch
deleted file mode 100644
index 251fa6ec95..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-minimal-toc.patch
+++ /dev/null
@@ -1,20 +0,0 @@
-gdb breaks when -bbigtoc linker flag is necessary.
-C++ exception handling breaks when libstdc++ and/or libgcc_s
-is built with -mminimal-toc.
-
-http://bugs.gentoo.org/show_bug.cgi?id=266483
-So reduce TOC size, but avoid -mminimal-toc.
-
---- gcc-4.2.4/gcc/config/rs6000/rs6000.c.orig 2011-06-20 16:01:28 +0200
-+++ gcc-4.2.4/gcc/config/rs6000/rs6000.c 2011-06-20 16:04:53 +0200
-@@ -1229,6 +1229,10 @@
- | MASK_DLMZB)
- };
-
-+ /* gdb breaks when -bbigtoc linker flag is necessary */
-+ TARGET_NO_FP_IN_TOC = 1;
-+ TARGET_NO_SUM_IN_TOC = 1;
-+
- rs6000_init_hard_regno_mode_ok ();
-
- set_masks = POWER_MASKS | POWERPC_MASKS | MASK_SOFT_FLOAT;
diff --git a/sys-devel/gcc/files/4.2.2/aix-pr46072.patch b/sys-devel/gcc/files/4.2.2/aix-pr46072.patch
deleted file mode 100644
index a58b3a54e2..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-pr46072.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-http://gcc.gnu.org/PR46072 is necessary to support AIX5.3 TL12
-
-*** gcc-4.2.4/gcc/xcoffout.h.orig Tue Jan 25 21:17:54 2011
---- gcc-4.2.4/gcc/xcoffout.h Tue Jan 25 21:18:16 2011
-***************
-*** 42,51 ****
-
- #define DBX_STATIC_BLOCK_START(ASMFILE,CODE) \
- { \
-! if ((CODE) == N_STSYM) \
- fprintf ((ASMFILE), "\t.bs\t%s[RW]\n", xcoff_private_data_section_name);\
-- else if ((CODE) == N_LCSYM) \
-- fprintf ((ASMFILE), "\t.bs\t%s\n", xcoff_bss_section_name); \
- }
-
- /* For static variables, output code to define the end of a static block. */
---- 42,49 ----
-
- #define DBX_STATIC_BLOCK_START(ASMFILE,CODE) \
- { \
-! if ((CODE) == N_STSYM || (CODE) == N_LCSYM) \
- fprintf ((ASMFILE), "\t.bs\t%s[RW]\n", xcoff_private_data_section_name);\
- }
-
- /* For static variables, output code to define the end of a static block. */
diff --git a/sys-devel/gcc/files/4.2.2/aix-runtimelinking-r1.patch b/sys-devel/gcc/files/4.2.2/aix-runtimelinking-r1.patch
deleted file mode 100644
index 21c07a7136..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-runtimelinking-r1.patch
+++ /dev/null
@@ -1,46 +0,0 @@
-For collect2, take -G and -bsvr4 to change library-extension search order to
-what -brtl does. Also, take -bnortl to disable -brtl mode. Upstream report is
-https://gcc.gnu.org/ml/gcc-patches/2013-02/msg00104.html
-
-For collect2, ignore shared archive members with the F_LOADONLY flag.
-
-diff -ruN gcc-4.2.4/gcc/collect2.c /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/collect2.c
---- gcc-4.2.4/gcc/collect2.c 2007-12-31 17:04:26 +0100
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/collect2.c 2014-06-30 15:51:22 +0200
-@@ -1068,8 +1068,15 @@
- export_flag = 1;
- else if (arg[2] == '6' && arg[3] == '4')
- aix64_flag = 1;
-- else if (arg[2] == 'r' && arg[3] == 't' && arg[4] == 'l')
-- aixrtl_flag = 1;
-+ else if (arg[2] == 'r' && arg[3] == 't' && arg[4] == 'l' && arg[5] == '\0')
-+ aixrtl_flag = 1; /* -brtl enables (but not -brtllib) */
-+ else if (arg[2] == 'n' && arg[3] == 'o' && arg[4] == 'r' && arg[5] == 't' && arg[6] == 'l' && arg[7] == '\0')
-+ aixrtl_flag = 0; /* -bnortl disables (but not -bnortllib) */
-+ else if (arg[2] == 's' && arg[3] == 'v' && arg[4] == 'r' && arg[5] == '4')
-+ aixrtl_flag = 1; /* -bsvr4 enables -brtl too */
-+ break;
-+ case 'G':
-+ aixrtl_flag = 1; /* -G enables -brtl too */
- break;
- #endif
-
-@@ -2322,12 +2329,14 @@
- /* 0757 = U803XTOCMAGIC (AIX 4.3) and 0767 = U64_TOCMAGIC (AIX V5) */
- #ifdef _AIX51
- # define GCC_CHECK_HDR(X) \
-- ((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-- || (HEADER (X).f_magic == 0767 && aix64_flag))
-+ (((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-+ || (HEADER (X).f_magic == 0767 && aix64_flag)) \
-+ && !(HEADER (X).f_flags & F_LOADONLY))
- #else
- # define GCC_CHECK_HDR(X) \
-- ((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-- || (HEADER (X).f_magic == 0757 && aix64_flag))
-+ (((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-+ || (HEADER (X).f_magic == 0757 && aix64_flag)) \
-+ && !(HEADER (X).f_flags & F_LOADONLY))
- #endif
-
- #endif
diff --git a/sys-devel/gcc/files/4.2.2/aix-runtimelinking.patch b/sys-devel/gcc/files/4.2.2/aix-runtimelinking.patch
deleted file mode 100644
index 499c85c5e3..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-runtimelinking.patch
+++ /dev/null
@@ -1,113 +0,0 @@
-Set '-brtl' for executables, to allow overriding shared library symbol
-definitions with local symbol definitions - this is called runtime-linking.
-Even if that usually is a hack, it is the only option with SVR4/ELF/Linux.
-This requires shared libraries to be linked with '-bnosymbolic':
-Using -G is recommended to mimic SVR4 behaviour as good as possible.
-
-Better not use '-bexpfull', may trigger this AIX 7.1 kernel problem:
-https://www-304.ibm.com/support/docview.wss?uid=isg1IV39558
-Use '-bexpall' instead, even if that won't export symbol names with leading _.
-Actually, '-bexpall' is more similar to SVR4/ELF except for the leading _.
-
-For collect2, take -G and -bsvr4 to change library-extension search order to
-what -brtl does. Also, take -bnortl to disable -brtl mode. Upstream report is
-https://gcc.gnu.org/ml/gcc-patches/2013-02/msg00104.html
-
-For collect2, ignore shared archive members with the F_LOADONLY flag.
-
-diff -ruN gcc-4.2.4/gcc/config/rs6000/aix43.h /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix43.h
---- gcc-4.2.4/gcc/config/rs6000/aix43.h 2014-07-01 09:07:24 +0200
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix43.h 2014-06-30 15:51:22 +0200
-@@ -143,8 +143,8 @@
- "
-
- #undef LINK_SPEC
--#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-- %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
-+#define LINK_SPEC "%{!shared:-brtl -bexpall} -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-+ %{static:-bnso %(link_syscalls) } %{shared:-G -bernotok %{!e:-bnoentry}}\
- %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
- %{mpe:-binitfini:poe_remote_main}"
-
-diff -ruN gcc-4.2.4/gcc/config/rs6000/aix51.h /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix51.h
---- gcc-4.2.4/gcc/config/rs6000/aix51.h 2014-07-01 09:07:24 +0200
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix51.h 2014-06-30 15:51:22 +0200
-@@ -138,8 +138,8 @@
- %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
--#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-- %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
-+#define LINK_SPEC "%{!shared:-brtl -bexpall} -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-+ %{static:-bnso %(link_syscalls) } %{shared:-G -bernotok %{!e:-bnoentry}}\
- %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
- %{mpe:-binitfini:poe_remote_main}"
-
-diff -ruN gcc-4.2.4/gcc/config/rs6000/aix52.h /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix52.h
---- gcc-4.2.4/gcc/config/rs6000/aix52.h 2014-07-01 09:07:24 +0200
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix52.h 2014-06-30 15:51:22 +0200
-@@ -140,8 +140,8 @@
- %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
--#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-- %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
-+#define LINK_SPEC "%{!shared:-brtl -bexpall} -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-+ %{static:-bnso %(link_syscalls) } %{shared:-G -bernotok %{!e:-bnoentry}}\
- %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
- %{mpe:-binitfini:poe_remote_main}"
-
-diff -ruN gcc-4.2.4/gcc/config/rs6000/aix61.h /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix61.h
---- gcc-4.2.4/gcc/config/rs6000/aix61.h 2014-07-01 09:07:24 +0200
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/config/rs6000/aix61.h 2014-06-30 15:51:24 +0200
-@@ -143,8 +143,8 @@
- %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
--#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-- %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
-+#define LINK_SPEC "%{!shared:-brtl -bexpall} -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-+ %{static:-bnso %(link_syscalls) } %{shared:-G -bernotok %{!e:-bnoentry}}\
- %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
- %{mpe:-binitfini:poe_remote_main}"
-
-diff -ruN gcc-4.2.4/gcc/collect2.c /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/collect2.c
---- gcc-4.2.4/gcc/collect2.c 2007-12-31 17:04:26 +0100
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/gcc/collect2.c 2014-06-30 15:51:22 +0200
-@@ -1068,8 +1068,15 @@
- export_flag = 1;
- else if (arg[2] == '6' && arg[3] == '4')
- aix64_flag = 1;
-- else if (arg[2] == 'r' && arg[3] == 't' && arg[4] == 'l')
-- aixrtl_flag = 1;
-+ else if (arg[2] == 'r' && arg[3] == 't' && arg[4] == 'l' && arg[5] == '\0')
-+ aixrtl_flag = 1; /* -brtl enables (but not -brtllib) */
-+ else if (arg[2] == 'n' && arg[3] == 'o' && arg[4] == 'r' && arg[5] == 't' && arg[6] == 'l' && arg[7] == '\0')
-+ aixrtl_flag = 0; /* -bnortl disables (but not -bnortllib) */
-+ else if (arg[2] == 's' && arg[3] == 'v' && arg[4] == 'r' && arg[5] == '4')
-+ aixrtl_flag = 1; /* -bsvr4 enables -brtl too */
-+ break;
-+ case 'G':
-+ aixrtl_flag = 1; /* -G enables -brtl too */
- break;
- #endif
-
-@@ -2322,12 +2329,14 @@
- /* 0757 = U803XTOCMAGIC (AIX 4.3) and 0767 = U64_TOCMAGIC (AIX V5) */
- #ifdef _AIX51
- # define GCC_CHECK_HDR(X) \
-- ((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-- || (HEADER (X).f_magic == 0767 && aix64_flag))
-+ (((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-+ || (HEADER (X).f_magic == 0767 && aix64_flag)) \
-+ && !(HEADER (X).f_flags & F_LOADONLY))
- #else
- # define GCC_CHECK_HDR(X) \
-- ((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-- || (HEADER (X).f_magic == 0757 && aix64_flag))
-+ (((HEADER (X).f_magic == U802TOCMAGIC && ! aix64_flag) \
-+ || (HEADER (X).f_magic == 0757 && aix64_flag)) \
-+ && !(HEADER (X).f_flags & F_LOADONLY))
- #endif
-
- #endif
diff --git a/sys-devel/gcc/files/4.2.2/aix-soname.patch b/sys-devel/gcc/files/4.2.2/aix-soname.patch
deleted file mode 100644
index 237959a9d6..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix-soname.patch
+++ /dev/null
@@ -1,132 +0,0 @@
-Create gcc libraries with full "soname" support on AIX,
-utilizing the ld-wrapper handling the '-soname' flag.
-
-http://bugs.gentoo.org/show_bug.cgi?id=213277
-
---- gcc-4.2.4/config.rpath
-+++ gcc-4.2.4/config.rpath
-@@ -204,7 +204,7 @@
- # have to do anything special.
- aix_use_runtimelinking=no
- else
-- aix_use_runtimelinking=no
-+ aix_use_runtimelinking=yes
- # Test if we are trying to use run time linking or normal
- # AIX style linking. If -brtl is somewhere in LDFLAGS, we
- # need to do runtime linking.
---- gcc-4.2.4/ltcf-c.sh
-+++ gcc-4.2.4/ltcf-c.sh
-@@ -325,7 +325,7 @@
- else
- # Test if we are trying to use run time linking, or normal AIX style linking.
- # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
-- aix_use_runtimelinking=no
-+ aix_use_runtimelinking=yes
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
- aix_use_runtimelinking=yes
-@@ -342,7 +342,7 @@
- # link without error, but may produce a broken library.
- allow_undefined_flag=' ${wl}-berok'
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
-- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
-+ archive_expsym_cmds="\$CC \${wl}-brtl $shared_flag"' -o $output_objdir/$realname ${wl}-soname "${wl}$soname" $libobjs $deplibs $compiler_flags ${allow_undefined_flag} ${wl}-bernotok '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- if test "$host_cpu" = ia64; then
- if test $with_gnu_ld = no; then
---- gcc-4.2.4/ltcf-cxx.sh
-+++ gcc-4.2.4/ltcf-cxx.sh
-@@ -176,7 +176,7 @@
- else
- # Test if we are trying to use run time linking, or normal AIX style linking.
- # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
-- aix_use_runtimelinking=no
-+ aix_use_runtimelinking=yes
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
- aix_use_runtimelinking=yes
-@@ -192,7 +192,7 @@
- if test "$aix_use_runtimelinking" = yes; then
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
- allow_undefined_flag=' -Wl,-G'
-- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}-brtl \${wl}$exp_sym_flag:\$export_symbols"
-+ archive_expsym_cmds="\$CC \${wl}-brtl $shared_flag"' -o $output_objdir/$realname ${wl}-soname "${wl}$soname" $libobjs $deplibs $compiler_flags ${allow_undefined_flag} ${wl}-bernotok '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- if test "$host_cpu" = ia64; then
- if test $with_gnu_ld = no; then
---- gcc-4.2.4/ltcf-gcj.sh
-+++ gcc-4.2.4/ltcf-gcj.sh
-@@ -324,7 +324,7 @@
- else
- # Test if we are trying to use run time linking, or normal AIX style linking.
- # If -brtl is somewhere in LDFLAGS, we need to do run time linking.
-- aix_use_runtimelinking=no
-+ aix_use_runtimelinking=yes
- for ld_flag in $LDFLAGS; do
- if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl" ); then
- aix_use_runtimelinking=yes
-@@ -341,7 +341,7 @@
- # link without error, but may produce a broken library.
- allow_undefined_flag=' ${wl}-berok'
- hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
-- archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
-+ archive_expsym_cmds="\$CC \${wl}-brtl $shared_flag"' -o $output_objdir/$realname ${wl}-soname "${wl}$soname" $libobjs $deplibs $compiler_flags ${allow_undefined_flag} ${wl}-bernotok '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
- else
- if test "$host_cpu" = ia64; then
- if test $with_gnu_ld = no; then
---- gcc-4.2.4/ltconfig
-+++ gcc-4.2.4/ltconfig
-@@ -1005,6 +1005,7 @@
- # If using run time linking (on AIX 4.2 or later) use lib<name>.so instead of
- # lib<name>.a to let people know that these are not typical AIX shared libraries.
- library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
-+ soname_spec='${libname}${release}${shared_ext}$major(shr.o)'
- else
- # We preserve .a as extension for shared libraries though AIX4.2
- # and later when we are not doing run time linking.
---- gcc-4.2.4/gcc/config/rs6000/t-aix52
-+++ gcc-4.2.4/gcc/config/rs6000/t-aix52
-@@ -23,25 +23,32 @@
- INSTALL_LIBGCC = install-multilib
-
- # Build a shared libgcc library.
--SHLIB_EXT = .a
-+SHLIB_EXT = .so
-+SHLIB_SOLINK = @shlib_base_name@.so
-+SHLIB_SOVERSION = 1
-+SHLIB_SONAME = @shlib_base_name@.so.$(SHLIB_SOVERSION)
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
-- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
-+ -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/$(SHLIB_SONAME).tmp "-Wl,-soname=$(SHLIB_SONAME)(shr.o)" -Wl,-bernotok \
- @multilib_flags@ @shlib_objs@ -lc \
- `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
-- *) echo -lc ;; esac` ; \
-- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-- $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
-- @multilib_dir@/shr.o ; \
-- mv @multilib_dir@/tmp-@shlib_base_name@.a \
-- @multilib_dir@/@shlib_base_name@.a ; \
-- rm -f @multilib_dir@/shr.o
-+ *) echo -lc ;; esac` && \
-+ rm -f @multilib_dir@/$(SHLIB_SOLINK) && \
-+ if [ -f @multilib_dir@/$(SHLIB_SONAME) ]; then \
-+ mv -f @multilib_dir@/$(SHLIB_SONAME) \
-+ @multilib_dir@/$(SHLIB_SONAME).backup; \
-+ else true; fi && \
-+ mv @multilib_dir@/$(SHLIB_SONAME).tmp @multilib_dir@/$(SHLIB_SONAME) && \
-+ $(LN_S) $(SHLIB_SONAME) @multilib_dir@/$(SHLIB_SOLINK)
- # $(slibdir) double quoted to protect it from expansion while building
- # libgcc.mk. We want this delayed until actual install time.
- SHLIB_INSTALL = \
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
-- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
-- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
-+ $(INSTALL_DATA) @multilib_dir@/$(SHLIB_SONAME) \
-+ $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/$(SHLIB_SONAME); \
-+ rm -f $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/$(SHLIB_SOLINK); \
-+ $(LN_S) $(SHLIB_SONAME) \
-+ $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/$(SHLIB_SOLINK)
- SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
diff --git a/sys-devel/gcc/files/4.2.2/aix61-longdouble64.patch b/sys-devel/gcc/files/4.2.2/aix61-longdouble64.patch
deleted file mode 100644
index a082e8f36b..0000000000
--- a/sys-devel/gcc/files/4.2.2/aix61-longdouble64.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-Switching long double from 64 to 128 bit with aix6.1 was based on an old bug
-in AIX libc, which can not really be fixed due to backwards compatibility,
-just worked around in math.h. The default for long double still is 64bit.
-http://gcc.gnu.org/PR46481
-
---- gcc/config/rs6000/aix61.h.orig 2010-11-15 12:59:04.008438153 +0100
-+++ gcc/config/rs6000/aix61.h 2010-11-15 12:59:43.801763387 +0100
-@@ -193,4 +193,5 @@
- /* This target uses the aix64.opt file. */
- #define TARGET_USES_AIX64_OPT 1
-
--#define RS6000_DEFAULT_LONG_DOUBLE_SIZE 128
-+/* keep default 64bit for 'long double': PR46481 */
-+#define RS6000_DEFAULT_LONG_DOUBLE_SIZE 64
diff --git a/sys-devel/gcc/files/4.2.2/gentoo-fixincludes.patch b/sys-devel/gcc/files/4.2.2/gentoo-fixincludes.patch
deleted file mode 100644
index c1a43032a6..0000000000
--- a/sys-devel/gcc/files/4.2.2/gentoo-fixincludes.patch
+++ /dev/null
@@ -1,29 +0,0 @@
---- fixincludes/fixfixes.c.orig 2007-12-17 11:58:31.577356750 +0100
-+++ fixincludes/fixfixes.c 2007-12-17 12:02:51.077574500 +0100
-@@ -586,18 +586,25 @@
- {
- tSCC z_no_wrap_pat[] = "^#if.*__need_";
- static regex_t no_wrapping_re; /* assume zeroed data */
-+ tSCC z_no_wrap_pat_gentoo[] = "^ *# *include *<gentoo-multilib/";
-+ static regex_t no_wrapping_re_gentoo; /* assume zeroed data */
-
- tCC* pz_name = NULL;
-
- if (no_wrapping_re.allocated == 0)
- compile_re( z_no_wrap_pat, &no_wrapping_re, 0, "no-wrap pattern",
- "wrap-fix" );
-+ if (no_wrapping_re_gentoo.allocated == 0)
-+ compile_re( z_no_wrap_pat_gentoo, &no_wrapping_re_gentoo, 0, "no-wrap pattern (gentoo)",
-+ "wrap-fix (gentoo)" );
-
- /*
- * IF we do *not* match the no-wrap re, then we have a double negative.
- * A double negative means YES.
- */
-- if (xregexec( &no_wrapping_re, text, 0, NULL, 0 ) != 0)
-+ if (xregexec( &no_wrapping_re, text, 0, NULL, 0 ) != 0
-+ && xregexec( &no_wrapping_re_gentoo, text, 0, NULL, 0) != 0
-+ )
- {
- /*
- * A single file can get wrapped more than once by different fixes.
diff --git a/sys-devel/gcc/files/4.2.2/interix-3.5-x86.patch b/sys-devel/gcc/files/4.2.2/interix-3.5-x86.patch
deleted file mode 100644
index 1b73b33ae7..0000000000
--- a/sys-devel/gcc/files/4.2.2/interix-3.5-x86.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- gcc-4.2.2.orig/gcc/config/x-interix Thu Jan 24 15:42:18 2008
-+++ gcc-4.2.2/gcc/config/x-interix Thu Jan 24 15:46:03 2008
-@@ -1,3 +1,7 @@
- # Existing CC/GCC may not define -D__INTERIX, so need this here.
- # Since we want to configure with _ALL_SOURCE, we need to build that way too
--X_CFLAGS= -D__INTERIX -D_ALL_SOURCE
-+
-+# this is commented out now, since it makes gcc 4.2.2 fail bootstrap on
-+# interix 3.5 (x-interix is only added on 3.5, but not on any newer one).
-+# this assumes gcc is built using another gcc (3.3 on interix), not cc!
-+# X_CFLAGS= -D__INTERIX -D_ALL_SOURCE
diff --git a/sys-devel/gcc/files/4.2.2/interix-x86.patch.bz2 b/sys-devel/gcc/files/4.2.2/interix-x86.patch.bz2
deleted file mode 100644
index 93c2a64025..0000000000
--- a/sys-devel/gcc/files/4.2.2/interix-x86.patch.bz2
+++ /dev/null
Binary files differ
diff --git a/sys-devel/gcc/files/4.2.2/pr26189-pa.patch b/sys-devel/gcc/files/4.2.2/pr26189-pa.patch
deleted file mode 100644
index 406c4d9cf4..0000000000
--- a/sys-devel/gcc/files/4.2.2/pr26189-pa.patch
+++ /dev/null
@@ -1,24 +0,0 @@
-http://gcc.gnu.org/PR26198 applies for hppa-hpux too, not just ia64-hpux.
---- gcc-4.2.4/fixincludes/inclhack.def.orig 2009-12-15 14:55:53.768807045 +0100
-+++ gcc-4.2.4/fixincludes/inclhack.def 2009-12-15 14:56:07.565551263 +0100
-@@ -1770,7 +1770,8 @@
- fix = {
- hackname = hpux_spu_info;
- mach = "*-hp-hpux*";
-- files = ia64/sys/getppdp.h;
-+ files = "ia64/sys/getppdp.h";
-+ files = "pa/sys/getppdp.h";
- select = "^.*extern.*spu_info.*";
-
- c_fix = format;
---- gcc-4.2.4/fixincludes/fixincl.x.orig 2009-12-15 14:55:50.232151517 +0100
-+++ gcc-4.2.4/fixincludes/fixincl.x 2009-12-15 14:56:09.000000000 +0100
-@@ -3002,7 +3002,7 @@
- * File name selection pattern
- */
- tSCC zHpux_Spu_InfoList[] =
-- "|ia64/sys/getppdp.h|";
-+ "|ia64/sys/getppdp.h|pa/sys/getppdp.h|";
- /*
- * Machine/OS name selection pattern
- */
diff --git a/sys-devel/gcc/files/4.2.2/pr31899.patch b/sys-devel/gcc/files/4.2.2/pr31899.patch
deleted file mode 100644
index 9cbdfa2c1e..0000000000
--- a/sys-devel/gcc/files/4.2.2/pr31899.patch
+++ /dev/null
@@ -1,66 +0,0 @@
-2007-10-01 Richard Guenther <rguenther@suse.de>
-
- * dwarf2out.c (reference_to_unused): Disable sanity checking.
-
- * g++.dg/debug/using3.C: New testcase.
-
-Index: gcc/dwarf2out.c
-===================================================================
-*** gcc/dwarf2out.c.orig Mon Sep 24 11:17:10 2007
---- gcc/dwarf2out.c Mon Jan 14 11:02:28 2008
-***************
-*** 10005,10020 ****
- return *tp;
- else if (!flag_unit_at_a_time)
- return NULL_TREE;
- else if (!cgraph_global_info_ready
- && (TREE_CODE (*tp) == VAR_DECL || TREE_CODE (*tp) == FUNCTION_DECL))
- gcc_unreachable ();
-! else if (DECL_P (*tp) && TREE_CODE (*tp) == VAR_DECL)
- {
- struct cgraph_varpool_node *node = cgraph_varpool_node (*tp);
- if (!node->needed)
- return *tp;
- }
-! else if (DECL_P (*tp) && TREE_CODE (*tp) == FUNCTION_DECL
- && (!DECL_EXTERNAL (*tp) || DECL_DECLARED_INLINE_P (*tp)))
- {
- struct cgraph_node *node = cgraph_node (*tp);
---- 10005,10026 ----
- return *tp;
- else if (!flag_unit_at_a_time)
- return NULL_TREE;
-+ /* ??? The C++ FE emits debug information for using decls, so this
-+ sanity check falls over. See PR31899. */
-+ #if 0
- else if (!cgraph_global_info_ready
- && (TREE_CODE (*tp) == VAR_DECL || TREE_CODE (*tp) == FUNCTION_DECL))
- gcc_unreachable ();
-! #endif
-! else if (cgraph_global_info_ready
-! && DECL_P (*tp) && TREE_CODE (*tp) == VAR_DECL)
- {
- struct cgraph_varpool_node *node = cgraph_varpool_node (*tp);
- if (!node->needed)
- return *tp;
- }
-! else if (cgraph_global_info_ready
-! && DECL_P (*tp) && TREE_CODE (*tp) == FUNCTION_DECL
- && (!DECL_EXTERNAL (*tp) || DECL_DECLARED_INLINE_P (*tp)))
- {
- struct cgraph_node *node = cgraph_node (*tp);
-Index: gcc/testsuite/g++.dg/debug/using3.C
-===================================================================
-*** gcc/testsuite/g++.dg/debug/using3.C (revision 0)
---- gcc/testsuite/g++.dg/debug/using3.C (revision 0)
-***************
-*** 0 ****
---- 1,8 ----
-+ // PR debug/31899
-+
-+ namespace NS {
-+ int x = 0;
-+ int &ref = x;
-+ }
-+
-+ using NS::ref;
diff --git a/sys-devel/gcc/files/4.2.2/prefix-search-dirs.patch b/sys-devel/gcc/files/4.2.2/prefix-search-dirs.patch
deleted file mode 100644
index 74e05ea194..0000000000
--- a/sys-devel/gcc/files/4.2.2/prefix-search-dirs.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- gcc/gcc.c.orig 2009-03-25 19:20:50 +0100
-+++ gcc/gcc.c 2009-03-26 00:37:23 +0100
-@@ -1525,8 +1525,8 @@ static const char *gcc_libexec_prefix;
- #endif
-
- static const char *const standard_exec_prefix = STANDARD_EXEC_PREFIX;
--static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/";
--static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/";
-+static const char *const standard_exec_prefix_1 = "@GENTOO_PORTAGE_EPREFIX@/usr/libexec/gcc/";
-+static const char *const standard_exec_prefix_2 = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/";
- static const char *md_exec_prefix = MD_EXEC_PREFIX;
-
- static const char *md_startfile_prefix = MD_STARTFILE_PREFIX;
-@@ -2584,6 +2584,34 @@ add_to_obstack (char *path, void *data)
- {
- struct add_to_obstack_info *info = data;
-
-+#if DISABLE_MULTILIB
-+ /*
-+ * Fix multilib paths for our prefix, that is alter lib64 and lib32 to lib.
-+ * No allocation needed, since the path won't grow but only shrink by two
-+ * chars. We should not modify host multilib dirs, otherwise libs might not
-+ * be found in /lib64 or /usr/lib64
-+ */
-+ int elen = strlen("@GENTOO_PORTAGE_EPREFIX@");
-+ if (strncmp(path, "@GENTOO_PORTAGE_EPREFIX@", elen) == 0) {
-+ /* multilib dirs are put at the end like ../lib32/ ../lib64/ */
-+ static char const *mdirs[] = { "../lib64/", "../lib32/" };
-+ int plen = strlen(path);
-+ unsigned int idx;
-+ int mlen;
-+
-+ /* For each path replace the multilib dir at the end of the path. */
-+ for (idx = 0; idx < (sizeof(mdirs) / sizeof(mdirs[0])); idx++) {
-+ mlen = strlen(mdirs[idx]);
-+ if (strncmp(path + plen - mlen, mdirs[idx], mlen) == 0) {
-+ /* Overwrite the part with null-termination. In prefix the only multilib
-+ occurence is the one added by gcc so we can end here. */
-+ strcpy(path + plen - mlen, "../lib/");
-+ break;
-+ }
-+ }
-+ }
-+#endif
-+
- if (info->check_dir && !is_directory (path, false))
- return NULL;
-
diff --git a/sys-devel/gcc/files/4.2.2/ro-string.patch b/sys-devel/gcc/files/4.2.2/ro-string.patch
deleted file mode 100644
index 1541e152ef..0000000000
--- a/sys-devel/gcc/files/4.2.2/ro-string.patch
+++ /dev/null
@@ -1,109 +0,0 @@
-https://gcc.gnu.org/ml/gcc-patches/2012-08/msg01938.html
-
-diff -ruN gcc-4.2.4/libstdc++-v3/include/bits/basic_string.h /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/libstdc++-v3/include/bits/basic_string.h
---- gcc-4.2.4/libstdc++-v3/include/bits/basic_string.h 2007-10-14 20:22:22 +0200
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/libstdc++-v3/include/bits/basic_string.h 2014-06-30 15:51:25 +0200
-@@ -174,7 +174,7 @@
-
- // The following storage is init'd to 0 by the linker, resulting
- // (carefully) in an empty string with one reference.
-- static size_type _S_empty_rep_storage[];
-+ static size_type const _S_empty_rep_storage[];
-
- static _Rep&
- _S_empty_rep()
-@@ -182,7 +182,7 @@
- // NB: Mild hack to avoid strict-aliasing warnings. Note that
- // _S_empty_rep_storage is never modified and the punning should
- // be reasonably safe in this case.
-- void* __p = reinterpret_cast<void*>(&_S_empty_rep_storage);
-+ void* __p = const_cast<void*>(reinterpret_cast<void const*>(&_S_empty_rep_storage));
- return *reinterpret_cast<_Rep*>(__p);
- }
-
-@@ -204,12 +204,17 @@
-
- void
- _M_set_length_and_sharable(size_type __n)
-- {
-- this->_M_set_sharable(); // One reference.
-- this->_M_length = __n;
-- traits_type::assign(this->_M_refdata()[__n], _S_terminal);
-- // grrr. (per 21.3.4)
-- // You cannot leave those LWG people alone for a second.
-+ {
-+#ifndef _GLIBCXX_FULLY_DYNAMIC_STRING
-+ if (__builtin_expect(this != &_S_empty_rep(), false))
-+#endif
-+ {
-+ this->_M_set_sharable(); // One reference.
-+ this->_M_length = __n;
-+ traits_type::assign(this->_M_refdata()[__n], _S_terminal);
-+ // grrr. (per 21.3.4)
-+ // You cannot leave those LWG people alone for a second.
-+ }
- }
-
- _CharT*
-@@ -1153,16 +1158,8 @@
- * The value of the string doesn't change if an error is thrown.
- */
- iterator
-- erase(iterator __first, iterator __last)
-- {
-- _GLIBCXX_DEBUG_PEDASSERT(__first >= _M_ibegin() && __first <= __last
-- && __last <= _M_iend());
-- const size_type __pos = __first - _M_ibegin();
-- _M_mutate(__pos, __last - __first, size_type(0));
-- _M_rep()->_M_set_leaked();
-- return iterator(_M_data() + __pos);
-- }
--
-+ erase(iterator __first, iterator __last);
-+
- /**
- * @brief Replace characters with value from another string.
- * @param pos Index of first character to replace.
-diff -ruN gcc-4.2.4/libstdc++-v3/include/bits/basic_string.tcc /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/libstdc++-v3/include/bits/basic_string.tcc
---- gcc-4.2.4/libstdc++-v3/include/bits/basic_string.tcc 2007-03-30 19:11:22 +0200
-+++ /junk/base-2010.0u/portage/sys-devel/gcc-4.2.4-r01.11/work/gcc-4.2.4/libstdc++-v3/include/bits/basic_string.tcc 2014-06-30 15:51:25 +0200
-@@ -75,10 +75,10 @@
- // Linker sets _S_empty_rep_storage to all 0s (one reference, empty string)
- // at static init time (before static ctors are run).
- template<typename _CharT, typename _Traits, typename _Alloc>
-- typename basic_string<_CharT, _Traits, _Alloc>::size_type
-+ typename basic_string<_CharT, _Traits, _Alloc>::size_type const
- basic_string<_CharT, _Traits, _Alloc>::_Rep::_S_empty_rep_storage[
- (sizeof(_Rep_base) + sizeof(_CharT) + sizeof(size_type) - 1) /
-- sizeof(size_type)];
-+ sizeof(size_type)] = {};
-
- // NB: This is the special case for Input Iterators, used in
- // istreambuf_iterators, etc.
-@@ -391,6 +391,26 @@
- }
-
- template<typename _CharT, typename _Traits, typename _Alloc>
-+ typename basic_string<_CharT, _Traits, _Alloc>::iterator
-+ basic_string<_CharT, _Traits, _Alloc>::
-+ erase(iterator __first, iterator __last)
-+ {
-+ _GLIBCXX_DEBUG_PEDASSERT(__first >= _M_ibegin() && __first <= __last
-+ && __last <= _M_iend());
-+
-+ const size_type __size = __last - __first;
-+ if (__size)
-+ {
-+ const size_type __pos = __first - _M_ibegin();
-+ _M_mutate(__pos, __size, size_type(0));
-+ _M_rep()->_M_set_leaked();
-+ return iterator(_M_data() + __pos);
-+ }
-+ else
-+ return __first;
-+ }
-+
-+ template<typename _CharT, typename _Traits, typename _Alloc>
- basic_string<_CharT, _Traits, _Alloc>&
- basic_string<_CharT, _Traits, _Alloc>::
- replace(size_type __pos, size_type __n1, const _CharT* __s,
diff --git a/sys-devel/gcc/files/4.2.2/solarisx86.patch b/sys-devel/gcc/files/4.2.2/solarisx86.patch
deleted file mode 100644
index 89dbc7ff81..0000000000
--- a/sys-devel/gcc/files/4.2.2/solarisx86.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-work around a weird shell quirk, it doesn't fall in the X) case if
-with_cpu is unset/empty, but in the *) case instead, causing an abort,
-bug #416577
-
---- gcc-4.2.4/gcc/config.gcc
-+++ gcc-4.2.4/gcc/config.gcc
-@@ -1216,7 +1216,7 @@
- need_64bit_hwint=yes
- # FIXME: -m64 for i[34567]86-*-* should be allowed just
- # like -m32 for x86_64-*-*.
-- case X"${with_cpu}" in
-+ case X"${with_cpu:-generic}" in
- Xgeneric|Xnocona|Xx86-64|Xk8|Xopteron|Xathlon64|Xathlon-fx)
- ;;
- X)
diff --git a/sys-devel/gcc/files/4.2.2/solarisx86_64.patch b/sys-devel/gcc/files/4.2.2/solarisx86_64.patch
deleted file mode 100644
index 719f0c2b77..0000000000
--- a/sys-devel/gcc/files/4.2.2/solarisx86_64.patch
+++ /dev/null
@@ -1,89 +0,0 @@
---- gcc/config.orig/i386/sol2-64.h
-+++ gcc/config/i386/sol2-64.h
-@@ -0,0 +1,5 @@
-+/* Definitions of target machine for GCC, for bi-arch i386
-+ running Solaris 2, defaulting to 64-bit code generation. */
-+
-+#undef MULTILIB_DEFAULTS
-+#define MULTILIB_DEFAULTS { "m64" }
---- gcc/config.gcc
-+++ gcc/config.gcc
-@@ -1251,6 +1246,78 @@
- ;;
- esac
- ;;
-+x86_64-*-solaris2*)
-+ tm_file="i386/biarch64.h ${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
-+ case ${target} in
-+ *-*-solaris2.1[0-9]*)
-+ tm_file="${tm_file} sol2-10.h"
-+ ;;
-+ esac
-+ tm_file="${tm_file} i386/sol2.h"
-+ tmake_file="t-sol2 i386/t-sol2 t-svr4"
-+ c_target_objs="sol2-c.o"
-+ cxx_target_objs="sol2-c.o"
-+ extra_objs="sol2.o"
-+ tm_p_file="${tm_p_file} sol2-protos.h"
-+ if test x$gnu_ld = xyes; then
-+ tmake_file="$tmake_file t-slibgcc-elf-ver"
-+ tm_defines="${tm_defines} TARGET_GNU_LD=1"
-+ else
-+ tmake_file="$tmake_file t-slibgcc-sld"
-+ fi
-+ if test x$gas = xyes; then
-+ tm_file="usegas.h ${tm_file}"
-+ fi
-+ case ${target} in
-+ *-*-solaris2.[789] | *-*-solaris2.1[0-9]*)
-+ tm_file="$tm_file tm-dwarf2.h"
-+ ;;
-+ esac
-+ case ${target} in
-+ *-*-solaris2.1[0-9]*)
-+ tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h i386/sol2-64.h"
-+ tm_defines="${tm_defines} TARGET_BI_ARCH=1"
-+ tmake_file="$tmake_file i386/t-crtstuff i386/t-sol2-10"
-+ need_64bit_hwint=yes
-+ # FIXME: -m64 for i[34567]86-*-* should be allowed just
-+ # like -m32 for x86_64-*-*.
-+ case X"${with_cpu:-generic}" in
-+ Xgeneric|Xnocona|Xx86-64|Xk8|Xopteron|Xathlon64|Xathlon-fx)
-+ ;;
-+ X)
-+ with_cpu=generic
-+ ;;
-+ *)
-+ echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
-+ echo "generic nocona x86-64 k8 opteron athlon64 athlon-fx" 1>&2
-+ exit 1
-+ ;;
-+ esac
-+ # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
-+ # part of the base system.
-+ extra_parts="gmon.o crtbegin.o crtend.o"
-+ ;;
-+ *)
-+ extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
-+ ;;
-+ esac
-+ case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-+ "":yes:* | yes:yes:* )
-+ case ${target} in
-+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
-+ thread_file=posix95
-+ ;;
-+ *)
-+ thread_file=posix
-+ ;;
-+ esac
-+ ;;
-+ "":*:yes | yes:*:yes )
-+ thread_file=solaris
-+ ;;
-+ esac
-+ extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h"
-+ ;;
- i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
- if test x$stabs = xyes
diff --git a/sys-devel/gcc/files/4.2.2/targettools-checks.patch b/sys-devel/gcc/files/4.2.2/targettools-checks.patch
deleted file mode 100644
index ab8dd9b761..0000000000
--- a/sys-devel/gcc/files/4.2.2/targettools-checks.patch
+++ /dev/null
@@ -1,108 +0,0 @@
-# Since http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33637 lacks
-# a real fix, this is just an ugly workaround required for AIX.
-
---- gcc/configure.ac.orig 2007-10-08 16:18:43 +0200
-+++ gcc/configure.ac 2007-10-08 16:22:22 +0200
-@@ -1877,7 +1877,7 @@
- elif test -x as$build_exeext; then
- # Build using assembler in the current directory.
- gcc_cv_as=./as$build_exeext
--elif test -x $AS_FOR_TARGET; then
-+elif ( set dummy $AS_FOR_TARGET; test -x $[2] ); then
- gcc_cv_as="$AS_FOR_TARGET"
- else
- AC_PATH_PROG(gcc_cv_as, $AS_FOR_TARGET)
-@@ -1928,7 +1928,7 @@
- elif test -x collect-ld$build_exeext; then
- # Build using linker in the current directory.
- gcc_cv_ld=./collect-ld$build_exeext
--elif test -x $LD_FOR_TARGET; then
-+elif ( set dummy $LD_FOR_TARGET; test -x $[2] ); then
- gcc_cv_ld="$LD_FOR_TARGET"
- else
- AC_PATH_PROG(gcc_cv_ld, $LD_FOR_TARGET)
-@@ -1975,7 +1975,7 @@
- gcc_cv_nm=../binutils/nm-new$build_exeext
- elif test -x nm$build_exeext; then
- gcc_cv_nm=./nm$build_exeext
--elif test -x $NM_FOR_TARGET; then
-+elif ( set dummy $NM_FOR_TARGET; test -x $[2] ); then
- gcc_cv_nm="$NM_FOR_TARGET"
- else
- AC_PATH_PROG(gcc_cv_nm, $NM_FOR_TARGET)
-@@ -2003,7 +2003,7 @@
- gcc_cv_objdump=../binutils/objdump$build_exeext
- elif test -x objdump$build_exeext; then
- gcc_cv_objdump=./objdump$build_exeext
--elif test -x $OBJDUMP_FOR_TARGET; then
-+elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then
- gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
- else
- AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET)
---- gcc/configure.orig 2007-10-08 16:18:46 +0200
-+++ gcc/configure 2007-10-08 16:23:26 +0200
-@@ -13303,7 +13303,7 @@
- elif test -x as$build_exeext; then
- # Build using assembler in the current directory.
- gcc_cv_as=./as$build_exeext
--elif test -x $AS_FOR_TARGET; then
-+elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
- gcc_cv_as="$AS_FOR_TARGET"
- else
- # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
-@@ -13419,7 +13419,7 @@
- elif test -x collect-ld$build_exeext; then
- # Build using linker in the current directory.
- gcc_cv_ld=./collect-ld$build_exeext
--elif test -x $LD_FOR_TARGET; then
-+elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
- gcc_cv_ld="$LD_FOR_TARGET"
- else
- # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
-@@ -13510,7 +13510,7 @@
- gcc_cv_nm=../binutils/nm-new$build_exeext
- elif test -x nm$build_exeext; then
- gcc_cv_nm=./nm$build_exeext
--elif test -x $NM_FOR_TARGET; then
-+elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
- gcc_cv_nm="$NM_FOR_TARGET"
- else
- # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
-@@ -13584,7 +13584,7 @@
- gcc_cv_objdump=../binutils/objdump$build_exeext
- elif test -x objdump$build_exeext; then
- gcc_cv_objdump=./objdump$build_exeext
--elif test -x $OBJDUMP_FOR_TARGET; then
-+elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
- gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
- else
- # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
---- gcc/Makefile.in.orig 2007-10-10 18:02:25 +0200
-+++ gcc/Makefile.in 2007-10-10 18:07:12 +0200
-@@ -1328,7 +1328,7 @@
- # Go through an additional indirection, because the file we create
- # can be either `sometool' (if it is a script) or `sometool$(exeext)'
- # (if it is a hard link).
--stamp-as: $(ORIGINAL_AS_FOR_TARGET)
-+stamp-as: $(firstword $(ORIGINAL_AS_FOR_TARGET))
- @echo creating as; \
- case "$(ORIGINAL_AS_FOR_TARGET)" in \
- ./as) ;; \
-@@ -1344,7 +1344,7 @@
- esac
- echo timestamp > $@
-
--stamp-collect-ld: $(ORIGINAL_LD_FOR_TARGET)
-+stamp-collect-ld: $(firstword $(ORIGINAL_LD_FOR_TARGET))
- @echo creating collect-ld; \
- case "$(ORIGINAL_LD_FOR_TARGET)" in \
- ./collect-ld) ;; \
-@@ -1360,7 +1360,7 @@
- esac
- echo timestamp > $@
-
--stamp-nm: $(ORIGINAL_NM_FOR_TARGET)
-+stamp-nm: $(firstword $(ORIGINAL_NM_FOR_TARGET))
- @echo creating nm; \
- case "$(ORIGINAL_NM_FOR_TARGET)" in \
- ./nm) ;; \
diff --git a/sys-devel/gcc/files/4.2.2/treelang-nomakeinfo.patch b/sys-devel/gcc/files/4.2.2/treelang-nomakeinfo.patch
deleted file mode 100644
index 006f4ebb9c..0000000000
--- a/sys-devel/gcc/files/4.2.2/treelang-nomakeinfo.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-http://gcc.gnu.org/bugzilla/show_bug.cgi?id=27516
---- gcc/Makefile.in.orig 2007-12-11 14:52:20.000000000 +0100
-+++ gcc/Makefile.in 2007-12-11 14:53:37.000000000 +0100
-@@ -3656,7 +3656,7 @@
- # Install the driver last so that the window when things are
- # broken is small.
- install: install-common $(INSTALL_HEADERS) $(INSTALL_LIBGCC) \
-- install-cpp install-man install-info install-@POSUB@ \
-+ install-cpp install-man install-$(BUILD_INFO) install-@POSUB@ \
- install-driver
-
- # Handle cpp installation.
diff --git a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch b/sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch
deleted file mode 100644
index f530b6af1d..0000000000
--- a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-softfloat.patch
+++ /dev/null
@@ -1,88 +0,0 @@
-The hunk for gcc/config/arm/t-linux comes from:
-http://gcc.gnu.org/PR14352
-
-The rest is a custom job by Yuri Vasilevski.
-
-The idea here is that we add soft float support into the spec file
-so that we don't have to worry about packages stripping out softfloat
-flags from CFLAGS/CXXFLAGS.
-
-http://bugs.gentoo.org/75585
-
---- gcc-4.0.2/gcc/config/arm/elf.h
-+++ gcc-4.0.2/gcc/config/arm/elf.h
-@@ -45,8 +45,9 @@
- #endif
-
- #ifndef SUBTARGET_ASM_FLOAT_SPEC
--#define SUBTARGET_ASM_FLOAT_SPEC "\
--%{mapcs-float:-mfloat}"
-+#define SUBTARGET_ASM_FLOAT_SPEC "%{mapcs-float:-mfloat} \
-+ %{mhard-float:-mfpu=fpa} \
-+ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
- #endif
-
- #ifndef ASM_SPEC
-@@ -58,8 +59,6 @@
- %{mapcs-*:-mapcs-%*} \
- %(subtarget_asm_float_spec) \
- %{mthumb-interwork:-mthumb-interwork} \
--%{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \
--%{mfloat-abi=*} %{mfpu=*} \
- %(subtarget_extra_asm_spec)"
- #endif
-
---- gcc-4.0.2/gcc/config/arm/linux-elf.h
-+++ gcc-4.0.2/gcc/config/arm/linux-elf.h
-@@ -28,7 +28,7 @@
- #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr);
-
- #undef TARGET_DEFAULT_FLOAT_ABI
--#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
-+#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
-
- /* TARGET_BIG_ENDIAN_DEFAULT is set in
- config.gcc for big endian configurations. */
-@@ -44,6 +44,10 @@
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
-+#undef SUBTARGET_EXTRA_ASM_SPEC
-+#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \
-+ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
-+
-
- #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
-
-@@ -51,7 +55,7 @@
-
- #undef MULTILIB_DEFAULTS
- #define MULTILIB_DEFAULTS \
-- { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
-+ { "marm", TARGET_ENDIAN_OPTION, "msoft-float", "mno-thumb-interwork" }
-
- /* Now we define the strings used to build the spec file. */
- #undef LIB_SPEC
-@@ -60,7 +64,7 @@
- %{shared:-lc} \
- %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
-
--#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
-+#define LIBGCC_SPEC "-lgcc"
-
- #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
-
---- gcc-4.0.2/gcc/config/arm/t-linux
-+++ gcc-4.0.2/gcc/config/arm/t-linux
-@@ -4,7 +4,10 @@ TARGET_LIBGCC2_CFLAGS = -fomit-frame-poi
- LIBGCC2_DEBUG_CFLAGS = -g0
-
- LIB1ASMSRC = arm/lib1funcs.asm
--LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
-+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
-+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
-+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
-+ _fixsfsi _fixunssfsi _floatdidf _floatdisf
-
- # MULTILIB_OPTIONS = mhard-float/msoft-float
- # MULTILIB_DIRNAMES = hard-float soft-float
diff --git a/sys-devel/gcc/files/4.3.3/aix-force-pthread.patch b/sys-devel/gcc/files/4.3.3/aix-force-pthread.patch
deleted file mode 100644
index b38cc2fcd3..0000000000
--- a/sys-devel/gcc/files/4.3.3/aix-force-pthread.patch
+++ /dev/null
@@ -1,316 +0,0 @@
-diff -ru gcc/config/rs6000.orig/aix41.h gcc/config/rs6000/aix41.h
---- gcc/config/rs6000.orig/aix41.h 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/aix41.h 2009-07-31 14:25:19 +0200
-@@ -39,7 +39,7 @@
- #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
- %{ansi: -D_ANSI_C_SOURCE}\
- %{mpe: -I/usr/lpp/ppe.poe/include}\
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT MASK_NEW_MNEMONICS
-@@ -69,8 +69,8 @@
- #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
- %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
-- %{!pthread: -lc}"
-+ %{pthread:} -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\
-+ "
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -83,8 +83,8 @@
- %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\
- %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\
- %{!mpe:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC
- and "cror 31,31,31" for POWER architecture. */
-diff -ru gcc/config/rs6000.orig/aix43.h gcc/config/rs6000/aix43.h
---- gcc/config/rs6000.orig/aix43.h 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/aix43.h 2009-07-31 14:25:50 +0200
-@@ -105,7 +105,7 @@
- %{ansi: -D_ANSI_C_SOURCE}\
- %{maix64: -D__64BIT__}\
- %{mpe: -I/usr/lpp/ppe.poe/include}\
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. */
-@@ -114,7 +114,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT MASK_NEW_MNEMONICS
-@@ -145,8 +145,8 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
-- %{!pthread:-lc}"
-+ %{pthread:}-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\
-+ "
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -158,8 +158,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX 4.3 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix51.h gcc/config/rs6000/aix51.h
---- gcc/config/rs6000.orig/aix51.h 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/aix51.h 2009-07-31 14:26:13 +0200
-@@ -101,7 +101,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. */
-@@ -110,7 +110,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT MASK_NEW_MNEMONICS
-@@ -141,7 +141,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -153,8 +153,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix52.h gcc/config/rs6000/aix52.h
---- gcc/config/rs6000.orig/aix52.h 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/aix52.h 2009-07-31 14:26:31 +0200
-@@ -100,7 +100,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. Synchronize with libstdc++ os_defines.h. */
-@@ -109,7 +109,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
-@@ -144,7 +144,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -156,8 +156,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix53.h gcc/config/rs6000/aix53.h
---- gcc/config/rs6000.orig/aix53.h 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/aix53.h 2009-07-31 14:26:47 +0200
-@@ -102,7 +102,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. Synchronize with libstdc++ os_defines.h. */
-@@ -111,7 +111,7 @@
- "-D_ALL_SOURCE \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
-@@ -140,7 +140,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -152,8 +152,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/aix61.h gcc/config/rs6000/aix61.h
---- gcc/config/rs6000.orig/aix61.h 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/aix61.h 2009-07-31 14:27:02 +0200
-@@ -103,7 +103,7 @@
- %{ansi: -D_ANSI_C_SOURCE} \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- /* The GNU C++ standard library requires that these macros be
- defined. Synchronize with libstdc++ os_defines.h. */
-@@ -112,7 +112,7 @@
- "-D_ALL_SOURCE -D__COMPATMATH__ \
- %{maix64: -D__64BIT__} \
- %{mpe: -I/usr/lpp/ppe.poe/include} \
-- %{pthread: -D_THREAD_SAFE}"
-+ %{pthread:} -D_THREAD_SAFE"
-
- #undef TARGET_DEFAULT
- #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
-@@ -141,7 +141,7 @@
- %{p:-L/lib/profiled -L/usr/lib/profiled}\
- %{!maix64:%{!shared:%{g*:-lg}}}\
- %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
-- %{pthread:-lpthreads} -lc"
-+ %{pthread:}-lpthreads -lc"
-
- #undef LINK_SPEC
- #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
-@@ -153,8 +153,8 @@
- #define STARTFILE_SPEC "%{!shared:\
- %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
- %{!maix64:\
-- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
-- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
-+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
-+ }}"
-
- /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
-
-diff -ru gcc/config/rs6000.orig/t-aix43 gcc/config/rs6000/t-aix43
---- gcc/config/rs6000.orig/t-aix43 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/t-aix43 2009-07-31 14:29:20 +0200
-@@ -10,13 +10,13 @@
- echo '#define FLOAT' > fp-bit.c
- cat $(srcdir)/config/fp-bit.c >> fp-bit.c
-
--# Build the libraries for pthread and all of the
-+# Build the libraries for all of the
- # different processor models
-
--MULTILIB_OPTIONS = pthread \
-+MULTILIB_OPTIONS = \
- mcpu=common/mcpu=power/mcpu=powerpc/maix64
-
--MULTILIB_DIRNAMES = pthread \
-+MULTILIB_DIRNAMES = \
- common power powerpc ppc64
-
- MULTILIB_MATCHES = mcpu?power=mcpu?power \
-@@ -46,7 +46,7 @@
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
- @multilib_flags@ @shlib_objs@ -lc \
-- `case @multilib_dir@ in \
-+ `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
- *) echo -lc ;; esac` ; \
- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-@@ -61,7 +61,7 @@
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
--SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
-+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
- SHLIB_NM_FLAGS = -Bpg -X32_64
-diff -ru gcc/config/rs6000.orig/t-aix52 gcc/config/rs6000/t-aix52
---- gcc/config/rs6000.orig/t-aix52 2009-07-31 14:24:20 +0200
-+++ gcc/config/rs6000/t-aix52 2009-07-31 14:29:38 +0200
-@@ -10,12 +10,12 @@
- echo '#define FLOAT' > fp-bit.c
- cat $(srcdir)/config/fp-bit.c >> fp-bit.c
-
--# Build the libraries for pthread and all of the
-+# Build the libraries for all of the
- # different processor models
-
--MULTILIB_OPTIONS = pthread maix64
-+MULTILIB_OPTIONS = maix64
-
--MULTILIB_DIRNAMES = pthread ppc64
-+MULTILIB_DIRNAMES = ppc64
-
- MULTILIB_MATCHES =
-
-@@ -27,7 +27,7 @@
- SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
- -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
- @multilib_flags@ @shlib_objs@ -lc \
-- `case @multilib_dir@ in \
-+ `case pthread@multilib_dir@ in \
- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
- *) echo -lc ;; esac` ; \
- rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
-@@ -42,7 +42,7 @@
- $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
- $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
- $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
--SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
-+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
- SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
- SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
- SHLIB_NM_FLAGS = -Bpg -X32_64
diff --git a/sys-devel/gcc/files/4.3.3/gcc-4.3.3-redundant-linkage.patch b/sys-devel/gcc/files/4.3.3/gcc-4.3.3-redundant-linkage.patch
deleted file mode 100644
index 6f79830ca4..0000000000
--- a/sys-devel/gcc/files/4.3.3/gcc-4.3.3-redundant-linkage.patch
+++ /dev/null
@@ -1,18 +0,0 @@
-Patch for bug #318283 based on
-http://gcc.gnu.org/viewcvs/branches/gcc-4_4-branch/gcc/cp/Make-lang.in?r1=145122&r2=151555&pathrev=151555
-http://gcc.gnu.org/viewcvs/branches/gcc-4_4-branch/gcc/cp/Make-lang.in?view=log&pathrev=151555
-
-
---- gcc/cp/Make-lang.in.orig 2010-05-13 20:58:33.000000000 +0200
-+++ gcc/cp/Make-lang.in 2010-05-13 20:59:05.000000000 +0200
-@@ -72,8 +72,8 @@
- # Shared with C front end:
- CXX_C_OBJS = attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o \
- c-dump.o $(CXX_TARGET_OBJS) c-pretty-print.o c-opts.o c-pch.o \
-- c-incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \
-- c-gimplify.o c-omp.o tree-inline.o
-+ c-incpath.o c-ppoutput.o c-cppbuiltin.o prefix.o \
-+ c-gimplify.o c-omp.o
-
- # Language-specific object files for C++ and Objective C++.
- CXX_AND_OBJCXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \
diff --git a/sys-devel/gcc/files/4.3.3/prefix-search-dirs.patch b/sys-devel/gcc/files/4.3.3/prefix-search-dirs.patch
deleted file mode 100644
index c10eef5e39..0000000000
--- a/sys-devel/gcc/files/4.3.3/prefix-search-dirs.patch
+++ /dev/null
@@ -1,48 +0,0 @@
---- gcc/gcc.c.orig 2009-03-25 19:20:50 +0100
-+++ gcc/gcc.c 2009-03-26 00:37:23 +0100
-@@ -1515,8 +1515,8 @@ static const char *const standard_startf
- /* For native compilers, these are well-known paths containing
- components that may be provided by the system. For cross
- compilers, these paths are not used. */
--static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/";
--static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/";
-+static const char *const standard_exec_prefix_1 = "@GENTOO_PORTAGE_EPREFIX@/usr/libexec/gcc/";
-+static const char *const standard_exec_prefix_2 = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/";
- static const char *md_exec_prefix = MD_EXEC_PREFIX;
- static const char *md_startfile_prefix = MD_STARTFILE_PREFIX;
- static const char *md_startfile_prefix_1 = MD_STARTFILE_PREFIX_1;
-@@ -2584,6 +2584,34 @@ add_to_obstack (char *path, void *data)
- {
- struct add_to_obstack_info *info = data;
-
-+#if DISABLE_MULTILIB
-+ /*
-+ * Fix multilib paths for our prefix, that is alter lib64 and lib32 to lib.
-+ * No allocation needed, since the path won't grow but only shrink by two
-+ * chars. We should not modify host multilib dirs, otherwise libs might not
-+ * be found in /lib64 or /usr/lib64
-+ */
-+ int elen = strlen("@GENTOO_PORTAGE_EPREFIX@");
-+ if (strncmp(path, "@GENTOO_PORTAGE_EPREFIX@", elen) == 0) {
-+ /* multilib dirs are put at the end like ../lib32/ ../lib64/ */
-+ static char const *mdirs[] = { "../lib64/", "../lib32/" };
-+ int plen = strlen(path);
-+ unsigned int idx;
-+ int mlen;
-+
-+ /* For each path replace the multilib dir at the end of the path. */
-+ for (idx = 0; idx < (sizeof(mdirs) / sizeof(mdirs[0])); idx++) {
-+ mlen = strlen(mdirs[idx]);
-+ if (strncmp(path + plen - mlen, mdirs[idx], mlen) == 0) {
-+ /* Overwrite the part with null-termination. In prefix the only multilib
-+ occurence is the one added by gcc so we can end here. */
-+ strcpy(path + plen - mlen, "../lib/");
-+ break;
-+ }
-+ }
-+ }
-+#endif
-+
- if (info->check_dir && !is_directory (path, false))
- return NULL;
-
diff --git a/sys-devel/gcc/files/4.3.3/solarisx86_64.patch b/sys-devel/gcc/files/4.3.3/solarisx86_64.patch
deleted file mode 100644
index fb93c5a2a7..0000000000
--- a/sys-devel/gcc/files/4.3.3/solarisx86_64.patch
+++ /dev/null
@@ -1,118 +0,0 @@
---- gcc/config.gcc
-+++ gcc/config.gcc
-@@ -1330,6 +1330,74 @@
- ;;
- esac
- ;;
-+x86_64-*-solaris2*)
-+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
-+ case ${target} in
-+ *-*-solaris2.1[0-9]*)
-+ tm_file="${tm_file} sol2-10.h"
-+ ;;
-+ esac
-+ tm_file="${tm_file} i386/sol2.h"
-+ tmake_file="t-sol2 i386/t-sol2"
-+ c_target_objs="sol2-c.o"
-+ cxx_target_objs="sol2-c.o"
-+ extra_objs="sol2.o"
-+ tm_p_file="${tm_p_file} sol2-protos.h"
-+ if test x$gnu_ld = xyes; then
-+ tmake_file="$tmake_file t-slibgcc-elf-ver"
-+ tm_defines="${tm_defines} TARGET_GNU_LD=1"
-+ else
-+ tmake_file="$tmake_file t-slibgcc-sld"
-+ fi
-+ if test x$gas = xyes; then
-+ tm_file="usegas.h ${tm_file}"
-+ fi
-+ case ${target} in
-+ *-*-solaris2.[789] | *-*-solaris2.1[0-9]*)
-+ tm_file="$tm_file tm-dwarf2.h"
-+ ;;
-+ esac
-+ case ${target} in
-+ *-*-solaris2.1[0-9]*)
-+ tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h i386/sol2-64.h"
-+ tm_defines="${tm_defines} TARGET_BI_ARCH=1"
-+ tmake_file="$tmake_file i386/t-sol2-10"
-+ # i386/t-crtstuff only affects libgcc. Its inclusion
-+ # depends on a runtime test and is thus performed in
-+ # libgcc/configure.ac instead.
-+ need_64bit_hwint=yes
-+ # FIXME: -m64 for i[34567]86-*-* should be allowed just
-+ # like -m32 for x86_64-*-*.
-+ case X"${with_cpu}" in
-+ Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
-+ ;;
-+ X)
-+ with_cpu=generic
-+ ;;
-+ *)
-+ echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
-+ echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
-+ exit 1
-+ ;;
-+ esac
-+ ;;
-+ esac
-+ case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
-+ "":yes:* | yes:yes:* )
-+ case ${target} in
-+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
-+ thread_file=posix95
-+ ;;
-+ *)
-+ thread_file=posix
-+ ;;
-+ esac
-+ ;;
-+ "":*:yes | yes:*:yes )
-+ thread_file=solaris
-+ ;;
-+ esac
-+ ;;
- i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
- tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
- if test x$stabs = xyes
---- libgcc/configure.ac
-+++ libgcc/configure.ac
-@@ -160,7 +160,7 @@
- # Link with -nostartfiles -nodefaultlibs since neither are present while
- # building libgcc.
- case ${host} in
--i?86-*-solaris2.1[[0-9]]*)
-+i?86-*-solaris2.1[[0-9]]*|x86_64-*-solaris2.1[[0-9]]*)
- cat > conftest.s <<EOF
- .section .eh_frame,"a",@unwind
- .zero 4
---- libgcc/configure
-+++ libgcc/configure
-@@ -3383,7 +3383,7 @@
- # Link with -nostartfiles -nodefaultlibs since neither are present while
- # building libgcc.
- case ${host} in
--i?86-*-solaris2.1[0-9]*)
-+i?86-*-solaris2.1[0-9]*|x86_64-*-solaris2.1[0-9]*)
- cat > conftest.s <<EOF
- .section .eh_frame,"a",@unwind
- .zero 4
---- libgcc/config.host
-+++ libgcc/config.host
-@@ -352,7 +352,7 @@
- ;;
- i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
- ;;
--i[34567]86-*-solaris2*)
-+i[34567]86-*-solaris2*|x86_64-*-solaris2*)
- tmake_file="${tmake_file} i386/t-sol2"
- case ${host} in
- *-*-solaris2.1[0-9]*)
---- gcc/config/i386/sol2-64.h
-+++ gcc/config/i386/sol2-64.h
-@@ -0,0 +1,5 @@
-+/* Definitions of target machine for GCC, for bi-arch i386
-+ running Solaris 2, defaulting to 64-bit code generation. */
-+
-+#undef MULTILIB_DEFAULTS
-+#define MULTILIB_DEFAULTS { "m64" }
diff --git a/sys-devel/gcc/files/4.5.2/m68k-coldfire.patch b/sys-devel/gcc/files/4.5.2/m68k-coldfire.patch
deleted file mode 100644
index 0fc1dbe798..0000000000
--- a/sys-devel/gcc/files/4.5.2/m68k-coldfire.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-gcc/
-
-2011-07-29 Mikael Pettersson <mikpe@it.uu.se>
-
- PR target/47908
- * config/m68k/m68k-protos.h (optimization_options): Declare.
- * config/m68k/m68k.c (optimization_options): New function.
- Disable instruction scheduling for non-ColdFire targets.
- * config/m68k/m68k.h (OPTIMIZATION_OPTIONS): Define.
-
---- gcc-4.5.3/gcc/config/m68k/m68k-protos.h.~1~ 2009-05-18 09:54:44.000000000 +0200
-+++ gcc-4.5.3/gcc/config/m68k/m68k-protos.h 2011-07-29 13:31:33.000000000 +0200
-@@ -95,6 +95,7 @@ extern void m68k_expand_prologue (void);
- extern bool m68k_use_return_insn (void);
- extern void m68k_expand_epilogue (bool);
- extern void override_options (void);
-+extern void optimization_options (int, int);
- extern const char *m68k_cpp_cpu_ident (const char *);
- extern const char *m68k_cpp_cpu_family (const char *);
- extern void init_68881_table (void);
---- gcc-4.5.3/gcc/config/m68k/m68k.c.~1~ 2010-06-14 22:01:39.000000000 +0200
-+++ gcc-4.5.3/gcc/config/m68k/m68k.c 2011-07-29 13:31:33.000000000 +0200
-@@ -742,6 +742,17 @@ override_options (void)
- }
- }
-
-+void
-+optimization_options (int level ATTRIBUTE_UNUSED, int size ATTRIBUTE_UNUSED)
-+{
-+ if (m68k_sched_cpu == CPU_UNKNOWN)
-+ {
-+ flag_schedule_insns = 0;
-+ flag_schedule_insns_after_reload = 0;
-+ flag_modulo_sched = 0;
-+ }
-+}
-+
- /* Generate a macro of the form __mPREFIX_cpu_NAME, where PREFIX is the
- given argument and NAME is the argument passed to -mcpu. Return NULL
- if -mcpu was not passed. */
---- gcc-4.5.3/gcc/config/m68k/m68k.h.~1~ 2009-09-22 17:49:54.000000000 +0200
-+++ gcc-4.5.3/gcc/config/m68k/m68k.h 2011-07-29 13:31:33.000000000 +0200
-@@ -276,6 +276,9 @@ along with GCC; see the file COPYING3.
-
- #define OVERRIDE_OPTIONS override_options()
-
-+#define OPTIMIZATION_OPTIONS(LEVEL,SIZE) \
-+ optimization_options ((LEVEL), (SIZE))
-+
- /* These are meant to be redefined in the host dependent files */
- #define SUBTARGET_OVERRIDE_OPTIONS
-
diff --git a/sys-devel/gcc/files/4.5.2/prefix-search-dirs.patch b/sys-devel/gcc/files/4.5.2/prefix-search-dirs.patch
deleted file mode 100644
index 88efc287c7..0000000000
--- a/sys-devel/gcc/files/4.5.2/prefix-search-dirs.patch
+++ /dev/null
@@ -1,37 +0,0 @@
---- gcc/gcc.c.orig 2011-03-05 16:27:49.000000000 +0100
-+++ gcc/gcc.c 2011-03-05 16:42:54.000000000 +0100
-@@ -2691,6 +2691,34 @@
- {
- struct add_to_obstack_info *info = (struct add_to_obstack_info *) data;
-
-+#if DISABLE_MULTILIB
-+ /*
-+ * Fix multilib paths for our prefix, that is alter lib64 and lib32 to lib.
-+ * No allocation needed, since the path won't grow but only shrink by two
-+ * chars. We should not modify host multilib dirs, otherwise libs might not
-+ * be found in /lib64 or /usr/lib64
-+ */
-+ int elen = strlen(STANDARD_EXEC_PREFIX);
-+ if (elen && strncmp(path, STANDARD_EXEC_PREFIX, elen) == 0) {
-+ /* multilib dirs are put at the end like ../lib32/ ../lib64/ */
-+ static char const *mdirs[] = { "../lib64/", "../lib32/" };
-+ int plen = strlen(path);
-+ unsigned int idx;
-+ int mlen;
-+
-+ /* For each path replace the multilib dir at the end of the path. */
-+ for (idx = 0; idx < (sizeof(mdirs) / sizeof(mdirs[0])); idx++) {
-+ mlen = strlen(mdirs[idx]);
-+ if (strncmp(path + plen - mlen, mdirs[idx], mlen) == 0) {
-+ /* Overwrite the part with null-termination. In prefix the only multilib
-+ occurence is the one added by gcc so we can end here. */
-+ strcpy(path + plen - mlen, "../lib/");
-+ break;
-+ }
-+ }
-+ }
-+#endif
-+
- if (info->check_dir && !is_directory (path, false))
- return NULL;
-
diff --git a/sys-devel/gcc/files/4.5.2/solaris-pthread.patch b/sys-devel/gcc/files/4.5.2/solaris-pthread.patch
deleted file mode 100644
index 86728eed41..0000000000
--- a/sys-devel/gcc/files/4.5.2/solaris-pthread.patch
+++ /dev/null
@@ -1,32 +0,0 @@
-Fix compiling java/gcj on Solaris
-
-Chí-Thanh Christopher Nguyễn
-
-https://bugs.gentoo.org/show_bug.cgi?id=380369
-
---- a/libjava/configure.ac
-+++ b/libjava/configure.ac
-@@ -1064,6 +1064,10 @@
- THREADLIBS='-lpthread -lrt'
- THREADSPEC='-lpthread -lrt'
- ;;
-+ *-*-solaris*)
-+ THREADCXXFLAGS=-pthread
-+ THREADSPEC=-lpthread
-+ ;;
- *)
- THREADLIBS=-lpthread
- THREADSPEC=-lpthread
---- a/libjava/configure
-+++ b/libjava/configure
-@@ -20702,6 +20702,10 @@
- THREADLIBS='-lpthread -lrt'
- THREADSPEC='-lpthread -lrt'
- ;;
-+ *-*-solaris*)
-+ THREADCXXFLAGS=-pthread
-+ THREADSPEC=-lpthread
-+ ;;
- *)
- THREADLIBS=-lpthread
- THREADSPEC=-lpthread
diff --git a/sys-devel/gcc/files/4.5.2/solaris-searchpath.patch b/sys-devel/gcc/files/4.5.2/solaris-searchpath.patch
deleted file mode 100644
index d51c86e6c7..0000000000
--- a/sys-devel/gcc/files/4.5.2/solaris-searchpath.patch
+++ /dev/null
@@ -1,89 +0,0 @@
-* don't inject /usr/lib{/64,} and /lib{/64,} before any other thing in the
- call to the linker, that breaks the entire idea of Prefix
-* -rpath-link overrides the entire search path, so don't use it
-
---- gcc/config/i386/sol2-10.h
-+++ gcc/config/i386/sol2-10.h
-@@ -109,12 +109,12 @@
- %{YP,*} \
- %{R*} \
- %{compat-bsd: \
-- %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64:/lib/64:/usr/lib/64} \
-- %{!p:%{!pg:-Y P,/usr/ucblib/64:/lib:/usr/lib/64}}} \
-+ %{!YP,*:%{p|pg:-Y P,/usr/ucblib/64:/usr/lib/libp/64} \
-+ %{!p:%{!pg:-Y P,/usr/ucblib/64}}} \
- -R /usr/ucblib/64} \
- %{!compat-bsd: \
-- %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64:/lib/64:/usr/lib/64} \
-- %{!p:%{!pg:-Y P,/lib/64:/usr/lib/64}}}}"
-+ %{!YP,*:%{p|pg:-Y P,/usr/lib/libp/64} \
-+ }}"
-
- #undef LINK_ARCH64_SPEC
- #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
---- gcc/config/sol2.h
-+++ gcc/config/sol2.h
-@@ -156,12 +156,12 @@
- %{YP,*} \
- %{R*} \
- %{compat-bsd: \
-- %{!YP,*:%{p|pg:-Y P,%R/usr/ucblib:%R/usr/ccs/lib/libp:%R/usr/lib/libp:%R/usr/ccs/lib:%R/usr/lib} \
-- %{!p:%{!pg:-Y P,%R/usr/ucblib:%R/usr/ccs/lib:%R/usr/lib}}} \
-+ %{!YP,*:%{p|pg:-Y P,%R/usr/ucblib:%R/usr/lib/libp} \
-+ %{!p:%{!pg:-Y P,%R/usr/ucblib}}} \
- -R %R/usr/ucblib} \
- %{!compat-bsd: \
-- %{!YP,*:%{p|pg:-Y P,%R/usr/ccs/lib/libp:%R/usr/lib/libp:%R/usr/ccs/lib:%R/usr/lib} \
-- %{!p:%{!pg:-Y P,%R/usr/ccs/lib:%R/usr/lib}}}}"
-+ %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp} \
-+ }}"
-
- #undef LINK_ARCH32_SPEC
- #define LINK_ARCH32_SPEC LINK_ARCH32_SPEC_BASE
---- gcc/config/sparc/sol2-bi.h
-+++ gcc/config/sparc/sol2-bi.h
-@@ -195,12 +195,12 @@
- %{YP,*} \
- %{R*} \
- %{compat-bsd: \
-- %{!YP,*:%{p|pg:-Y P,%R/usr/ucblib/sparcv9:%R/usr/lib/libp/sparcv9:%R/usr/lib/sparcv9} \
-- %{!p:%{!pg:-Y P,%R/usr/ucblib/sparcv9:%R/usr/lib/sparcv9}}} \
-+ %{!YP,*:%{p|pg:-Y P,%R/usr/ucblib/sparcv9:%R/usr/lib/libp/sparcv9} \
-+ %{!p:%{!pg:-Y P,%R/usr/ucblib/sparcv9}}} \
- -R %R/usr/ucblib/sparcv9} \
- %{!compat-bsd: \
-- %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/sparcv9:%R/usr/lib/sparcv9} \
-- %{!p:%{!pg:-Y P,%R/usr/lib/sparcv9}}}}"
-+ %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/sparcv9} \
-+ }}"
-
- #define LINK_ARCH64_SPEC LINK_ARCH64_SPEC_BASE
-
---- gcc/config/sparc/sol2-gld-bi.h
-+++ gcc/config/sparc/sol2-gld-bi.h
-@@ -26,11 +26,11 @@
-
- #undef LINK_ARCH32_SPEC
- #define LINK_ARCH32_SPEC \
-- LINK_ARCH32_SPEC_BASE "%{!static: -rpath-link %R/usr/lib}"
-+ LINK_ARCH32_SPEC_BASE ""
-
- #undef LINK_ARCH64_SPEC
- #define LINK_ARCH64_SPEC \
-- LINK_ARCH64_SPEC_BASE "%{!static: -rpath-link %R/usr/lib/sparcv9}"
-+ LINK_ARCH64_SPEC_BASE ""
-
- /* Since binutils 2.21, GNU ld supports new *_sol2 emulations to strictly
- follow the Solaris 2 ABI. Prefer them if present. */
---- gcc/config/sparc/sol2.h
-+++ gcc/config/sparc/sol2.h
-@@ -60,6 +60,9 @@
- %{!mcpu*:%(asm_cpu_default)} \
- "
-
-+/* We do not need to search a special directory for startup files. */
-+#undef MD_STARTFILE_PREFIX
-+
- #undef SUBTARGET_EXTRA_SPECS
- #define SUBTARGET_EXTRA_SPECS \
- { "startfile_arch", STARTFILE_ARCH_SPEC }, \
diff --git a/sys-devel/gcc/files/4.7.1/solaris-searchpath.patch b/sys-devel/gcc/files/4.7.1/solaris-searchpath.patch
deleted file mode 100644
index 7e4bbd6ebf..0000000000
--- a/sys-devel/gcc/files/4.7.1/solaris-searchpath.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-* don't inject /usr/lib{/64,} and /lib{/64,} before any other thing in
- the call to the linker, that breaks the entire idea of Prefix
-
---- gcc/config/sol2.h
-+++ gcc/config/sol2.h
-@@ -115,10 +115,8 @@
-
- #ifndef CROSS_DIRECTORY_STRUCTURE
- #undef MD_EXEC_PREFIX
--#define MD_EXEC_PREFIX "/usr/ccs/bin/"
-
- #undef MD_STARTFILE_PREFIX
--#define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
- #endif
-
- #undef STARTFILE_ARCH32_SPEC
-@@ -149,8 +147,7 @@
- "%{G:-G} \
- %{YP,*} \
- %{R*} \
-- %{!YP,*:%{p|pg:-Y P,%R/usr/ccs/lib/libp:%R/usr/lib/libp:%R/usr/ccs/lib:%R/lib:%R/usr/lib} \
-- %{!p:%{!pg:-Y P,%R/usr/ccs/lib:%R/lib:%R/usr/lib}}}"
-+ %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp}}"
-
- #undef LINK_ARCH32_SPEC
- #define LINK_ARCH32_SPEC LINK_ARCH32_SPEC_BASE
---- gcc/config/sol2-bi.h.orig 2012-07-30 18:54:25.888541283 +0200
-+++ gcc/config/sol2-bi.h 2012-07-30 18:55:25.186888194 +0200
-@@ -74,8 +74,7 @@
- "%{G:-G} \
- %{YP,*} \
- %{R*} \
-- %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/" ARCH64_SUBDIR ":%R/lib/" ARCH64_SUBDIR ":%R/usr/lib/" ARCH64_SUBDIR "} \
-- %{!p:%{!pg:-Y P,%R/lib/" ARCH64_SUBDIR ":%R/usr/lib/" ARCH64_SUBDIR "}}}"
-+ %{!YP,*:%{p|pg:-Y P,%R/usr/lib/libp/" ARCH64_SUBDIR "}}"
-
- #undef LINK_ARCH64_SPEC
- #ifndef USE_GLD
diff --git a/sys-devel/gcc/files/4.7.2/solaris-x64-tls-gnu-as.patch b/sys-devel/gcc/files/4.7.2/solaris-x64-tls-gnu-as.patch
deleted file mode 100644
index 03b63f6425..0000000000
--- a/sys-devel/gcc/files/4.7.2/solaris-x64-tls-gnu-as.patch
+++ /dev/null
@@ -1,135 +0,0 @@
-diff -ur gcc-4.7.2-orig/gcc/configure gcc-4.7.2/gcc/configure
---- gcc-4.7.2-orig/gcc/configure 2014-04-11 21:54:51.000000000 +0200
-+++ gcc-4.7.2/gcc/configure 2014-04-11 22:01:49.000000000 +0200
-@@ -23323,16 +23323,12 @@
- tls_first_major=2
- tls_first_minor=17
- ;;
-- i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
-+ i[34567]86-*-*)
- case "$target" in
- i[34567]86-*-solaris2.*)
- on_solaris=yes
- tga_func=___tls_get_addr
- ;;
-- x86_64-*-solaris2.1[0-9]*)
-- on_solaris=yes
-- tga_func=__tls_get_addr
-- ;;
- *)
- on_solaris=no
- ;;
-@@ -23368,8 +23364,31 @@
- leal foo@ntpoff(%ecx), %eax"
- ;;
- x86_64-*-*)
-- conftest_s='
-- .section ".tdata","awT",@progbits
-+ case "$target" in
-+ x86_64-*-solaris2.1[0-9]*)
-+ on_solaris=yes
-+ tga_func=__tls_get_addr
-+ ;;
-+ *)
-+ on_solaris=no
-+ ;;
-+ esac
-+ if test x$on_solaris = xyes && test x$gas_flag = xno; then
-+ conftest_s='
-+ .section .tdata,"awt",@progbits'
-+ tls_first_major=0
-+ tls_first_minor=0
-+
-+$as_echo "#define TLS_SECTION_ASM_FLAG 't'" >>confdefs.h
-+
-+ else
-+ conftest_s='
-+ .section ".tdata","awT",@progbits'
-+ tls_first_major=2
-+ tls_first_minor=14
-+ tls_as_opt="--fatal-warnings"
-+ fi
-+ conftest_s="$conftest_s
- foo: .long 25
- .text
- movq %fs:0, %rax
-@@ -23377,10 +23396,7 @@
- leaq foo@TLSLD(%rip), %rdi
- leaq foo@DTPOFF(%rax), %rdx
- movq foo@GOTTPOFF(%rip), %rax
-- movq $foo@TPOFF, %rax'
-- tls_first_major=2
-- tls_first_minor=14
-- tls_as_opt=--fatal-warnings
-+ movq \$foo@TPOFF, %rax"
- ;;
- ia64-*-*)
- conftest_s='
-diff -ur gcc-4.7.2-orig/gcc/configure.ac gcc-4.7.2/gcc/configure.ac
---- gcc-4.7.2-orig/gcc/configure.ac 2014-04-11 21:54:51.000000000 +0200
-+++ gcc-4.7.2/gcc/configure.ac 2014-04-11 21:56:27.000000000 +0200
-@@ -2871,16 +2871,12 @@
- tls_first_major=2
- tls_first_minor=17
- ;;
-- i[34567]86-*-* | x86_64-*-solaris2.1[0-9]*)
-+ i[34567]86-*-*)
- case "$target" in
- i[34567]86-*-solaris2.*)
- on_solaris=yes
- tga_func=___tls_get_addr
- ;;
-- x86_64-*-solaris2.1[0-9]*)
-- on_solaris=yes
-- tga_func=__tls_get_addr
-- ;;
- *)
- on_solaris=no
- ;;
-@@ -2917,8 +2913,32 @@
- leal foo@ntpoff(%ecx), %eax"
- ;;
- x86_64-*-*)
-- conftest_s='
-- .section ".tdata","awT",@progbits
-+ case "$target" in
-+ x86_64-*-solaris2.1[0-9]*)
-+ on_solaris=yes
-+ tga_func=__tls_get_addr
-+ ;;
-+ *)
-+ on_solaris=no
-+ ;;
-+ esac
-+ if test x$on_solaris = xyes && test x$gas_flag = xno; then
-+ conftest_s='
-+ .section .tdata,"awt",@progbits'
-+ tls_first_major=0
-+ tls_first_minor=0
-+changequote([,])dnl
-+ AC_DEFINE(TLS_SECTION_ASM_FLAG, 't',
-+[Define to the flag used to mark TLS sections if the default (`T') doesn't work.])
-+changequote(,)dnl
-+ else
-+ conftest_s='
-+ .section ".tdata","awT",@progbits'
-+ tls_first_major=2
-+ tls_first_minor=14
-+ tls_as_opt="--fatal-warnings"
-+ fi
-+ conftest_s="$conftest_s
- foo: .long 25
- .text
- movq %fs:0, %rax
-@@ -2926,10 +2946,7 @@
- leaq foo@TLSLD(%rip), %rdi
- leaq foo@DTPOFF(%rax), %rdx
- movq foo@GOTTPOFF(%rip), %rax
-- movq $foo@TPOFF, %rax'
-- tls_first_major=2
-- tls_first_minor=14
-- tls_as_opt=--fatal-warnings
-+ movq \$foo@TPOFF, %rax"
- ;;
- ia64-*-*)
- conftest_s='
diff --git a/sys-devel/gcc/gcc-10.2.0-r5.ebuild b/sys-devel/gcc/gcc-10.2.0-r5.ebuild
deleted file mode 100644
index 4e09a6e965..0000000000
--- a/sys-devel/gcc/gcc-10.2.0-r5.ebuild
+++ /dev/null
@@ -1,111 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PATCH_VER="6"
-
-inherit toolchain
-
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND=""
-BDEPEND="
- kernel_linux? ( ${CATEGORY}/binutils )
- kernel_Darwin? (
- || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools )
- )"
-
-src_prepare() {
- has_version '>=sys-libs/glibc-2.32-r1' && rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch"
- toolchain_src_prepare
-
- if use elibc_Cygwin; then
- sed -e '/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
- -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" || die
- fi
-
- # make sure 64-bits native targets don't screw up the linker paths
- eapply -p0 "${FILESDIR}"/no-libs-for-startfile.patch
- if use prefix; then
- eapply -p0 "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs
- # --enable-multilib), but this does make sense in prefix only
- eapply -p0 "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
- fi
-
- # make it have correct install_names on Darwin
- eapply -p1 "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
-
- if [[ ${CHOST} == powerpc*-darwin* ]] ; then
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
- sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
- libgcc/config/t-slibgcc-darwin || die
- fi
-
- # up macosx-version-min from 10.4 to 10.6 on Catalina, bug #767415
- if [[ ${CHOST} == *-darwin19 ]] ; then
- sed -i -e 's/=10.4/=10.6/' libgcc/config/t-darwin || die
- fi
-
- # fix for Big Sur versioning, remove with 11
- eapply -p1 "${FILESDIR}"/${PN}-10.1.0-macos-bigsur.patch
- find . -name "configure" | xargs \
- sed -i -e '/^\s*10\.\*)/N' \
- -e '/^\s*10\.\*)\s*_lt_dar_allow_undefined/s/10\.\*/10.*|11.*/' || die
-
- # fix interoperation with Xcode 12.5, bug #799170
- eapply -p1 "${FILESDIR}"/${PN}-10.2.0-xcode-12.5.patch
-}
-
-src_configure() {
- local myconf=()
- case ${CTARGET}:" ${USE} " in
- powerpc*-darwin*)
- # bug #381179
- filter-flags "-mcpu=*" "-mtune=*"
- # bug #657522
- # A bug in configure checks whether -no-pie works, but the
- # compiler doesn't pass -no-pie onto the linker if -fno-PIE
- # isn't passed, so the configure check always finds -no-pie
- # is accepted. (Likewise, when -fno-PIE is passed, the
- # compiler passes -no_pie onto the linker.)
- # Since our linker doesn't grok this, avoid above checks to
- # be run
- # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
- export gcc_cv_c_no_fpie=no
- export gcc_cv_no_pie=no
- ;;
- *-darwin20)
- # use sysroot with the linker, #756160
- export gcc_cv_ld_sysroot=yes
- ;;
- *-solaris*)
- # todo: some magic for native vs. GNU linking?
- myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
- # Solaris 11 defines this in its headers, but that causes a
- # mismatch whilst compiling, bug #657514
- export ac_cv_func_aligned_alloc=no
- export ac_cv_func_memalign=no
- export ac_cv_func_posix_memalign=no
- ;;
- i[34567]86-*-linux*:*" prefix "*)
- # to allow the linux-x86-on-amd64.patch become useful, we need
- # to enable multilib, even if there is just one multilib option.
- myconf+=( --enable-multilib )
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
- # we might be on x86_64-linux, but don't do cross-compile, so
- # tell the host-compiler to really create 32bits (for stage1)
- # (real x86-linux-gcc also accept -m32).
- append-flags -m32
- fi
- ;;
- esac
-
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
- # least on Solaris, and AIX /bin/sh is way too slow,
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX
- # in case that doesn't exist yet
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
- toolchain_src_configure "${myconf[@]}"
-}
diff --git a/sys-devel/gcc/gcc-10.3.0-r2.ebuild b/sys-devel/gcc/gcc-10.3.0-r2.ebuild
deleted file mode 100644
index 88a512b2f9..0000000000
--- a/sys-devel/gcc/gcc-10.3.0-r2.ebuild
+++ /dev/null
@@ -1,116 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PATCH_VER="3"
-
-inherit toolchain
-
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND=""
-BDEPEND="
- kernel_linux? ( ${CATEGORY}/binutils )
- kernel_Darwin? (
- || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools )
- )"
-
-src_prepare() {
- has_version '>=sys-libs/glibc-2.32-r1' && rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch"
- toolchain_src_prepare
-
- if use elibc_Cygwin; then
- sed -e '/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
- -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" || die
- fi
-
- # make sure 64-bits native targets don't screw up the linker paths
- eapply -p0 "${FILESDIR}"/no-libs-for-startfile.patch
- if use prefix; then
- eapply -p0 "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs
- # --enable-multilib), but this does make sense in prefix only
- eapply -p0 "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
- fi
-
- # make it have correct install_names on Darwin
- eapply -p1 "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- # Backport another bootstrapping fix when building with Clang
- eapply -p1 "${FILESDIR}"/gcc-10.3.0-clang-bootstrap.patch
- fi
-
- if [[ ${CHOST} == powerpc*-darwin* ]] ; then
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
- sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
- libgcc/config/t-slibgcc-darwin || die
- fi
-
- # up macosx-version-min from 10.4 to 10.6 on Catalina, bug #767415
- if [[ ${CHOST} == *-darwin19 ]] ; then
- sed -i -e 's/=10.4/=10.6/' libgcc/config/t-darwin || die
- fi
-
- find . -name "configure" | xargs \
- sed -i -e '/^\s*10\.\*)/N' \
- -e '/^\s*10\.\*)\s*_lt_dar_allow_undefined/s/10\.\*/10.*|11.*/' || die
-
- # fix interoperation with Xcode 12.5, bug #799170
- eapply -p1 "${FILESDIR}"/${PN}-10.2.0-xcode-12.5.patch
- # allow building with macOS 12
- eapply -p1 "${FILESDIR}"/${PN}-10.3.0-monterey.patch
-}
-
-src_configure() {
- local myconf=()
- case ${CTARGET}:" ${USE} " in
- powerpc*-darwin*)
- # bug #381179
- filter-flags "-mcpu=*" "-mtune=*"
- # bug #657522
- # A bug in configure checks whether -no-pie works, but the
- # compiler doesn't pass -no-pie onto the linker if -fno-PIE
- # isn't passed, so the configure check always finds -no-pie
- # is accepted. (Likewise, when -fno-PIE is passed, the
- # compiler passes -no_pie onto the linker.)
- # Since our linker doesn't grok this, avoid above checks to
- # be run
- # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
- export gcc_cv_c_no_fpie=no
- export gcc_cv_no_pie=no
- ;;
- *-darwin20)
- # use sysroot with the linker, #756160
- export gcc_cv_ld_sysroot=yes
- ;;
- *-solaris*)
- # todo: some magic for native vs. GNU linking?
- myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
- # Solaris 11 defines this in its headers, but that causes a
- # mismatch whilst compiling, bug #657514
- export ac_cv_func_aligned_alloc=no
- export ac_cv_func_memalign=no
- export ac_cv_func_posix_memalign=no
- ;;
- i[34567]86-*-linux*:*" prefix "*)
- # to allow the linux-x86-on-amd64.patch become useful, we need
- # to enable multilib, even if there is just one multilib option.
- myconf+=( --enable-multilib )
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
- # we might be on x86_64-linux, but don't do cross-compile, so
- # tell the host-compiler to really create 32bits (for stage1)
- # (real x86-linux-gcc also accept -m32).
- append-flags -m32
- fi
- ;;
- esac
-
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
- # least on Solaris, and AIX /bin/sh is way too slow,
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX
- # in case that doesn't exist yet
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
- toolchain_src_configure "${myconf[@]}"
-}
diff --git a/sys-devel/gcc/gcc-11.2.0.ebuild b/sys-devel/gcc/gcc-11.2.0.ebuild
deleted file mode 100644
index 7043fd3ae3..0000000000
--- a/sys-devel/gcc/gcc-11.2.0.ebuild
+++ /dev/null
@@ -1,118 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PATCH_VER="1"
-
-inherit toolchain
-
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
-
-RDEPEND=""
-BDEPEND="
- kernel_linux? ( ${CATEGORY}/binutils )
- kernel_Darwin? (
- || ( ${CATEGORY}/binutils-apple ${CATEGORY}/native-cctools )
- )"
-
-src_prepare() {
- has_version '>=sys-libs/glibc-2.32-r1' && rm -v "${WORKDIR}/patch/23_all_disable-riscv32-ABIs.patch"
- toolchain_src_prepare
-
- if use elibc_Cygwin; then
- sed -e '/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
- -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" || die
- fi
-
- # make sure 64-bits native targets don't screw up the linker paths
- eapply -p0 "${FILESDIR}"/no-libs-for-startfile.patch
- if use prefix; then
- eapply -p0 "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs
- # --enable-multilib), but this does make sense in prefix only
- eapply -p0 "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
- fi
-
- # make it have correct install_names on Darwin
- eapply -p1 "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
-
- if [[ ${CHOST} == *-darwin* ]] ; then
- # Backport another bootstrapping fix when building with Clang
- eapply -p1 "${FILESDIR}"/gcc-10.3.0-clang-bootstrap.patch
- fi
-
- if [[ ${CHOST} == powerpc*-darwin* ]] ; then
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
- sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
- libgcc/config/t-slibgcc-darwin || die
- fi
-
- # up macosx-version-min from 10.4 to 10.6 on Catalina, bug #767415
- if [[ ${CHOST} == *-darwin19 ]] ; then
- sed -i -e 's/=10.4/=10.6/' libgcc/config/t-darwin || die
- fi
-
- find . -name "configure" | xargs \
- sed -i -e '/^\s*10\.\*)/N' \
- -e '/^\s*10\.\*)\s*_lt_dar_allow_undefined/s/10\.\*/10.*|11.*/' || die
-
- # fix interoperation with Xcode 12.5, bug #799170
- eapply -p1 "${FILESDIR}"/${PN}-10.2.0-xcode-12.5.patch
- # allow building with macOS 12
- eapply -p1 "${FILESDIR}"/${PN}-10.3.0-monterey.patch
- # allow building on Solaris derivatives
- eapply "${FILESDIR}"/${PN}-11-illumnos-o_directory.patch
-}
-
-src_configure() {
- local myconf=()
- case ${CTARGET}:" ${USE} " in
- powerpc*-darwin*)
- # bug #381179
- filter-flags "-mcpu=*" "-mtune=*"
- # bug #657522
- # A bug in configure checks whether -no-pie works, but the
- # compiler doesn't pass -no-pie onto the linker if -fno-PIE
- # isn't passed, so the configure check always finds -no-pie
- # is accepted. (Likewise, when -fno-PIE is passed, the
- # compiler passes -no_pie onto the linker.)
- # Since our linker doesn't grok this, avoid above checks to
- # be run
- # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
- export gcc_cv_c_no_fpie=no
- export gcc_cv_no_pie=no
- ;;
- *-darwin20)
- # use sysroot with the linker, #756160
- export gcc_cv_ld_sysroot=yes
- ;;
- *-solaris*)
- # todo: some magic for native vs. GNU linking?
- myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
- # Solaris 11 defines this in its headers, but that causes a
- # mismatch whilst compiling, bug #657514
- export ac_cv_func_aligned_alloc=no
- export ac_cv_func_memalign=no
- export ac_cv_func_posix_memalign=no
- ;;
- i[34567]86-*-linux*:*" prefix "*)
- # to allow the linux-x86-on-amd64.patch become useful, we need
- # to enable multilib, even if there is just one multilib option.
- myconf+=( --enable-multilib )
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
- # we might be on x86_64-linux, but don't do cross-compile, so
- # tell the host-compiler to really create 32bits (for stage1)
- # (real x86-linux-gcc also accept -m32).
- append-flags -m32
- fi
- ;;
- esac
-
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
- # least on Solaris, and AIX /bin/sh is way too slow,
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX
- # in case that doesn't exist yet
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
- toolchain_src_configure "${myconf[@]}"
-}
diff --git a/sys-devel/gcc/gcc-8.3.0.ebuild b/sys-devel/gcc/gcc-8.3.0.ebuild
deleted file mode 100644
index e7783a154e..0000000000
--- a/sys-devel/gcc/gcc-8.3.0.ebuild
+++ /dev/null
@@ -1,97 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PATCH_VER="1.0"
-CYGWINPORTS_GITREV="0de6b2ae6b6577eb0891a7ca8d551bdfa79bf5e8" # gcc-8.3.0-1
-
-inherit eutils toolchain flag-o-matic
-
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
- kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
- kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
-
-if [[ ${CATEGORY} != cross-* ]] ; then
- PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
-fi
-
-src_prepare() {
- if use elibc_Cygwin; then
- sed -e '/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
- -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" || die
- fi
- toolchain_src_prepare
-
- use vanilla && return 0
-
- # make sure 64-bits native targets don't screw up the linker paths
- epatch "${FILESDIR}"/no-libs-for-startfile.patch
- if use prefix; then
- epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs
- # --enable-multilib), but this does make sense in prefix only
- epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
- fi
-
- # make it have correct install_names on Darwin
- epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
-
- if [[ ${CHOST} == powerpc*-darwin* ]] ; then
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
- sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
- libgcc/config/t-slibgcc-darwin || die
- fi
-}
-
-src_configure() {
- local myconf=()
- case ${CTARGET}:" ${USE} " in
- powerpc*-darwin*)
- # bug #381179
- filter-flags "-mcpu=*" "-mtune=*"
- # bug #657522
- # A bug in configure checks whether -no-pie works, but the
- # compiler doesn't pass -no-pie onto the linker if -fno-PIE
- # isn't passed, so the configure check always finds -no-pie
- # is accepted. (Likewise, when -fno-PIE is passed, the
- # compiler passes -no_pie onto the linker.)
- # Since our linker doesn't grok this, avoid above checks to
- # be run
- # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
- export gcc_cv_c_no_fpie=no
- export gcc_cv_no_pie=no
- ;;
- *-solaris*)
- # todo: some magic for native vs. GNU linking?
- myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
- # Solaris 11 defines this in its headers, but that causes a
- # mismatch whilst compiling, bug #657514
- export ac_cv_func_aligned_alloc=no
- export ac_cv_func_memalign=no
- export ac_cv_func_posix_memalign=no
- ;;
- i[34567]86-*-linux*:*" prefix "*)
- # to allow the linux-x86-on-amd64.patch become useful, we need
- # to enable multilib, even if there is just one multilib option.
- myconf+=( --enable-multilib )
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
- # we might be on x86_64-linux, but don't do cross-compile, so
- # tell the host-compiler to really create 32bits (for stage1)
- # (real x86-linux-gcc also accept -m32).
- append-flags -m32
- fi
- ;;
- esac
-
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
- # least on Solaris, and AIX /bin/sh is way too slow,
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX
- # in case that doesn't exist yet
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
- toolchain_src_configure "${myconf[@]}"
-}
diff --git a/sys-devel/gcc/gcc-9.2.0-r3.ebuild b/sys-devel/gcc/gcc-9.2.0-r3.ebuild
deleted file mode 100644
index 1e233f97a7..0000000000
--- a/sys-devel/gcc/gcc-9.2.0-r3.ebuild
+++ /dev/null
@@ -1,98 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI="7"
-
-PATCH_VER="4"
-
-inherit toolchain
-
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-solaris"
-
-RDEPEND=""
-DEPEND="${RDEPEND}
- !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
- kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
- kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
-
-if [[ ${CATEGORY} != cross-* ]] ; then
- PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
-fi
-
-src_prepare() {
- if use elibc_Cygwin; then
- sed -e '/0001-share-mingw-fset-stack-executable-with-cygwin.patch/d' \
- -i "${WORKDIR}/gcc-${CYGWINPORTS_GITREV}/gcc.cygport" || die
- fi
- toolchain_src_prepare
-
- use vanilla && return 0
-
- # make sure 64-bits native targets don't screw up the linker paths
- eapply -p0 "${FILESDIR}"/no-libs-for-startfile.patch
- if use prefix; then
- eapply -p0 "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
- # try /usr/lib32 in 32bit profile on x86_64-linux (needs
- # --enable-multilib), but this does make sense in prefix only
- eapply -p0 "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
- fi
-
- # make it have correct install_names on Darwin
- eapply -p1 "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
-
- if [[ ${CHOST} == powerpc*-darwin* ]] ; then
- # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44107
- sed -i -e 's|^ifeq (/usr/lib,|ifneq (/usr/lib,|' \
- libgcc/config/t-slibgcc-darwin || die
- fi
-
- eapply_user
-}
-
-src_configure() {
- local myconf=()
- case ${CTARGET}:" ${USE} " in
- powerpc*-darwin*)
- # bug #381179
- filter-flags "-mcpu=*" "-mtune=*"
- # bug #657522
- # A bug in configure checks whether -no-pie works, but the
- # compiler doesn't pass -no-pie onto the linker if -fno-PIE
- # isn't passed, so the configure check always finds -no-pie
- # is accepted. (Likewise, when -fno-PIE is passed, the
- # compiler passes -no_pie onto the linker.)
- # Since our linker doesn't grok this, avoid above checks to
- # be run
- # NOTE: later ld64 does grok -no_pie, not -no-pie (as checked)
- export gcc_cv_c_no_fpie=no
- export gcc_cv_no_pie=no
- ;;
- *-solaris*)
- # todo: some magic for native vs. GNU linking?
- myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
- # Solaris 11 defines this in its headers, but that causes a
- # mismatch whilst compiling, bug #657514
- export ac_cv_func_aligned_alloc=no
- export ac_cv_func_memalign=no
- export ac_cv_func_posix_memalign=no
- ;;
- i[34567]86-*-linux*:*" prefix "*)
- # to allow the linux-x86-on-amd64.patch become useful, we need
- # to enable multilib, even if there is just one multilib option.
- myconf+=( --enable-multilib )
- if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
- # we might be on x86_64-linux, but don't do cross-compile, so
- # tell the host-compiler to really create 32bits (for stage1)
- # (real x86-linux-gcc also accept -m32).
- append-flags -m32
- fi
- ;;
- esac
-
- # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
- # least on Solaris, and AIX /bin/sh is way too slow,
- # so force it to use $BASH (that portage uses) - it can't be EPREFIX
- # in case that doesn't exist yet
- export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
- toolchain_src_configure "${myconf[@]}"
-}