Gentoo Archives: gentoo-commits

From: Fabian Groffen <grobian@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/prefix:master commit in: sys-devel/gcc/files/4.4.0/, sys-devel/gcc/files/4.6.3/, ...
Date: Wed, 23 Dec 2020 09:08:45
Message-Id: 1608714499.d55a710159791c2888f0677bb888e58cd57170ab.grobian@gentoo
1 tch sys-devel/gcc/files/gcc-4.8-aix-extref.patch sys-devel/gcc/files/gcc-4.8.2-linux-x86-on-amd64.patch sys-devel/gcc/files/gcc-4.8.4-aix-pthread-specs.patch sys-devel/gcc/files/gcc-4.8.4-aix-soname-libgcc.patch.xz sys-devel/gcc/files/gcc-4.8.4-aix-soname-libtool.patch.xz sys-devel/gcc/files/gcc-4.8.4-aix-soname-nm-weak.patch sys-devel/gcc/files/gcc-4.8.4-aix-soname-regen.patch.xz sys-devel/gcc/files/gcc-4.8.4-lowmem-build.patch sys-devel/gcc/files/gcc-5.3.0-libc_name_p.patch sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch sys-devel/gcc/files/gcj-4.3.1-iconvlink.patch sys-devel/gcc/files/interix-3.5-stdint.h sys-devel/gcc/files/mkinfodir sys-devel/gcc/files/pro-police-docs.patch sys-devel/gcc/files/scan_libgcc_linked_ssp.sh sys-devel/gcc/files/solaris-i386-ld-emulation.patch sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch sys-devel/gcc/files/stubs/gcc-3.3-ssp-stub.patch sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch sys-devel/gcc
2 /files/stubs/gcc-4.0-htb-stub.patch sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch sys-devel/gcc/gcc-5.4.0-r4.ebuild sys-devel/gcc/gcc-6.4.0-r2.ebuild sys-devel/gcc/metadata.xml
3 X-VCS-Directories: sys-devel/gcc/files/3.3.6/ sys-devel/gcc/files/4.3.0/ sys-devel/gcc/files/4.4.4/ sys-devel/gcc/files/ sys-devel/gcc/ sys-devel/gcc/files/4.5.1/ sys-devel/gcc/files/3.3.4/ sys-devel/gcc/files/3.4.4/ sys-devel/gcc/files/awk/ sys-devel/gcc/files/3.4.3/ sys-devel/gcc/files/stubs/ sys-devel/gcc/files/4.4.0/ sys-devel/gcc/files/4.6.3/
4 X-VCS-Committer: grobian
5 X-VCS-Committer-Name: Fabian Groffen
6 X-VCS-Revision: d55a710159791c2888f0677bb888e58cd57170ab
7 X-VCS-Branch: master
8 Date: Wed, 23 Dec 2020 09:08:41 +0000 (UTC)
9
10 commit: d55a710159791c2888f0677bb888e58cd57170ab
11 Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
12 AuthorDate: Wed Dec 23 09:08:19 2020 +0000
13 Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
14 CommitDate: Wed Dec 23 09:08:19 2020 +0000
15 URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=d55a7101
16
17 sys-devel/gcc: cleanup patches
18
19 Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2
20 RepoMan-Options: --force
21 Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
22
23 sys-devel/gcc/Manifest | 4 -
24 .../gcc/files/3.3.4/libffi-without-libgcj.patch | 22 -
25 .../gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch | 62 -
26 .../files/3.4.3/libffi-nogcj-lib-path-fix.patch | 40 -
27 .../gcc/files/3.4.3/libffi-without-libgcj.patch | 40 -
28 sys-devel/gcc/files/3.4.3/libssp.patch | 51 -
29 sys-devel/gcc/files/3.4.4/aix-force-pthread.patch | 231 ----
30 sys-devel/gcc/files/3.4.4/aix-runtimelinking.patch | 33 -
31 sys-devel/gcc/files/3.4.4/aix5300-08_ldcore.patch | 10 -
32 .../gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch | 63 -
33 .../gcc/files/3.4.4/gcc-3.4.4-softfloat.patch | 156 ---
34 sys-devel/gcc/files/3.4.4/prefix-search-dirs.patch | 13 -
35 sys-devel/gcc/files/4.3.0/solarisx86_64.patch | 100 --
36 sys-devel/gcc/files/4.3.0/targettools-checks.patch | 90 --
37 .../gcc/files/4.3.0/treelang-nomakeinfo.patch | 34 -
38 .../gcc/files/4.4.0/gcc-4.4.0-softfloat.patch | 89 --
39 .../gcc/files/4.4.0/gcc-4.4.1-solaris-x86_64.patch | 125 --
40 sys-devel/gcc/files/4.4.4/aix-bnoerok.patch | 15 -
41 sys-devel/gcc/files/4.5.1/aix-force-pthread.patch | 282 -----
42 sys-devel/gcc/files/4.5.1/gcc-4.5.1-mint1.patch | 32 -
43 .../gcc/files/4.5.1/ia64-hpux-always-pthread.patch | 22 -
44 sys-devel/gcc/files/4.5.1/solaris-x86_64.patch | 114 --
45 sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint1.patch | 335 ------
46 sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint2.patch | 1259 --------------------
47 sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint3.patch | 12 -
48 sys-devel/gcc/files/4.6.3/solaris-x86_64.patch | 215 ----
49 sys-devel/gcc/files/awk/fixlafiles.awk | 314 -----
50 sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la | 335 ------
51 sys-devel/gcc/files/awk/scanforssp.awk | 225 ----
52 sys-devel/gcc/files/c89 | 20 -
53 sys-devel/gcc/files/c99 | 21 -
54 sys-devel/gcc/files/fix_libtool_files.sh | 68 --
55 sys-devel/gcc/files/gcc-3.4.6-aix-largefiles.patch | 271 -----
56 .../files/gcc-4.2-ia64-hpux-always-pthread.patch | 22 -
57 .../files/gcc-4.2-pa-hpux-libgcc_s-soname.patch | 12 -
58 sys-devel/gcc/files/gcc-4.2.3-aix-largefiles.patch | 271 -----
59 sys-devel/gcc/files/gcc-4.2.4-aix-largefiles.patch | 271 -----
60 .../gcc/files/gcc-4.2.4-interix-all-source.patch | 11 -
61 .../gcc/files/gcc-4.2.4-interix-long-double.patch | 15 -
62 .../gcc/files/gcc-4.2.4-interix-x64-support.patch | 16 -
63 .../gcc/files/gcc-4.4.1-interix-avoid-bs.patch | 51 -
64 sys-devel/gcc/files/gcc-4.4.1-interix.patch | 350 ------
65 sys-devel/gcc/files/gcc-4.8-aix-extref.patch | 102 --
66 .../gcc/files/gcc-4.8.2-linux-x86-on-amd64.patch | 34 -
67 .../gcc/files/gcc-4.8.4-aix-pthread-specs.patch | 47 -
68 .../gcc/files/gcc-4.8.4-aix-soname-libgcc.patch.xz | Bin 2508 -> 0 bytes
69 .../files/gcc-4.8.4-aix-soname-libtool.patch.xz | Bin 5976 -> 0 bytes
70 .../gcc/files/gcc-4.8.4-aix-soname-nm-weak.patch | 40 -
71 .../gcc/files/gcc-4.8.4-aix-soname-regen.patch.xz | Bin 10440 -> 0 bytes
72 sys-devel/gcc/files/gcc-4.8.4-lowmem-build.patch | 24 -
73 sys-devel/gcc/files/gcc-5.3.0-libc_name_p.patch | 111 --
74 sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch | 30 -
75 sys-devel/gcc/files/gcj-4.3.1-iconvlink.patch | 17 -
76 sys-devel/gcc/files/interix-3.5-stdint.h | 301 -----
77 sys-devel/gcc/files/mkinfodir | 233 ----
78 sys-devel/gcc/files/pro-police-docs.patch | 74 --
79 sys-devel/gcc/files/scan_libgcc_linked_ssp.sh | 42 -
80 .../gcc/files/solaris-i386-ld-emulation.patch | 36 -
81 sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch | 59 -
82 sys-devel/gcc/files/stubs/gcc-3.3-ssp-stub.patch | 45 -
83 sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch | 32 -
84 sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch | 44 -
85 sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch | 32 -
86 sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch | 44 -
87 sys-devel/gcc/gcc-5.4.0-r4.ebuild | 4 -
88 sys-devel/gcc/gcc-6.4.0-r2.ebuild | 72 --
89 sys-devel/gcc/metadata.xml | 2 -
90 67 files changed, 7147 deletions(-)
91
92 diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest
93 index 7549317634..a1d6aa55a6 100644
94 --- a/sys-devel/gcc/Manifest
95 +++ b/sys-devel/gcc/Manifest
96 @@ -25,9 +25,6 @@ DIST gcc-5.4.0-patches-1.8.tar.bz2 32886 BLAKE2B 85879ba552ff21e198de568b2a1f254
97 DIST gcc-5.4.0-piepatches-v0.6.5.tar.bz2 14551 BLAKE2B 6f3de9be0990a7580785821d8c85114a1907571c06bdf3a15ad91258f7c9e8bb6a4d2ddb8615f33bedf0ad036d215507e004fc095f788e40c824ae0ab3ffbb05 SHA512 4890f0713d261982ab81a20f93c5f65193aa1dfa171e3f9e5867f0b80ec7c1e76c5a997b1a4e6f47f8ce36af54ac91125c5bff8bf6d971b7d77c65a57a40a3c0
98 DIST gcc-5.4.0-uclibc-patches-1.0.tar.bz2 3731 BLAKE2B fa436d1c1d9c150714092132f816740f8218dfeb4f9a6a8c830ea54d211a020f209e6fd1fcc313b2560b82c7855120053d346af72b7c12c88a7a948379dd2356 SHA512 009f34197e79c5e8c6497a0db01ac45cc657e92e56a663b4f3281661d108b2a129cd977fab5f0064f225d6812ae91e82bab22a2b10ae02c486881eeed85ec7a3
99 DIST gcc-5.4.0.tar.bz2 95661481 BLAKE2B bf882acfa28cc1064cddd21e25332fff6bc65505d6af9acb2e455916edbc4f6b1de9b3524867f51d7819fc4f213ce21332fbf67cf71cd6c7b96fb8907e51d570 SHA512 2941cc950c8f2409a314df497631f9b0266211aa74746c1839c46e04f1c7c299afe2528d1ef16ea39def408a644ba48f97519ec7a7dd37d260c3e9423514265b
100 -DIST gcc-6.4.0-patches-1.4.tar.bz2 13451 BLAKE2B 9934558989405141ae22c941fc4f5b4fb9dc425b0f35b458ab9c2704b8fbf61975a93c3d0e4c9ebde0cc7f935be868e9ad7ebdd78441235b81316fcca339fc42 SHA512 6d94f1ac196deabc8fcd30215bcbec4bbb19924929ef11c3000c8bfa189c59d87f95d37ac8cb0ff2d59cc2fc632b5767dbb80cbe7a354084cb2bc5e14cfbabb2
101 -DIST gcc-6.4.0-uclibc-patches-1.0.tar.bz2 1586 BLAKE2B 21f97a9e1c349b3d52def092a03e5a90533521da9af586be7ee527594f2d65745491ff8758d88c99a7ac215bde7ebf4e47a0a36cfcd7e66f70e0bebf2dadd922 SHA512 266dbe2bb53d892a24cd752d5c6833ea33f8df8b11b0471700ee53865243cd41f412f9bea8a369b474c9cd1435faff2e03902c7cb5638dd3ddcaa665aa2ec522
102 -DIST gcc-6.4.0.tar.xz 76156220 BLAKE2B 2018c338b28ea644cdd1b327cb0dfe7ee9aa2010357c93f7e71969f587c58d3fdfa2bb4c82a309490c48bc86924400022fa93f41dc6c4345878d1bc1d8204265 SHA512 02c60e54527c7adf584798d5251f8a0b80c93d5deafce82501b2c28e6692e0bd783927bbfc4bc527a863c0cccc025150a34740a9e29badb02d4b48e56a8aba90
103 DIST gcc-7.4.0-patches-1.1.tar.bz2 8778 BLAKE2B 52b02b3c619b99912ee254599788abebe3963cf85e49b56166069318e340a8e271d767e82798e6062fc2a042a86a88da66ab95f2d9e42933ff17688d616a903f SHA512 02ec2eb2460e24cf46f7a04ca3b80ca120719389a54a740070e991d9c96b6fd55d1fa04eb4249fd3043edc9c0f6519b5babcce76036cd0146183512aaae2d573
104 DIST gcc-7.4.0.tar.xz 62601888 BLAKE2B df91ec680d5389736d3a37a2d85cf2e12fbe87b642fdf4b332e67a043e00944aca00243cc6709f86abd92115cb5a78502146636395571d1ea4899531e15d5d0e SHA512 8864d8e4b97c2e1a4f17422f6e68120172ebefeab97b1757734f7185ca68a6b9a89011c6833c03fa454c17b0ac35b15e1d284881e6971035948ac6100f3aa45e
105 DIST gcc-8.3.0-patches-1.0.tar.bz2 12278 BLAKE2B 793465c5de0af850c7f3017b3011e68f3bd1664e6ce3500a3dc3003d37c03fe81857698957770a135eadd395a7767fa804d354ecdcdeb1d83623280ca569d4ec SHA512 0efadd2481713992807fed2683666f1094b3757674754601c079569f3ef70cd7aed3cefc9f815f4e59a21d37e4e940c122df714e16f3878a5f966450c4273669
106 @@ -36,5 +33,4 @@ DIST gcc-9.2.0-patches-4.tar.bz2 21655 BLAKE2B 2acf6d83ec934a65e77d2079a024b4262
107 DIST gcc-9.2.0.tar.xz 70607648 BLAKE2B 41a5e148f9a6857d6599679964c203533f76f330ad527fbe7c5e746d78f6f6f6d6d0f330a67cb1e794e155be8d1cd6e986bcc8a116d620dca410b78f0bcdd453 SHA512 a12dff52af876aee0fd89a8d09cdc455f35ec46845e154023202392adc164848faf8ee881b59b681b696e27c69fd143a214014db4214db62f9891a1c8365c040
108 DIST gcc-cygwinports-0de6b2ae6b6577eb0891a7ca8d551bdfa79bf5e8.tar.gz 20183 BLAKE2B dc9a4c78f98851ed77720d4c06d3fbf9f2d7d0e81a825cc89026994060fd29214f111fd3a52cec6518417cab2be89caf4a844a0869136287f174147ca7a6ebf3 SHA512 d01ee85a1327e7f6f16b3c2de6659699764f365215bd3e58247c5c65594153b9232bdc43ff89420cac75ad908ed39c7ff9fa4006818f5dd209b792d34d9ae7de
109 DIST gcc-cygwinports-11fa2eec213324d64673ad41358f726f6523667f.tar.gz 23047 BLAKE2B 83e44a2eed9e134ea2531e3ecff4479f4d305a55d14729ed11c91199c1f56ec7e2d4df48d56de11ba43a9e936019943edc370a04a26f6b3bfd5616230feeffa5 SHA512 f8cbf3b2b20c1950d0984fe672536d92f7d05b065495d93205d72b7578e696847f074430c6e642668d1c0c26fa9d98a4dfd3fce7030d45f2d04f80499437587c
110 -DIST gcc-cygwinports-a03d77536f40d1a6335b6d313a4e4a4dff38ce66.tar.gz 35809 BLAKE2B e009012e86b83032a7d316580eddfc8f03dccdaa9f573ce9a0e80209ef545748c4c98388238bc22c6666394346d5d4d42d21bf964454a6c05da1f80cd95f6ada SHA512 989b3b0bc0c55715d7c87fa59f465d2af7042e052a5d01e9cdb26fd61e08504a596a604aa482438560e011b8ea5d015da75f172ea5c2ea5b9a90e8943f355734
111 DIST gcc-cygwinports-f44d762eb3551ea0d81aa8e4b428bcb7caabb628.tar.gz 32780 BLAKE2B 364353bf379a2a950050148caf2cef86239f2418a98f72b3edec4cf56e43e7d07601f4d1ca8103c691ddddff0fca96a6a8c728e2e50bca373c34441bdc7505be SHA512 d5bc37965745fa32a3ddd357e658bd066d4aadf19eee7a30047f4dc6f47450d320e33cbbe4bf22fa6f5e30f7f41ec6ec3a250df56760a38df0f14fea3e34a83e
112
113 diff --git a/sys-devel/gcc/files/3.3.4/libffi-without-libgcj.patch b/sys-devel/gcc/files/3.3.4/libffi-without-libgcj.patch
114 deleted file mode 100644
115 index 507d42f00e..0000000000
116 --- a/sys-devel/gcc/files/3.3.4/libffi-without-libgcj.patch
117 +++ /dev/null
118 @@ -1,22 +0,0 @@
119 ---- configure.in.old 2004-06-26 07:01:06.000000000 +0200
120 -+++ configure.in 2004-06-26 07:02:55.000000000 +0200
121 -@@ -52,8 +52,7 @@
122 - host_tools="texinfo byacc flex bison binutils ld gas gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool grep diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils snavigator libtool gettext zip fastjar"
123 -
124 - # libgcj represents the runtime libraries only used by gcj.
125 --libgcj="target-libffi \
126 -- target-boehm-gc \
127 -+libgcj="target-boehm-gc \
128 - target-zlib \
129 - target-qthreads \
130 - target-libjava"
131 -@@ -66,7 +65,8 @@
132 - target-newlib \
133 - ${libstdcxx_version} \
134 - target-libf2c \
135 -- ${libgcj}
136 -+ ${libgcj} \
137 -+ target-libffi \
138 - target-libobjc"
139 -
140 - # these tools are built using the target libs, and are intended to run only
141
142 diff --git a/sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch b/sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch
143 deleted file mode 100644
144 index ff9b42bf96..0000000000
145 --- a/sys-devel/gcc/files/3.3.6/gcc-3.3.6-cross-compile.patch
146 +++ /dev/null
147 @@ -1,62 +0,0 @@
148 -Some notes on the 'bootstrap with or without libc headers' debate:
149 -http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html
150 -http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
151 -
152 ---- gcc/configure.in
153 -+++ gcc/configure.in
154 -@@ -1276,8 +1276,9 @@
155 - # This prevents libgcc2 from containing any code which requires libc
156 - # support.
157 - inhibit_libc=
158 --if { test x$host != x$target && test "x$with_headers" = x &&
159 -- test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then
160 -+if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
161 -+ test x$with_newlib = xyes ; } &&
162 -+ { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
163 - inhibit_libc=-Dinhibit_libc
164 - fi
165 - AC_SUBST(inhibit_libc)
166 ---- gcc/configure
167 -+++ gcc/configure
168 -@@ -1276,8 +1276,9 @@
169 - # This prevents libgcc2 from containing any code which requires libc
170 - # support.
171 - inhibit_libc=
172 --if { test x$host != x$target && test "x$with_headers" = x &&
173 -- test "x$with_sysroot" = x ; } || test x$with_newlib = xyes ; then
174 -+if { { test x$host != x$target && test "x$with_sysroot" = x ; } ||
175 -+ test x$with_newlib = xyes ; } &&
176 -+ { test "x$with_headers" = x || test "x$with_headers" = xno ; } ; then
177 - inhibit_libc=-Dinhibit_libc
178 - fi
179 - AC_SUBST(inhibit_libc)
180 ---- gcc/config/alpha/linux.h
181 -+++ gcc/config/alpha/linux.h
182 -@@ -72,6 +72,7 @@
183 - /* Do code reading to identify a signal frame, and set the frame
184 - state data appropriately. See unwind-dw2.c for the structs. */
185 -
186 -+#ifndef inhibit_libc
187 - #ifdef IN_LIBGCC2
188 - #include <signal.h>
189 - #include <sys/ucontext.h>
190 -@@ -121,3 +122,4 @@
191 - (FS)->retaddr_column = 64; \
192 - goto SUCCESS; \
193 - } while (0)
194 -+#endif /* inhibit_libc */
195 ---- gcc/config/i386/linux.h
196 -+++ gcc/config/i386/linux.h
197 -@@ -240,6 +240,7 @@
198 - /* Do code reading to identify a signal frame, and set the frame
199 - state data appropriately. See unwind-dw2.c for the structs. */
200 -
201 -+#ifndef inhibit_libc
202 - #ifdef IN_LIBGCC2
203 - /* There's no sys/ucontext.h for some (all?) libc1, so no
204 - signal-turned-exceptions for them. There's also no configure-run for
205 -@@ -304,3 +305,4 @@
206 - } while (0)
207 - #endif /* not USE_GNULIBC_1 */
208 - #endif /* IN_LIBGCC2 */
209 -+#endif /* inhibit_libc */
210
211 diff --git a/sys-devel/gcc/files/3.4.3/libffi-nogcj-lib-path-fix.patch b/sys-devel/gcc/files/3.4.3/libffi-nogcj-lib-path-fix.patch
212 deleted file mode 100644
213 index b5195e4e91..0000000000
214 --- a/sys-devel/gcc/files/3.4.3/libffi-nogcj-lib-path-fix.patch
215 +++ /dev/null
216 @@ -1,40 +0,0 @@
217 -diff -ur gcc-3.4.3/libffi/Makefile.in gcc-3.4.3-ffi-fixes/libffi/Makefile.in
218 ---- gcc-3.4.3/libffi/Makefile.in 2003-11-22 08:41:32.000000000 -0500
219 -+++ gcc-3.4.3-ffi-fixes/libffi/Makefile.in 2004-11-28 17:31:50.000000000 -0500
220 -@@ -89,7 +89,7 @@
221 - libffi_basedir = @libffi_basedir@
222 - tool_include_dir = @tool_include_dir@
223 - toolexecdir = @toolexecdir@
224 --toolexeclibdir = @toolexeclibdir@
225 -+toolexeclibdir = @toolexeclibdir@/@gcc_version@
226 -
227 - AUTOMAKE_OPTIONS = cygnus
228 -
229 -diff -ur gcc-3.4.3/libffi/configure gcc-3.4.3-ffi-fixes/libffi/configure
230 ---- gcc-3.4.3/libffi/configure 2004-05-18 05:08:39.000000000 -0400
231 -+++ gcc-3.4.3-ffi-fixes/libffi/configure 2004-11-28 17:48:19.000000000 -0500
232 -@@ -3800,8 +3800,8 @@
233 - toolexecdir='$(exec_prefix)/$(target_alias)'
234 - toolexeclibdir='$(toolexecdir)/lib'
235 - else
236 -- toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
237 -- toolexeclibdir='$(libdir)'
238 -+ toolexecdir='$(libdir)/gcc/$(target_alias)'
239 -+ toolexeclibdir='$(libdir)/gcc/$(target_alias)/$(gcc-version)'
240 - fi
241 - multi_os_directory=`$CC -print-multi-os-directory`
242 - case $multi_os_directory in
243 -diff -ur gcc-3.4.3/libffi/configure.in gcc-3.4.3-ffi-fixes/libffi/configure.in
244 ---- gcc-3.4.3/libffi/configure.in 2004-04-27 01:10:19.000000000 -0400
245 -+++ gcc-3.4.3-ffi-fixes/libffi/configure.in 2004-11-28 17:40:30.000000000 -0500
246 -@@ -225,8 +225,8 @@
247 - toolexecdir='$(exec_prefix)/$(target_alias)'
248 - toolexeclibdir='$(toolexecdir)/lib'
249 - else
250 -- toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
251 -- toolexeclibdir='$(libdir)'
252 -+ toolexecdir='$(libdir)/gcc/$(target_alias)'
253 -+ toolexeclibdir='$(libdir)/gcc/$(target_alias)/$(gcc_version)'
254 - fi
255 - multi_os_directory=`$CC -print-multi-os-directory`
256 - case $multi_os_directory in
257
258 diff --git a/sys-devel/gcc/files/3.4.3/libffi-without-libgcj.patch b/sys-devel/gcc/files/3.4.3/libffi-without-libgcj.patch
259 deleted file mode 100644
260 index b270a06ad8..0000000000
261 --- a/sys-devel/gcc/files/3.4.3/libffi-without-libgcj.patch
262 +++ /dev/null
263 @@ -1,40 +0,0 @@
264 ---- configure.in.orig 2004-08-03 00:53:36.000000000 +0200
265 -+++ configure.in 2004-08-03 00:52:35.000000000 +0200
266 -@@ -136,8 +136,7 @@
267 - host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
268 -
269 - # libgcj represents the runtime libraries only used by gcj.
270 --libgcj="target-libffi \
271 -- target-boehm-gc \
272 -+libgcj="target-boehm-gc \
273 - target-zlib \
274 - target-qthreads \
275 - target-libjava"
276 -@@ -150,6 +150,7 @@
277 - target-libstdc++-v3 \
278 - target-libf2c \
279 - ${libgcj} \
280 -+ target-libffi \
281 - target-libobjc"
282 -
283 - # these tools are built using the target libraries, and are intended to
284 ---- configure~ 2004-08-28 02:31:04.000000000 +0200
285 -+++ configure 2004-08-28 10:55:28.000000000 +0200
286 -@@ -876,8 +876,7 @@
287 - host_tools="texinfo byacc flex bison binutils gas ld gcc sid sim gdb make patch prms send-pr gprof etc expect dejagnu ash bash bzip2 m4 autoconf automake libtool diff rcs fileutils shellutils time textutils wdiff find uudecode hello tar gzip indent recode release sed utils guile perl gawk findutils gettext zip fastjar"
288 -
289 - # libgcj represents the runtime libraries only used by gcj.
290 --libgcj="target-libffi \
291 -- target-boehm-gc \
292 -+libgcj="target-boehm-gc \
293 - target-zlib \
294 - target-qthreads \
295 - target-libjava"
296 -@@ -891,6 +890,7 @@
297 - target-libstdc++-v3 \
298 - target-libf2c \
299 - ${libgcj} \
300 -+ target-libffi \
301 - target-libobjc"
302 -
303 - # these tools are built using the target libraries, and are intended to
304
305 diff --git a/sys-devel/gcc/files/3.4.3/libssp.patch b/sys-devel/gcc/files/3.4.3/libssp.patch
306 deleted file mode 100644
307 index 0f9608a181..0000000000
308 --- a/sys-devel/gcc/files/3.4.3/libssp.patch
309 +++ /dev/null
310 @@ -1,51 +0,0 @@
311 ---- gcc-3.4.3-ssp/gcc/gcc.c 2004-11-14 21:17:58.585438344 -0500
312 -+++ gcc-3.4.3-ssp-libssp/gcc/gcc.c 2004-11-21 13:28:43.699379520 -0500
313 -@@ -711,7 +711,17 @@
314 - static const char *link_gcc_c_sequence_spec = LINK_GCC_C_SEQUENCE_SPEC;
315 - static const char *asm_spec = ASM_SPEC;
316 - static const char *asm_final_spec = ASM_FINAL_SPEC;
317 -+
318 -+#if defined(_LIBSSP_PROVIDES_SSP_)
319 -+#if defined(EFAULT_PIE_SSP) || defined(EFAULT_SSP)
320 -+static const char *link_spec = LINK_SPEC " %{!fno-stack-protector|!fno-stack-protector-all:-lssp %{static: -lc}}";
321 -+#else
322 -+static const char *link_spec = LINK_SPEC " %{fstack-protector|fstack-protector-all:-lssp %{static: -lc}}";
323 -+#endif // defined(EFAULT_PIE_SSP) || defined(EFAULT_SSP)
324 -+#else
325 - static const char *link_spec = LINK_SPEC;
326 -+#endif // defined(_LIBSSP_PROVIDES_SSP_)
327 -+
328 - static const char *lib_spec = LIB_SPEC;
329 - static const char *libgcc_spec = LIBGCC_SPEC;
330 - static const char *endfile_spec = ENDFILE_SPEC;
331 -diff -Nru gcc-3.4.3-ssp/gcc/libgcc-std.ver gcc-3.4.3-ssp-libssp/gcc/libgcc-std.ver
332 ---- gcc-3.4.3-ssp/gcc/libgcc-std.ver 2004-11-14 21:18:00.004222656 -0500
333 -+++ gcc-3.4.3-ssp-libssp/gcc/libgcc-std.ver 2004-11-15 19:22:11.802713352 -0500
334 -@@ -175,7 +175,7 @@
335 - _Unwind_SjLj_ForcedUnwind
336 - _Unwind_SjLj_Resume
337 -
338 --%if !defined(_LIBC_PROVIDES_SSP_)
339 -+%if !defined(_LIBC_PROVIDES_SSP_) && !defined(_LIBSSP_PROVIDES_SSP_)
340 - # stack smash handler symbols
341 - __guard
342 - __stack_smash_handler
343 -diff -Nru gcc-3.4.3-ssp/gcc/libgcc2.c gcc-3.4.3-ssp-libssp/gcc/libgcc2.c
344 ---- gcc-3.4.3-ssp/gcc/libgcc2.c 2004-11-14 21:18:00.004222656 -0500
345 -+++ gcc-3.4.3-ssp-libssp/gcc/libgcc2.c 2004-11-15 19:24:58.428382400 -0500
346 -@@ -1680,7 +1680,7 @@
347 -
348 -
349 - #ifdef L_stack_smash_handler
350 --#ifndef _LIBC_PROVIDES_SSP_
351 -+#if !defined(_LIBC_PROVIDES_SSP_) && !defined(_LIBSSP_PROVIDES_SSP_)
352 - #include <stdio.h>
353 - #include <string.h>
354 - #include <fcntl.h>
355 -@@ -1797,5 +1797,5 @@
356 - #endif
357 - _exit (127);
358 - }
359 --#endif /* _LIBC_PROVIDES_SSP_ */
360 -+#endif /* _LIBC_PROVIDES_SSP_ && _LIBSSP_PROVIDES_SSP_ */
361 - #endif /* L_stack_smash_handler */
362
363 diff --git a/sys-devel/gcc/files/3.4.4/aix-force-pthread.patch b/sys-devel/gcc/files/3.4.4/aix-force-pthread.patch
364 deleted file mode 100644
365 index b3a23ffa77..0000000000
366 --- a/sys-devel/gcc/files/3.4.4/aix-force-pthread.patch
367 +++ /dev/null
368 @@ -1,231 +0,0 @@
369 -Because '-pthread' needs a different multilib library on AIX,
370 -always build with pthreads enabled, as we disable multilib in Prefix.
371 -Mixing pthread- and non-pthread-libs causes troubles anyway.
372 ---- gcc/config/rs6000/aix41.h.orig 2009-04-03 09:01:40.000000000 +0200
373 -+++ gcc/config/rs6000/aix41.h 2009-04-03 09:14:09.000000000 +0200
374 -@@ -51,7 +51,7 @@
375 - #define CPP_SPEC "%{posix: -D_POSIX_SOURCE}\
376 - %{ansi: -D_ANSI_C_SOURCE}\
377 - %{mpe: -I/usr/lpp/ppe.poe/include}\
378 -- %{pthread: -D_THREAD_SAFE}"
379 -+ %{pthread} -D_THREAD_SAFE"
380 -
381 - #undef TARGET_DEFAULT
382 - #define TARGET_DEFAULT MASK_NEW_MNEMONICS
383 -@@ -75,8 +75,8 @@
384 - #define LIB_SPEC "%{pg:-L/lib/profiled -L/usr/lib/profiled}\
385 - %{p:-L/lib/profiled -L/usr/lib/profiled} %{!shared:%{g*:-lg}}\
386 - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
387 -- %{pthread: -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
388 -- %{!pthread: -lc}"
389 -+ %{pthread:} -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\
390 -+ "
391 -
392 - #undef LINK_SPEC
393 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
394 -@@ -89,8 +89,8 @@
395 - %{!pg:%{p:/usr/lpp/ppe.poe/lib/mcrt0.o}\
396 - %{!p:/usr/lpp/ppe.poe/lib/crt0.o}}}\
397 - %{!mpe:\
398 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
399 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
400 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
401 -+ }}"
402 -
403 - /* AIX 4 uses PowerPC nop (ori 0,0,0) instruction as call glue for PowerPC
404 - and "cror 31,31,31" for POWER architecture. */
405 ---- gcc/config/rs6000/aix43.h.orig 2009-04-03 08:58:47.000000000 +0200
406 -+++ gcc/config/rs6000/aix43.h 2009-04-03 09:14:34.000000000 +0200
407 -@@ -116,7 +116,7 @@
408 - %{ansi: -D_ANSI_C_SOURCE}\
409 - %{maix64: -D__64BIT__}\
410 - %{mpe: -I/usr/lpp/ppe.poe/include}\
411 -- %{pthread: -D_THREAD_SAFE}"
412 -+ %{pthread:} -D_THREAD_SAFE"
413 -
414 - /* The GNU C++ standard library requires that these macros be
415 - defined. */
416 -@@ -128,7 +128,7 @@
417 - -D_ALL_SOURCE \
418 - %{maix64: -D__64BIT__} \
419 - %{mpe: -I/usr/lpp/ppe.poe/include} \
420 -- %{pthread: -D_THREAD_SAFE}"
421 -+ %{pthread:} -D_THREAD_SAFE"
422 -
423 - #undef TARGET_DEFAULT
424 - #define TARGET_DEFAULT MASK_NEW_MNEMONICS
425 -@@ -153,8 +153,8 @@
426 - %{p:-L/lib/profiled -L/usr/lib/profiled}\
427 - %{!maix64:%{!shared:%{g*:-lg}}}\
428 - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
429 -- %{pthread:-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a}\
430 -- %{!pthread:-lc}"
431 -+ %{pthread:}-L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a\
432 -+ "
433 -
434 - #undef LINK_SPEC
435 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
436 -@@ -166,8 +166,8 @@
437 - #define STARTFILE_SPEC "%{!shared:\
438 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
439 - %{!maix64:\
440 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
441 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
442 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
443 -+ }}"
444 -
445 - /* AIX 4.3 typedefs ptrdiff_t as "long" while earlier releases used "int". */
446 -
447 ---- gcc/config/rs6000/aix51.h.orig 2009-04-03 08:58:19.000000000 +0200
448 -+++ gcc/config/rs6000/aix51.h 2009-04-03 09:14:51.000000000 +0200
449 -@@ -117,7 +117,7 @@
450 - %{ansi: -D_ANSI_C_SOURCE} \
451 - %{maix64: -D__64BIT__} \
452 - %{mpe: -I/usr/lpp/ppe.poe/include} \
453 -- %{pthread: -D_THREAD_SAFE}"
454 -+ %{pthread:} -D_THREAD_SAFE"
455 -
456 - /* The GNU C++ standard library requires that these macros be
457 - defined. */
458 -@@ -129,7 +129,7 @@
459 - -D_ALL_SOURCE \
460 - %{maix64: -D__64BIT__} \
461 - %{mpe: -I/usr/lpp/ppe.poe/include} \
462 -- %{pthread: -D_THREAD_SAFE}"
463 -+ %{pthread:} -D_THREAD_SAFE"
464 -
465 - #undef TARGET_DEFAULT
466 - #define TARGET_DEFAULT MASK_NEW_MNEMONICS
467 -@@ -154,7 +154,7 @@
468 - %{p:-L/lib/profiled -L/usr/lib/profiled}\
469 - %{!maix64:%{!shared:%{g*:-lg}}}\
470 - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
471 -- %{pthread:-lpthreads} -lc"
472 -+ %{pthread:}-lpthreads -lc"
473 -
474 - #undef LINK_SPEC
475 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
476 -@@ -166,8 +166,8 @@
477 - #define STARTFILE_SPEC "%{!shared:\
478 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
479 - %{!maix64:\
480 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
481 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
482 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
483 -+ }}"
484 -
485 - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
486 -
487 ---- gcc/config/rs6000/aix52.h.orig 2009-04-03 08:58:14.000000000 +0200
488 -+++ gcc/config/rs6000/aix52.h 2009-04-03 09:15:08.000000000 +0200
489 -@@ -105,7 +105,7 @@
490 - %{ansi: -D_ANSI_C_SOURCE} \
491 - %{maix64: -D__64BIT__} \
492 - %{mpe: -I/usr/lpp/ppe.poe/include} \
493 -- %{pthread: -D_THREAD_SAFE}"
494 -+ %{pthread:} -D_THREAD_SAFE"
495 -
496 - /* The GNU C++ standard library requires that these macros be
497 - defined. */
498 -@@ -117,7 +117,7 @@
499 - -D_ALL_SOURCE \
500 - %{maix64: -D__64BIT__} \
501 - %{mpe: -I/usr/lpp/ppe.poe/include} \
502 -- %{pthread: -D_THREAD_SAFE}"
503 -+ %{pthread:} -D_THREAD_SAFE"
504 -
505 - #undef TARGET_DEFAULT
506 - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
507 -@@ -146,7 +146,7 @@
508 - %{p:-L/lib/profiled -L/usr/lib/profiled}\
509 - %{!maix64:%{!shared:%{g*:-lg}}}\
510 - %{mpe:-L/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
511 -- %{pthread:-lpthreads} -lc"
512 -+ %{pthread:}-lpthreads -lc"
513 -
514 - #undef LINK_SPEC
515 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
516 -@@ -158,8 +158,8 @@
517 - #define STARTFILE_SPEC "%{!shared:\
518 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
519 - %{!maix64:\
520 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
521 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
522 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
523 -+ }}"
524 -
525 - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
526 -
527 ---- gcc/config/rs6000/t-aix43.orig 2009-04-03 08:58:28.000000000 +0200
528 -+++ gcc/config/rs6000/t-aix43 2009-04-03 09:15:31.000000000 +0200
529 -@@ -10,13 +10,13 @@
530 - echo '#define FLOAT' > fp-bit.c
531 - cat $(srcdir)/config/fp-bit.c >> fp-bit.c
532 -
533 --# Build the libraries for pthread and all of the
534 -+# Build the libraries for all of the
535 - # different processor models
536 -
537 --MULTILIB_OPTIONS = pthread \
538 -+MULTILIB_OPTIONS = \
539 - mcpu=common/mcpu=power/mcpu=powerpc/maix64
540 -
541 --MULTILIB_DIRNAMES = pthread \
542 -+MULTILIB_DIRNAMES = \
543 - common power powerpc ppc64
544 -
545 - MULTILIB_MATCHES = mcpu?power=mcpu?power \
546 -@@ -47,7 +47,7 @@
547 - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
548 - @multilib_flags@ @shlib_objs@ -lc \
549 - `case @shlib_base_name@ in \
550 -- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
551 -+ *) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
552 - *) echo -lc ;; esac` ; \
553 - rm -f tmp-@shlib_base_name@.a ; \
554 - $(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \
555 -@@ -56,7 +56,7 @@
556 - # $(slibdir) double quoted to protect it from expansion while building
557 - # libgcc.mk. We want this delayed until actual install time.
558 - SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(DESTDIR)$$(slibdir)/
559 --SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac`
560 -+SHLIB_LIBS = -lc `case @shlib_base_name@ in *) echo -lpthread ;; esac`
561 - SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
562 - SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
563 - SHLIB_NM_FLAGS = -Bpg -X32_64
564 ---- gcc/config/rs6000/t-aix52.orig 2009-04-03 08:55:55.000000000 +0200
565 -+++ gcc/config/rs6000/t-aix52 2009-04-03 09:15:42.000000000 +0200
566 -@@ -10,12 +10,12 @@
567 - echo '#define FLOAT' > fp-bit.c
568 - cat $(srcdir)/config/fp-bit.c >> fp-bit.c
569 -
570 --# Build the libraries for pthread and all of the
571 -+# Build the libraries for all of the
572 - # different processor models
573 -
574 --MULTILIB_OPTIONS = pthread maix64
575 -+MULTILIB_OPTIONS = maix64
576 -
577 --MULTILIB_DIRNAMES = pthread ppc64
578 -+MULTILIB_DIRNAMES = ppc64
579 -
580 - MULTILIB_MATCHES =
581 -
582 -@@ -28,7 +28,7 @@
583 - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
584 - @multilib_flags@ @shlib_objs@ -lc \
585 - `case @shlib_base_name@ in \
586 -- *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
587 -+ *) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
588 - *) echo -lc ;; esac` ; \
589 - rm -f tmp-@shlib_base_name@.a ; \
590 - $(AR_CREATE_FOR_TARGET) tmp-@shlib_base_name@.a @multilib_dir@/shr.o ; \
591 -@@ -37,7 +37,7 @@
592 - # $(slibdir) double quoted to protect it from expansion while building
593 - # libgcc.mk. We want this delayed until actual install time.
594 - SHLIB_INSTALL = $(INSTALL_DATA) @shlib_base_name@.a $$(DESTDIR)$$(slibdir)/
595 --SHLIB_LIBS = -lc `case @shlib_base_name@ in *pthread*) echo -lpthread ;; esac`
596 -+SHLIB_LIBS = -lc `case @shlib_base_name@ in *) echo -lpthread ;; esac`
597 - SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
598 - SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
599 - SHLIB_NM_FLAGS = -Bpg -X32_64
600
601 diff --git a/sys-devel/gcc/files/3.4.4/aix-runtimelinking.patch b/sys-devel/gcc/files/3.4.4/aix-runtimelinking.patch
602 deleted file mode 100644
603 index 055d1e36a6..0000000000
604 --- a/sys-devel/gcc/files/3.4.4/aix-runtimelinking.patch
605 +++ /dev/null
606 @@ -1,33 +0,0 @@
607 ---- gcc/config/rs6000/aix43.h.orig 2009-05-04 16:28:08 +0200
608 -+++ gcc/config/rs6000/aix43.h 2009-05-04 16:28:29 +0200
609 -@@ -157,7 +157,7 @@
610 - "
611 -
612 - #undef LINK_SPEC
613 --#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
614 -+#define LINK_SPEC "-brtl -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
615 - %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
616 - %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
617 - %{mpe:-binitfini:poe_remote_main}"
618 ---- gcc/config/rs6000/aix51.h.orig 2009-05-04 16:28:12 +0200
619 -+++ gcc/config/rs6000/aix51.h 2009-05-04 16:28:32 +0200
620 -@@ -157,7 +157,7 @@
621 - %{pthread:}-lpthreads -lc"
622 -
623 - #undef LINK_SPEC
624 --#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
625 -+#define LINK_SPEC "-brtl -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
626 - %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
627 - %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
628 - %{mpe:-binitfini:poe_remote_main}"
629 ---- gcc/config/rs6000/aix52.h.orig 2009-05-04 16:28:15 +0200
630 -+++ gcc/config/rs6000/aix52.h 2009-05-04 16:28:35 +0200
631 -@@ -149,7 +149,7 @@
632 - %{pthread:}-lpthreads -lc"
633 -
634 - #undef LINK_SPEC
635 --#define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
636 -+#define LINK_SPEC "-brtl -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
637 - %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
638 - %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
639 - %{mpe:-binitfini:poe_remote_main}"
640
641 diff --git a/sys-devel/gcc/files/3.4.4/aix5300-08_ldcore.patch b/sys-devel/gcc/files/3.4.4/aix5300-08_ldcore.patch
642 deleted file mode 100644
643 index ecf461ad24..0000000000
644 --- a/sys-devel/gcc/files/3.4.4/aix5300-08_ldcore.patch
645 +++ /dev/null
646 @@ -1,10 +0,0 @@
647 ---- gcc/config/rs6000/aix52.h.orig 2009-04-09 13:51:21 +0200
648 -+++ gcc/config/rs6000/aix52.h 2009-04-09 15:49:14 +0200
649 -@@ -150,6 +150,7 @@
650 -
651 - #undef LINK_SPEC
652 - #define LINK_SPEC "-brtl -bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
653 -+ %{!shared:-bexpfull}\
654 - %{static:-bnso %(link_syscalls) } %{shared:-bM:SRE %{!e:-bnoentry}}\
655 - %{!maix64:%{!shared:%{g*: %(link_libg) }}} %{maix64:-b64}\
656 - %{mpe:-binitfini:poe_remote_main}"
657
658 diff --git a/sys-devel/gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch b/sys-devel/gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch
659 deleted file mode 100644
660 index 03895434d9..0000000000
661 --- a/sys-devel/gcc/files/3.4.4/gcc-3.4.4-cross-compile.patch
662 +++ /dev/null
663 @@ -1,63 +0,0 @@
664 -Some notes on the 'bootstrap with or without libc headers' debate:
665 -http://linuxfromscratch.org/pipermail/lfs-dev/2005-July/052409.html
666 -http://gcc.gnu.org/ml/gcc/2005-07/msg01195.html
667 -
668 ---- gcc/config/sh/linux.h
669 -+++ gcc/config/sh/linux.h
670 -@@ -145,6 +145,7 @@
671 - /* Do code reading to identify a signal frame, and set the frame
672 - state data appropriately. See unwind-dw2.c for the structs. */
673 -
674 -+#ifndef inhibit_libc
675 - #ifdef IN_LIBGCC2
676 - #include <signal.h>
677 - #include <sys/ucontext.h>
678 -@@ -295,6 +296,7 @@
679 -
680 - #endif /* defined (__SH5__) */
681 - #endif /* IN_LIBGCC2 */
682 -+#endif /* inhibit_libc */
683 -
684 - /* For SH3 and SH4, we use a slot of the unwind frame which correspond
685 - to a fake register number 16 as a placeholder for the return address
686 ---- gcc/config/i386/linux.h
687 -+++ gcc/config/i386/linux.h
688 -@@ -208,6 +208,7 @@
689 - /* Do code reading to identify a signal frame, and set the frame
690 - state data appropriately. See unwind-dw2.c for the structs. */
691 -
692 -+#ifndef inhibit_libc
693 - #ifdef IN_LIBGCC2
694 - /* There's no sys/ucontext.h for some (all?) libc1, so no
695 - signal-turned-exceptions for them. There's also no configure-run for
696 -@@ -272,3 +273,4 @@
697 - } while (0)
698 - #endif /* not USE_GNULIBC_1 */
699 - #endif /* IN_LIBGCC2 */
700 -+#endif /* inhibit_libc */
701 ---- gcc/config/alpha/linux.h
702 -+++ gcc/config/alpha/linux.h
703 -@@ -73,6 +73,7 @@
704 - /* Do code reading to identify a signal frame, and set the frame
705 - state data appropriately. See unwind-dw2.c for the structs. */
706 -
707 -+#ifndef inhibit_libc
708 - #ifdef IN_LIBGCC2
709 - #include <signal.h>
710 - #include <sys/ucontext.h>
711 -@@ -122,3 +123,4 @@
712 - (FS)->retaddr_column = 64; \
713 - goto SUCCESS; \
714 - } while (0)
715 -+#endif /* inhibit_libc */
716 ---- gcc/config.gcc
717 -+++ gcc/config.gcc
718 -@@ -321,7 +321,7 @@
719 - need_64bit_hwint=yes
720 - ;;
721 - # Note the 'l'; we need to be able to match e.g. "shle" or "shl".
722 --sh[123456789l]*-*-*)
723 -+sh[123456789lbe]*-*-*)
724 - cpu_type=sh
725 - need_64bit_hwint=yes
726 - ;;
727
728 diff --git a/sys-devel/gcc/files/3.4.4/gcc-3.4.4-softfloat.patch b/sys-devel/gcc/files/3.4.4/gcc-3.4.4-softfloat.patch
729 deleted file mode 100644
730 index 9646bed637..0000000000
731 --- a/sys-devel/gcc/files/3.4.4/gcc-3.4.4-softfloat.patch
732 +++ /dev/null
733 @@ -1,156 +0,0 @@
734 -The hunk for gcc/config/arm/t-linux comes from:
735 -http://gcc.gnu.org/PR14352
736 -
737 -The rest is a custom job by Yuri Vasilevski.
738 -
739 -The idea here is that we add soft float support into the spec file
740 -so that we don't have to worry about packages stripping out softfloat
741 -flags from CFLAGS/CXXFLAGS.
742 -
743 -http://bugs.gentoo.org/75585
744 -
745 ---- gcc-3.4.4/gcc/config/arm/coff.h
746 -+++ gcc-3.4.4/gcc/config/arm/coff.h
747 -@@ -31,11 +31,16 @@
748 - #define TARGET_VERSION fputs (" (ARM/coff)", stderr)
749 -
750 - #undef TARGET_DEFAULT
751 --#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
752 -+#define TARGET_DEFAULT \
753 -+ ( ARM_FLAG_SOFT_FLOAT \
754 -+ | ARM_FLAG_VFP \
755 -+ | ARM_FLAG_APCS_32 \
756 -+ | ARM_FLAG_APCS_FRAME \
757 -+ | ARM_FLAG_MMU_TRAPS )
758 -
759 - #ifndef MULTILIB_DEFAULTS
760 - #define MULTILIB_DEFAULTS \
761 -- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork" }
762 -+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork" }
763 - #endif
764 -
765 - /* This is COFF, but prefer stabs. */
766 ---- gcc-3.4.4/gcc/config/arm/elf.h
767 -+++ gcc-3.4.4/gcc/config/arm/elf.h
768 -@@ -46,7 +46,9 @@
769 -
770 - #ifndef SUBTARGET_ASM_FLOAT_SPEC
771 - #define SUBTARGET_ASM_FLOAT_SPEC "\
772 --%{mapcs-float:-mfloat} %{msoft-float:-mfpu=softfpa}"
773 -+%{mapcs-float:-mfloat} \
774 -+%{mhard-float:-mfpu=fpa} \
775 -+%{!mhard-float: %{msoft-float:-mfpu=softvfp} %{!msoft-float:-mfpu=softvfp}}"
776 - #endif
777 -
778 - #ifndef ASM_SPEC
779 -@@ -106,12 +108,17 @@
780 - #endif
781 -
782 - #ifndef TARGET_DEFAULT
783 --#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
784 -+#define TARGET_DEFAULT \
785 -+ (ARM_FLAG_SOFT_FLOAT \
786 -+ | ARM_FLAG_VFP \
787 -+ | ARM_FLAG_APCS_32 \
788 -+ | ARM_FLAG_APCS_FRAME \
789 -+ | ARM_FLAG_MMU_TRAPS )
790 - #endif
791 -
792 - #ifndef MULTILIB_DEFAULTS
793 - #define MULTILIB_DEFAULTS \
794 -- { "marm", "mlittle-endian", "msoft-float", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
795 -+ { "marm", "mlittle-endian", "mapcs-32", "mno-thumb-interwork", "fno-leading-underscore" }
796 - #endif
797 -
798 - #define TARGET_ASM_FILE_START_APP_OFF true
799 ---- gcc-3.4.4/gcc/config/arm/linux-elf.h
800 -+++ gcc-3.4.4/gcc/config/arm/linux-elf.h
801 -@@ -44,20 +44,33 @@
802 - #define TARGET_LINKER_EMULATION "armelf_linux"
803 - #endif
804 -
805 --/* Default is to use APCS-32 mode. */
806 -+/*
807 -+ * Default is to use APCS-32 mode with soft-vfp.
808 -+ * The old Linux default for floats can be achieved with -mhard-float
809 -+ * or with the configure --with-float=hard option.
810 -+ * If -msoft-float or --with-float=soft is used then software float
811 -+ * support will be used just like the default but with the legacy
812 -+ * big endian word ordering for double float representation instead.
813 -+ */
814 - #undef TARGET_DEFAULT
815 - #define TARGET_DEFAULT \
816 - ( ARM_FLAG_APCS_32 | \
817 -+ ARM_FLAG_SOFT_FLOAT | \
818 -+ ARM_FLAG_VFP | \
819 - ARM_FLAG_MMU_TRAPS | \
820 - TARGET_ENDIAN_DEFAULT )
821 -
822 -+#undef SUBTARGET_EXTRA_ASM_SPEC
823 -+#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \
824 -+%{!mhard-float: %{msoft-float:-mfpu=softvfp} %{!msoft-float:-mfpu=softvfp}}"
825 -+
826 - #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
827 -
828 - #define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION " -p"
829 -
830 - #undef MULTILIB_DEFAULTS
831 - #define MULTILIB_DEFAULTS \
832 -- { "marm", TARGET_ENDIAN_OPTION, "mhard-float", "mapcs-32", "mno-thumb-interwork" }
833 -+ { "marm", TARGET_ENDIAN_OPTION, "mapcs-32", "mno-thumb-interwork" }
834 -
835 - #define CPP_APCS_PC_DEFAULT_SPEC "-D__APCS_32__"
836 -
837 -@@ -72,7 +85,7 @@
838 - %{shared:-lc} \
839 - %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
840 -
841 --#define LIBGCC_SPEC "%{msoft-float:-lfloat} -lgcc"
842 -+#define LIBGCC_SPEC "-lgcc"
843 -
844 - /* Provide a STARTFILE_SPEC appropriate for GNU/Linux. Here we add
845 - the GNU/Linux magical crtbegin.o file (see crtstuff.c) which
846 ---- gcc-3.4.4/gcc/config/arm/t-linux
847 -+++ gcc-3.4.4/gcc/config/arm/t-linux
848 -@@ -4,7 +4,10 @@
849 - LIBGCC2_DEBUG_CFLAGS = -g0
850 -
851 - LIB1ASMSRC = arm/lib1funcs.asm
852 --LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx
853 -+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
854 -+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
855 -+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
856 -+ _fixsfsi _fixunssfsi
857 -
858 - # MULTILIB_OPTIONS = mhard-float/msoft-float
859 - # MULTILIB_DIRNAMES = hard-float soft-float
860 ---- gcc-3.4.4/gcc/config/arm/unknown-elf.h
861 -+++ gcc-3.4.4/gcc/config/arm/unknown-elf.h
862 -@@ -30,7 +30,12 @@
863 -
864 - /* Default to using APCS-32 and software floating point. */
865 - #ifndef TARGET_DEFAULT
866 --#define TARGET_DEFAULT (ARM_FLAG_SOFT_FLOAT | ARM_FLAG_APCS_32 | ARM_FLAG_APCS_FRAME | ARM_FLAG_MMU_TRAPS)
867 -+#define TARGET_DEFAULT \
868 -+ ( ARM_FLAG_SOFT_FLOAT \
869 -+ | ARM_FLAG_VFP \
870 -+ | ARM_FLAG_APCS_32 \
871 -+ | ARM_FLAG_APCS_FRAME \
872 -+ | ARM_FLAG_MMU_TRAPS )
873 - #endif
874 -
875 - /* Now we define the strings used to build the spec file. */
876 ---- gcc-3.4.4/gcc/config/arm/xscale-elf.h
877 -+++ gcc-3.4.4/gcc/config/arm/xscale-elf.h
878 -@@ -51,9 +51,9 @@
879 -
880 - #define SUBTARGET_EXTRA_ASM_SPEC "%{!mcpu=*:-mcpu=xscale} \
881 - %{mhard-float:-mfpu=fpa} \
882 -- %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
883 -+ %{!mhard-float: %{msoft-float:-mfpu=softvfp} %{!msoft-float:-mfpu=softvfp}}"
884 -
885 - #ifndef MULTILIB_DEFAULTS
886 - #define MULTILIB_DEFAULTS \
887 -- { "mlittle-endian", "mno-thumb-interwork", "marm", "msoft-float" }
888 -+ { "mlittle-endian", "mno-thumb-interwork", "marm" }
889 - #endif
890
891 diff --git a/sys-devel/gcc/files/3.4.4/prefix-search-dirs.patch b/sys-devel/gcc/files/3.4.4/prefix-search-dirs.patch
892 deleted file mode 100644
893 index 08e558a237..0000000000
894 --- a/sys-devel/gcc/files/3.4.4/prefix-search-dirs.patch
895 +++ /dev/null
896 @@ -1,13 +0,0 @@
897 ---- gcc/gcc.c.orig 2009-03-25 19:20:50 +0100
898 -+++ gcc/gcc.c 2009-03-26 00:37:23 +0100
899 -@@ -1525,8 +1525,8 @@ static const char *gcc_libexec_prefix;
900 - #endif
901 -
902 - static const char *const standard_exec_prefix = STANDARD_EXEC_PREFIX;
903 --static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/";
904 --static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/";
905 -+static const char *const standard_exec_prefix_1 = "@GENTOO_PORTAGE_EPREFIX@/usr/libexec/gcc/";
906 -+static const char *const standard_exec_prefix_2 = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/";
907 - static const char *md_exec_prefix = MD_EXEC_PREFIX;
908 -
909 - static const char *md_startfile_prefix = MD_STARTFILE_PREFIX;
910
911 diff --git a/sys-devel/gcc/files/4.3.0/solarisx86_64.patch b/sys-devel/gcc/files/4.3.0/solarisx86_64.patch
912 deleted file mode 100644
913 index 7536aa45ec..0000000000
914 --- a/sys-devel/gcc/files/4.3.0/solarisx86_64.patch
915 +++ /dev/null
916 @@ -1,100 +0,0 @@
917 ---- gcc/config.orig/i386/sol2-64.h
918 -+++ gcc/config/i386/sol2-64.h
919 -@@ -0,0 +1,5 @@
920 -+/* Definitions of target machine for GCC, for bi-arch i386
921 -+ running Solaris 2, defaulting to 64-bit code generation. */
922 -+
923 -+#undef MULTILIB_DEFAULTS
924 -+#define MULTILIB_DEFAULTS { "m64" }
925 ---- gcc/config.gcc
926 -+++ gcc/config.gcc
927 -@@ -1251,6 +1246,78 @@
928 - ;;
929 - esac
930 - ;;
931 -+x86_64-*-solaris2*)
932 -+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
933 -+ case ${target} in
934 -+ *-*-solaris2.1[0-9]*)
935 -+ tm_file="${tm_file} sol2-10.h"
936 -+ ;;
937 -+ esac
938 -+ tm_file="${tm_file} i386/sol2.h"
939 -+ tmake_file="t-sol2 i386/t-sol2 t-svr4"
940 -+ c_target_objs="sol2-c.o"
941 -+ cxx_target_objs="sol2-c.o"
942 -+ extra_objs="sol2.o"
943 -+ tm_p_file="${tm_p_file} sol2-protos.h"
944 -+ if test x$gnu_ld = xyes; then
945 -+ tmake_file="$tmake_file t-slibgcc-elf-ver"
946 -+ tm_defines="${tm_defines} TARGET_GNU_LD=1"
947 -+ else
948 -+ tmake_file="$tmake_file t-slibgcc-sld"
949 -+ fi
950 -+ if test x$gas = xyes; then
951 -+ tm_file="usegas.h ${tm_file}"
952 -+ fi
953 -+ case ${target} in
954 -+ *-*-solaris2.[789] | *-*-solaris2.1[0-9]*)
955 -+ tm_file="$tm_file tm-dwarf2.h"
956 -+ ;;
957 -+ esac
958 -+ case ${target} in
959 -+ *-*-solaris2.1[0-9]*)
960 -+ tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h i386/sol2-64.h"
961 -+ tm_defines="${tm_defines} TARGET_BI_ARCH=1"
962 -+ tmake_file="$tmake_file i386/t-crtstuff i386/t-sol2-10"
963 -+ need_64bit_hwint=yes
964 -+ # FIXME: -m64 for i[34567]86-*-* should be allowed just
965 -+ # like -m32 for x86_64-*-*.
966 -+ case X"${with_cpu}" in
967 -+ Xgeneric|Xnocona|Xx86-64|Xk8|Xopteron|Xathlon64|Xathlon-fx)
968 -+ ;;
969 -+ X)
970 -+ with_cpu=generic
971 -+ ;;
972 -+ *)
973 -+ echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
974 -+ echo "generic nocona x86-64 k8 opteron athlon64 athlon-fx" 1>&2
975 -+ exit 1
976 -+ ;;
977 -+ esac
978 -+ # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
979 -+ # part of the base system.
980 -+ extra_parts="gmon.o crtbegin.o crtend.o"
981 -+ ;;
982 -+ *)
983 -+ extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
984 -+ ;;
985 -+ esac
986 -+ case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
987 -+ "":yes:* | yes:yes:* )
988 -+ case ${target} in
989 -+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
990 -+ thread_file=posix95
991 -+ ;;
992 -+ *)
993 -+ thread_file=posix
994 -+ ;;
995 -+ esac
996 -+ ;;
997 -+ "":*:yes | yes:*:yes )
998 -+ thread_file=solaris
999 -+ ;;
1000 -+ esac
1001 -+ extra_headers="mmintrin.h mm3dnow.h xmmintrin.h emmintrin.h pmmintrin.h"
1002 -+ ;;
1003 - i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1004 - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h i386/sysv5.h"
1005 - if test x$stabs = xyes
1006 ---- libgcc/config.host
1007 -+++ libgcc/config.host
1008 -@@ -352,6 +352,8 @@
1009 - ;;
1010 - i[34567]86-*-sco3.2v5*) # 80386 running SCO Open Server 5
1011 - ;;
1012 -+x86_64-*-solaris2*)
1013 -+ ;;
1014 - i[34567]86-*-solaris2*)
1015 - ;;
1016 - i[34567]86-*-sysv5*) # Intel x86 on System V Release 5
1017
1018 diff --git a/sys-devel/gcc/files/4.3.0/targettools-checks.patch b/sys-devel/gcc/files/4.3.0/targettools-checks.patch
1019 deleted file mode 100644
1020 index 822c87886e..0000000000
1021 --- a/sys-devel/gcc/files/4.3.0/targettools-checks.patch
1022 +++ /dev/null
1023 @@ -1,90 +0,0 @@
1024 -# Since http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33637 lacks
1025 -# a real fix, this is just an ugly workaround required for AIX.
1026 -
1027 ---- gcc/configure.ac.orig 2007-10-08 16:18:43 +0200
1028 -+++ gcc/configure.ac 2007-10-08 16:22:22 +0200
1029 -@@ -1877,7 +1877,7 @@
1030 - elif test -x as$build_exeext; then
1031 - # Build using assembler in the current directory.
1032 - gcc_cv_as=./as$build_exeext
1033 --elif test -x $AS_FOR_TARGET; then
1034 -+elif ( set dummy $AS_FOR_TARGET; test -x $[2] ); then
1035 - gcc_cv_as="$AS_FOR_TARGET"
1036 - else
1037 - AC_PATH_PROG(gcc_cv_as, $AS_FOR_TARGET)
1038 -@@ -1928,7 +1928,7 @@
1039 - elif test -x collect-ld$build_exeext; then
1040 - # Build using linker in the current directory.
1041 - gcc_cv_ld=./collect-ld$build_exeext
1042 --elif test -x $LD_FOR_TARGET; then
1043 -+elif ( set dummy $LD_FOR_TARGET; test -x $[2] ); then
1044 - gcc_cv_ld="$LD_FOR_TARGET"
1045 - else
1046 - AC_PATH_PROG(gcc_cv_ld, $LD_FOR_TARGET)
1047 -@@ -1975,7 +1975,7 @@
1048 - gcc_cv_nm=../binutils/nm-new$build_exeext
1049 - elif test -x nm$build_exeext; then
1050 - gcc_cv_nm=./nm$build_exeext
1051 --elif test -x $NM_FOR_TARGET; then
1052 -+elif ( set dummy $NM_FOR_TARGET; test -x $[2] ); then
1053 - gcc_cv_nm="$NM_FOR_TARGET"
1054 - else
1055 - AC_PATH_PROG(gcc_cv_nm, $NM_FOR_TARGET)
1056 -@@ -2003,7 +2003,7 @@
1057 - gcc_cv_objdump=../binutils/objdump$build_exeext
1058 - elif test -x objdump$build_exeext; then
1059 - gcc_cv_objdump=./objdump$build_exeext
1060 --elif test -x $OBJDUMP_FOR_TARGET; then
1061 -+elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $[2] ); then
1062 - gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
1063 - else
1064 - AC_PATH_PROG(gcc_cv_objdump, $OBJDUMP_FOR_TARGET)
1065 ---- gcc/configure.orig 2007-10-08 16:18:46 +0200
1066 -+++ gcc/configure 2007-10-08 16:23:26 +0200
1067 -@@ -13303,7 +13303,7 @@
1068 - elif test -x as$build_exeext; then
1069 - # Build using assembler in the current directory.
1070 - gcc_cv_as=./as$build_exeext
1071 --elif test -x $AS_FOR_TARGET; then
1072 -+elif ( set dummy $AS_FOR_TARGET; test -x $2 ); then
1073 - gcc_cv_as="$AS_FOR_TARGET"
1074 - else
1075 - # Extract the first word of "$AS_FOR_TARGET", so it can be a program name with args.
1076 -@@ -13419,7 +13419,7 @@
1077 - elif test -x collect-ld$build_exeext; then
1078 - # Build using linker in the current directory.
1079 - gcc_cv_ld=./collect-ld$build_exeext
1080 --elif test -x $LD_FOR_TARGET; then
1081 -+elif ( set dummy $LD_FOR_TARGET; test -x $2 ); then
1082 - gcc_cv_ld="$LD_FOR_TARGET"
1083 - else
1084 - # Extract the first word of "$LD_FOR_TARGET", so it can be a program name with args.
1085 -@@ -13510,7 +13510,7 @@
1086 - gcc_cv_nm=../binutils/nm-new$build_exeext
1087 - elif test -x nm$build_exeext; then
1088 - gcc_cv_nm=./nm$build_exeext
1089 --elif test -x $NM_FOR_TARGET; then
1090 -+elif ( set dummy $NM_FOR_TARGET; test -x $2 ); then
1091 - gcc_cv_nm="$NM_FOR_TARGET"
1092 - else
1093 - # Extract the first word of "$NM_FOR_TARGET", so it can be a program name with args.
1094 -@@ -13584,7 +13584,7 @@
1095 - gcc_cv_objdump=../binutils/objdump$build_exeext
1096 - elif test -x objdump$build_exeext; then
1097 - gcc_cv_objdump=./objdump$build_exeext
1098 --elif test -x $OBJDUMP_FOR_TARGET; then
1099 -+elif ( set dummy $OBJDUMP_FOR_TARGET; test -x $2 ); then
1100 - gcc_cv_objdump="$OBJDUMP_FOR_TARGET"
1101 - else
1102 - # Extract the first word of "$OBJDUMP_FOR_TARGET", so it can be a program name with args.
1103 ---- gcc/exec-tool.in.orig 2009-09-28 17:15:51 +0200
1104 -+++ gcc/exec-tool.in 2009-09-28 17:16:06 +0200
1105 -@@ -73,7 +73,7 @@
1106 - fi
1107 - ;;
1108 - *)
1109 -- exec "$original" ${1+"$@"}
1110 -+ exec $original ${1+"$@"}
1111 - ;;
1112 - esac
1113 -
1114
1115 diff --git a/sys-devel/gcc/files/4.3.0/treelang-nomakeinfo.patch b/sys-devel/gcc/files/4.3.0/treelang-nomakeinfo.patch
1116 deleted file mode 100644
1117 index 318436a27e..0000000000
1118 --- a/sys-devel/gcc/files/4.3.0/treelang-nomakeinfo.patch
1119 +++ /dev/null
1120 @@ -1,34 +0,0 @@
1121 -Index: gcc-4.3/gcc/Makefile.in
1122 -===================================================================
1123 ---- gcc-4.3/gcc/Makefile.in (revision 131913)
1124 -+++ gcc-4.3/gcc/Makefile.in (working copy)
1125 -@@ -3617,7 +3622,11 @@ doc: $(BUILD_INFO) $(GENERATED_MANPAGES)
1126 - INFOFILES = doc/cpp.info doc/gcc.info doc/gccint.info \
1127 - doc/gccinstall.info doc/cppinternals.info
1128 -
1129 -+ifneq ($(BUILD_INFO),)
1130 - info: $(INFOFILES) lang.info @GENINSRC@ srcinfo lang.srcinfo
1131 -+else
1132 -+info:
1133 -+endif
1134 -
1135 - srcinfo: $(INFOFILES)
1136 - -cp -p $^ $(srcdir)/doc
1137 -@@ -3983,6 +3992,7 @@ install-driver: installdirs xgcc$(exeext
1138 - mv -f $(target_noncanonical)-gcc-tmp$(exeext) $(GCC_TARGET_INSTALL_NAME)$(exeext) ); \
1139 - fi
1140 -
1141 -+ifneq ($(BUILD_INFO),)
1142 - # Install the info files.
1143 - # $(INSTALL_DATA) might be a relative pathname, so we can't cd into srcdir
1144 - # to do the install.
1145 -@@ -3993,6 +4003,9 @@ install-info:: doc installdirs \
1146 - $(DESTDIR)$(infodir)/gccinstall.info \
1147 - $(DESTDIR)$(infodir)/gccint.info \
1148 - lang.install-info
1149 -+else
1150 -+install-info:: doc installdirs
1151 -+endif
1152 -
1153 - $(DESTDIR)$(infodir)/%.info: doc/%.info installdirs
1154 - rm -f $@
1155
1156 diff --git a/sys-devel/gcc/files/4.4.0/gcc-4.4.0-softfloat.patch b/sys-devel/gcc/files/4.4.0/gcc-4.4.0-softfloat.patch
1157 deleted file mode 100644
1158 index bf8d7180cf..0000000000
1159 --- a/sys-devel/gcc/files/4.4.0/gcc-4.4.0-softfloat.patch
1160 +++ /dev/null
1161 @@ -1,89 +0,0 @@
1162 -The hunk for gcc/config/arm/t-linux comes from:
1163 -http://gcc.gnu.org/PR14352
1164 -
1165 -The rest is a custom job by Yuri Vasilevski.
1166 -
1167 -The idea here is that we add soft float support into the spec file
1168 -so that we don't have to worry about packages stripping out softfloat
1169 -flags from CFLAGS/CXXFLAGS.
1170 -
1171 -http://bugs.gentoo.org/75585
1172 -
1173 ---- gcc-4.0.2/gcc/config/arm/elf.h
1174 -+++ gcc-4.0.2/gcc/config/arm/elf.h
1175 -@@ -45,8 +45,9 @@
1176 - #endif
1177 -
1178 - #ifndef SUBTARGET_ASM_FLOAT_SPEC
1179 --#define SUBTARGET_ASM_FLOAT_SPEC "\
1180 --%{mapcs-float:-mfloat}"
1181 -+#define SUBTARGET_ASM_FLOAT_SPEC "%{mapcs-float:-mfloat} \
1182 -+ %{mhard-float:-mfpu=fpa} \
1183 -+ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
1184 - #endif
1185 -
1186 - #ifndef ASM_SPEC
1187 -@@ -58,8 +59,6 @@
1188 - %{mapcs-*:-mapcs-%*} \
1189 - %(subtarget_asm_float_spec) \
1190 - %{mthumb-interwork:-mthumb-interwork} \
1191 --%{msoft-float:-mfloat-abi=soft} %{mhard-float:-mfloat-abi=hard} \
1192 --%{mfloat-abi=*} %{mfpu=*} \
1193 - %(subtarget_extra_asm_spec)"
1194 - #endif
1195 -
1196 ---- gcc-4.0.2/gcc/config/arm/linux-elf.h
1197 -+++ gcc-4.0.2/gcc/config/arm/linux-elf.h
1198 -@@ -28,7 +28,7 @@
1199 - #define TARGET_VERSION fputs (" (ARM GNU/Linux with ELF)", stderr);
1200 -
1201 - #undef TARGET_DEFAULT_FLOAT_ABI
1202 --#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_HARD
1203 -+#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFT
1204 -
1205 - /* TARGET_BIG_ENDIAN_DEFAULT is set in
1206 - config.gcc for big endian configurations. */
1207 -@@ -44,6 +44,10 @@
1208 -
1209 - #undef TARGET_DEFAULT
1210 - #define TARGET_DEFAULT (TARGET_ENDIAN_DEFAULT)
1211 -+#undef SUBTARGET_EXTRA_ASM_SPEC
1212 -+#define SUBTARGET_EXTRA_ASM_SPEC "%{mhard-float:-mfpu=fpa} \
1213 -+ %{!mhard-float: %{msoft-float:-mfpu=softfpa;:-mfpu=softvfp}}"
1214 -+
1215 -
1216 - #define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm6
1217 -
1218 -@@ -51,7 +55,7 @@
1219 -
1220 - #undef MULTILIB_DEFAULTS
1221 - #define MULTILIB_DEFAULTS \
1222 -- { "marm", "mlittle-endian", "mhard-float", "mno-thumb-interwork" }
1223 -+ { "marm", TARGET_ENDIAN_OPTION, "msoft-float", "mno-thumb-interwork" }
1224 -
1225 - /* Now we define the strings used to build the spec file. */
1226 - #undef LIB_SPEC
1227 -@@ -60,7 +64,7 @@
1228 - %{shared:-lc} \
1229 - %{!shared:%{profile:-lc_p}%{!profile:-lc}}"
1230 -
1231 --#define LIBGCC_SPEC "%{msoft-float:-lfloat} %{mfloat-abi=soft*:-lfloat} -lgcc"
1232 -+#define LIBGCC_SPEC "-lgcc"
1233 -
1234 - #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2"
1235 -
1236 ---- gcc-4.0.2/gcc/config/arm/t-linux
1237 -+++ gcc-4.0.2/gcc/config/arm/t-linux
1238 -@@ -3,8 +3,10 @@
1239 - TARGET_LIBGCC2_CFLAGS = -fomit-frame-pointer -fPIC
1240 -
1241 - LIB1ASMSRC = arm/lib1funcs.asm
1242 --LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx _clzsi2 _clzdi2 \
1243 -- _arm_addsubdf3 _arm_addsubsf3
1244 -+LIB1ASMFUNCS = _udivsi3 _divsi3 _umodsi3 _modsi3 _dvmd_lnx \
1245 -+ _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi _fixunsdfsi \
1246 -+ _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2 \
1247 -+ _fixsfsi _fixunssfsi _floatdidf _floatdisf
1248 -
1249 - # MULTILIB_OPTIONS = mhard-float/msoft-float
1250 - # MULTILIB_DIRNAMES = hard-float soft-float
1251
1252 diff --git a/sys-devel/gcc/files/4.4.0/gcc-4.4.1-solaris-x86_64.patch b/sys-devel/gcc/files/4.4.0/gcc-4.4.1-solaris-x86_64.patch
1253 deleted file mode 100644
1254 index 5cec9a443c..0000000000
1255 --- a/sys-devel/gcc/files/4.4.0/gcc-4.4.1-solaris-x86_64.patch
1256 +++ /dev/null
1257 @@ -1,125 +0,0 @@
1258 ---- gcc-4.4.1/gcc/config.gcc
1259 -+++ gcc-4.4.1/gcc/config.gcc
1260 -@@ -2235,6 +2235,70 @@
1261 - "":*:yes | yes:*:yes ) thread_file=solaris ;;
1262 - esac
1263 - ;;
1264 -+x86_64-*-solaris2*)
1265 -+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
1266 -+ case ${target} in
1267 -+ *-*-solaris2.1[0-9]*)
1268 -+ tm_file="${tm_file} sol2-10.h"
1269 -+ ;;
1270 -+ esac
1271 -+ tm_file="${tm_file} i386/sol2.h"
1272 -+ tmake_file="${tmake_file} t-sol2 t-svr4"
1273 -+ c_target_objs="${c_target_objs} sol2-c.o"
1274 -+ cxx_target_objs="${cxx_target_objs} sol2-c.o"
1275 -+ extra_objs="sol2.o"
1276 -+ tm_p_file="${tm_p_file} sol2-protos.h"
1277 -+ if test x$gnu_ld = xyes; then
1278 -+ tmake_file="$tmake_file t-slibgcc-elf-ver"
1279 -+ tm_defines="${tm_defines} TARGET_GNU_LD=1"
1280 -+ else
1281 -+ tmake_file="$tmake_file t-slibgcc-sld"
1282 -+ fi
1283 -+ if test x$gas = xyes; then
1284 -+ tm_file="usegas.h ${tm_file}"
1285 -+ fi
1286 -+ tm_file="$tm_file tm-dwarf2.h"
1287 -+ case ${target} in
1288 -+ *-*-solaris2.1[0-9]*)
1289 -+ tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h i386/sol2-64.h"
1290 -+ tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1291 -+ tmake_file="$tmake_file i386/t-sol2-10"
1292 -+ # i386/t-crtstuff only affects libgcc. Its inclusion
1293 -+ # depends on a runtime test and is thus performed in
1294 -+ # libgcc/configure.ac instead.
1295 -+ need_64bit_hwint=yes
1296 -+ case X"${with_cpu}" in
1297 -+ Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
1298 -+ ;;
1299 -+ X)
1300 -+ if test x$with_cpu_64 = x; then
1301 -+ with_cpu_64=generic
1302 -+ fi
1303 -+ ;;
1304 -+ *)
1305 -+ echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
1306 -+ echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
1307 -+ exit 1
1308 -+ ;;
1309 -+ esac
1310 -+ ;;
1311 -+ esac
1312 -+ case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
1313 -+ "":yes:* | yes:yes:* )
1314 -+ case ${target} in
1315 -+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1316 -+ thread_file=posix95
1317 -+ ;;
1318 -+ *)
1319 -+ thread_file=posix
1320 -+ ;;
1321 -+ esac
1322 -+ ;;
1323 -+ "":*:yes | yes:*:yes )
1324 -+ thread_file=solaris
1325 -+ ;;
1326 -+ esac
1327 -+ ;;
1328 - sparc-*-solaris2*)
1329 - tm_file="${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sol2.h"
1330 - case ${target} in
1331 ---- gcc-4.4.1/libgcc/configure.ac
1332 -+++ gcc-4.4.1/libgcc/configure.ac
1333 -@@ -176,7 +176,7 @@
1334 - # Link with -nostartfiles -nodefaultlibs since neither are present while
1335 - # building libgcc.
1336 - case ${host} in
1337 --i?86-*-solaris2.1[[0-9]]*)
1338 -+i?86-*-solaris2.1[[0-9]]*|x86_64-*-solaris2.1[[0-9]]*)
1339 - cat > conftest.s <<EOF
1340 - .section .eh_frame,"a",@unwind
1341 - .zero 4
1342 ---- gcc-4.4.1/libgcc/configure
1343 -+++ gcc-4.4.1/libgcc/configure
1344 -@@ -3425,7 +3425,7 @@
1345 - # Link with -nostartfiles -nodefaultlibs since neither are present while
1346 - # building libgcc.
1347 - case ${host} in
1348 --i?86-*-solaris2.1[0-9]*)
1349 -+i?86-*-solaris2.1[0-9]*|x86_64-*-solaris2.1[0-9]*)
1350 - cat > conftest.s <<EOF
1351 - .section .eh_frame,"a",@unwind
1352 - .zero 4
1353 ---- gcc-4.4.1/libgcc/config.host
1354 -+++ gcc-4.4.1/libgcc/config.host
1355 -@@ -316,7 +316,7 @@
1356 - ;;
1357 - i[34567]86-*-rtems*)
1358 - ;;
1359 --i[34567]86-*-solaris2*)
1360 -+i[34567]86-*-solaris2*|x86_64-*-solaris2*)
1361 - tmake_file="${tmake_file} i386/t-sol2"
1362 - case ${host} in
1363 - *-*-solaris2.1[0-9]*)
1364 ---- gcc-4.4.1/gcc/config/i386/sol2-64.h
1365 -+++ gcc-4.4.1/gcc/config/i386/sol2-64.h
1366 -@@ -0,0 +1,16 @@
1367 -+/* Definitions of target machine for GCC, for bi-arch i386
1368 -+ running Solaris 2, defaulting to 64-bit code generation. */
1369 -+
1370 -+#undef MULTILIB_DEFAULTS
1371 -+#define MULTILIB_DEFAULTS { "m64" }
1372 -+
1373 -+#undef TARGET_LD_EMULATION
1374 -+#ifdef TARGET_GNU_LD
1375 -+#define TARGET_LD_EMULATION "%{m64:-m elf_x86_64}%{m32:-m elf_i386} "
1376 -+#else
1377 -+#define TARGET_LD_EMULATION ""
1378 -+#endif
1379 -+
1380 -+#undef LINK_ARCH_SPEC
1381 -+#define LINK_ARCH_SPEC TARGET_LD_EMULATION \
1382 -+ "%{m64:" LINK_ARCH64_SPEC "}%{m32:" LINK_ARCH32_SPEC "}"
1383
1384 diff --git a/sys-devel/gcc/files/4.4.4/aix-bnoerok.patch b/sys-devel/gcc/files/4.4.4/aix-bnoerok.patch
1385 deleted file mode 100644
1386 index c0244e9690..0000000000
1387 --- a/sys-devel/gcc/files/4.4.4/aix-bnoerok.patch
1388 +++ /dev/null
1389 @@ -1,15 +0,0 @@
1390 -http://gcc.gnu.org/PR46887
1391 -Fix a typo in gcc-local copy of libtool files.
1392 -This is triggered in Prefix only, as elibtoolize enables aix_runtime_linking.
1393 -
1394 ---- libjava/classpath/ltcf-cxx.sh.orig 2010-04-24 15:32:46.967555111 +0200
1395 -+++ libjava/classpath/ltcf-cxx.sh 2010-04-24 15:33:12.627573175 +0200
1396 -@@ -204,7 +204,7 @@
1397 - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
1398 - # Warning - without using the other run time loading flags, -berok will
1399 - # link without error, but may produce a broken library.
1400 -- no_undefined_flag=' ${wl}-bnoerok'
1401 -+ no_undefined_flag=' ${wl}-bernotok'
1402 - allow_undefined_flag=' ${wl}-berok'
1403 - # -bexpall does not export symbols beginning with underscore (_)
1404 - always_export_symbols=yes
1405
1406 diff --git a/sys-devel/gcc/files/4.5.1/aix-force-pthread.patch b/sys-devel/gcc/files/4.5.1/aix-force-pthread.patch
1407 deleted file mode 100644
1408 index 8d19282c87..0000000000
1409 --- a/sys-devel/gcc/files/4.5.1/aix-force-pthread.patch
1410 +++ /dev/null
1411 @@ -1,282 +0,0 @@
1412 -diff -ru gcc/config/rs6000.orig/aix43.h gcc/config/rs6000/aix43.h
1413 ---- gcc/config/rs6000.orig/aix43.h 2009-07-31 14:24:20 +0200
1414 -+++ gcc/config/rs6000/aix43.h 2009-07-31 14:25:50 +0200
1415 -@@ -105,7 +105,7 @@
1416 - %{ansi: -D_ANSI_C_SOURCE}\
1417 - %{maix64: -D__64BIT__}\
1418 - %{mpe: -I%R/usr/lpp/ppe.poe/include}\
1419 -- %{pthread: -D_THREAD_SAFE}"
1420 -+ %{pthread:} -D_THREAD_SAFE"
1421 -
1422 - /* The GNU C++ standard library requires that these macros be
1423 - defined. */
1424 -@@ -114,7 +114,7 @@
1425 - "-D_ALL_SOURCE \
1426 - %{maix64: -D__64BIT__} \
1427 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1428 -- %{pthread: -D_THREAD_SAFE}"
1429 -+ %{pthread:} -D_THREAD_SAFE"
1430 -
1431 - #undef TARGET_DEFAULT
1432 - #define TARGET_DEFAULT MASK_NEW_MNEMONICS
1433 -@@ -145,8 +145,8 @@
1434 - %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
1435 - %{!maix64:%{!shared:%{g*:-lg}}}\
1436 - %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
1437 -- %{pthread:-L%R/usr/lib/threads -lpthreads -lc_r %R/usr/lib/libc.a}\
1438 -- %{!pthread:-lc}"
1439 -+ %{pthread:}-L%R/usr/lib/threads -lpthreads -lc_r %R/usr/lib/libc.a\
1440 -+ "
1441 -
1442 - #undef LINK_SPEC
1443 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
1444 -@@ -158,8 +158,8 @@
1445 - #define STARTFILE_SPEC "%{!shared:\
1446 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
1447 - %{!maix64:\
1448 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
1449 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
1450 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
1451 -+ }}"
1452 -
1453 - /* AIX 4.3 typedefs ptrdiff_t as "long" while earlier releases used "int". */
1454 -
1455 -diff -ru gcc/config/rs6000.orig/aix51.h gcc/config/rs6000/aix51.h
1456 ---- gcc/config/rs6000.orig/aix51.h 2009-07-31 14:24:20 +0200
1457 -+++ gcc/config/rs6000/aix51.h 2009-07-31 14:26:13 +0200
1458 -@@ -101,7 +101,7 @@
1459 - %{ansi: -D_ANSI_C_SOURCE} \
1460 - %{maix64: -D__64BIT__} \
1461 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1462 -- %{pthread: -D_THREAD_SAFE}"
1463 -+ %{pthread:} -D_THREAD_SAFE"
1464 -
1465 - /* The GNU C++ standard library requires that these macros be
1466 - defined. */
1467 -@@ -110,7 +110,7 @@
1468 - "-D_ALL_SOURCE \
1469 - %{maix64: -D__64BIT__} \
1470 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1471 -- %{pthread: -D_THREAD_SAFE}"
1472 -+ %{pthread:} -D_THREAD_SAFE"
1473 -
1474 - #undef TARGET_DEFAULT
1475 - #define TARGET_DEFAULT MASK_NEW_MNEMONICS
1476 -@@ -141,7 +141,7 @@
1477 - %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
1478 - %{!maix64:%{!shared:%{g*:-lg}}}\
1479 - %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
1480 -- %{pthread:-lpthreads} -lc"
1481 -+ %{pthread:}-lpthreads -lc"
1482 -
1483 - #undef LINK_SPEC
1484 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
1485 -@@ -153,8 +153,8 @@
1486 - #define STARTFILE_SPEC "%{!shared:\
1487 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
1488 - %{!maix64:\
1489 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
1490 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
1491 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
1492 -+ }}"
1493 -
1494 - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
1495 -
1496 -diff -ru gcc/config/rs6000.orig/aix52.h gcc/config/rs6000/aix52.h
1497 ---- gcc/config/rs6000.orig/aix52.h 2009-07-31 14:24:20 +0200
1498 -+++ gcc/config/rs6000/aix52.h 2009-07-31 14:26:31 +0200
1499 -@@ -100,7 +100,7 @@
1500 - %{ansi: -D_ANSI_C_SOURCE} \
1501 - %{maix64: -D__64BIT__} \
1502 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1503 -- %{pthread: -D_THREAD_SAFE}"
1504 -+ %{pthread:} -D_THREAD_SAFE"
1505 -
1506 - /* The GNU C++ standard library requires that these macros be
1507 - defined. Synchronize with libstdc++ os_defines.h. */
1508 -@@ -109,7 +109,7 @@
1509 - "-D_ALL_SOURCE \
1510 - %{maix64: -D__64BIT__} \
1511 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1512 -- %{pthread: -D_THREAD_SAFE}"
1513 -+ %{pthread:} -D_THREAD_SAFE"
1514 -
1515 - #undef TARGET_DEFAULT
1516 - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
1517 -@@ -144,7 +144,7 @@
1518 - %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
1519 - %{!maix64:%{!shared:%{g*:-lg}}}\
1520 - %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
1521 -- %{pthread:-lpthreads} -lc"
1522 -+ %{pthread:}-lpthreads -lc"
1523 -
1524 - #undef LINK_SPEC
1525 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
1526 -@@ -156,8 +156,8 @@
1527 - #define STARTFILE_SPEC "%{!shared:\
1528 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
1529 - %{!maix64:\
1530 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
1531 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
1532 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
1533 -+ }}"
1534 -
1535 - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
1536 -
1537 -diff -ru gcc/config/rs6000.orig/aix53.h gcc/config/rs6000/aix53.h
1538 ---- gcc/config/rs6000.orig/aix53.h 2009-07-31 14:24:20 +0200
1539 -+++ gcc/config/rs6000/aix53.h 2009-07-31 14:26:47 +0200
1540 -@@ -102,7 +102,7 @@
1541 - %{ansi: -D_ANSI_C_SOURCE} \
1542 - %{maix64: -D__64BIT__} \
1543 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1544 -- %{pthread: -D_THREAD_SAFE}"
1545 -+ %{pthread:} -D_THREAD_SAFE"
1546 -
1547 - /* The GNU C++ standard library requires that these macros be
1548 - defined. Synchronize with libstdc++ os_defines.h. */
1549 -@@ -111,7 +111,7 @@
1550 - "-D_ALL_SOURCE \
1551 - %{maix64: -D__64BIT__} \
1552 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1553 -- %{pthread: -D_THREAD_SAFE}"
1554 -+ %{pthread:} -D_THREAD_SAFE"
1555 -
1556 - #undef TARGET_DEFAULT
1557 - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
1558 -@@ -140,7 +140,7 @@
1559 - %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
1560 - %{!maix64:%{!shared:%{g*:-lg}}}\
1561 - %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
1562 -- %{pthread:-lpthreads} -lc"
1563 -+ %{pthread:}-lpthreads -lc"
1564 -
1565 - #undef LINK_SPEC
1566 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
1567 -@@ -152,8 +152,8 @@
1568 - #define STARTFILE_SPEC "%{!shared:\
1569 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
1570 - %{!maix64:\
1571 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
1572 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
1573 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
1574 -+ }}"
1575 -
1576 - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
1577 -
1578 -diff -ru gcc/config/rs6000.orig/aix61.h gcc/config/rs6000/aix61.h
1579 ---- gcc/config/rs6000.orig/aix61.h 2009-07-31 14:24:20 +0200
1580 -+++ gcc/config/rs6000/aix61.h 2009-07-31 14:27:02 +0200
1581 -@@ -103,7 +103,7 @@
1582 - %{ansi: -D_ANSI_C_SOURCE} \
1583 - %{maix64: -D__64BIT__} \
1584 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1585 -- %{pthread: -D_THREAD_SAFE}"
1586 -+ %{pthread:} -D_THREAD_SAFE"
1587 -
1588 - /* The GNU C++ standard library requires that these macros be
1589 - defined. Synchronize with libstdc++ os_defines.h. */
1590 -@@ -112,7 +112,7 @@
1591 - "-D_ALL_SOURCE -D__COMPATMATH__ \
1592 - %{maix64: -D__64BIT__} \
1593 - %{mpe: -I%R/usr/lpp/ppe.poe/include} \
1594 -- %{pthread: -D_THREAD_SAFE}"
1595 -+ %{pthread:} -D_THREAD_SAFE"
1596 -
1597 - #undef TARGET_DEFAULT
1598 - #define TARGET_DEFAULT (MASK_POWERPC | MASK_NEW_MNEMONICS)
1599 -@@ -141,7 +141,7 @@
1600 - %{p:-L%R/lib/profiled -L%R/usr/lib/profiled}\
1601 - %{!maix64:%{!shared:%{g*:-lg}}}\
1602 - %{mpe:-L%R/usr/lpp/ppe.poe/lib -lmpi -lvtd}\
1603 -- %{pthread:-lpthreads} -lc"
1604 -+ %{pthread:}-lpthreads -lc"
1605 -
1606 - #undef LINK_SPEC
1607 - #define LINK_SPEC "-bpT:0x10000000 -bpD:0x20000000 %{!r:-btextro} -bnodelcsect\
1608 -@@ -153,8 +153,8 @@
1609 - #define STARTFILE_SPEC "%{!shared:\
1610 - %{maix64:%{pg:gcrt0_64%O%s}%{!pg:%{p:mcrt0_64%O%s}%{!p:crt0_64%O%s}}}\
1611 - %{!maix64:\
1612 -- %{pthread:%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}}\
1613 -- %{!pthread:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}}}}"
1614 -+ %{pthread:}%{pg:gcrt0_r%O%s}%{!pg:%{p:mcrt0_r%O%s}%{!p:crt0_r%O%s}}\
1615 -+ }}"
1616 -
1617 - /* AIX V5 typedefs ptrdiff_t as "long" while earlier releases used "int". */
1618 -
1619 -diff -ru gcc/config/rs6000.orig/t-aix43 gcc/config/rs6000/t-aix43
1620 ---- gcc/config/rs6000.orig/t-aix43 2009-07-31 14:24:20 +0200
1621 -+++ gcc/config/rs6000/t-aix43 2009-07-31 14:29:20 +0200
1622 -@@ -10,13 +10,13 @@
1623 - echo '#define FLOAT' > fp-bit.c
1624 - cat $(srcdir)/config/fp-bit.c >> fp-bit.c
1625 -
1626 --# Build the libraries for pthread and all of the
1627 -+# Build the libraries for all of the
1628 - # different processor models
1629 -
1630 --MULTILIB_OPTIONS = pthread \
1631 -+MULTILIB_OPTIONS = \
1632 - mcpu=common/mcpu=power/mcpu=powerpc/maix64
1633 -
1634 --MULTILIB_DIRNAMES = pthread \
1635 -+MULTILIB_DIRNAMES = \
1636 - common power powerpc ppc64
1637 -
1638 - MULTILIB_MATCHES = mcpu?power=mcpu?power \
1639 -@@ -46,7 +46,7 @@
1640 - SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
1641 - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
1642 - @multilib_flags@ @shlib_objs@ -lc \
1643 -- `case @multilib_dir@ in \
1644 -+ `case pthread@multilib_dir@ in \
1645 - *pthread*) echo -L/usr/lib/threads -lpthreads -lc_r /usr/lib/libc.a ;; \
1646 - *) echo -lc ;; esac` ; \
1647 - rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
1648 -@@ -61,7 +61,7 @@
1649 - $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
1650 - $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
1651 - $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
1652 --SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
1653 -+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
1654 - SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
1655 - SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
1656 - SHLIB_NM_FLAGS = -Bpg -X32_64
1657 -diff -ru gcc/config/rs6000.orig/t-aix52 gcc/config/rs6000/t-aix52
1658 ---- gcc/config/rs6000.orig/t-aix52 2009-07-31 14:24:20 +0200
1659 -+++ gcc/config/rs6000/t-aix52 2009-07-31 14:29:38 +0200
1660 -@@ -10,12 +10,12 @@
1661 - echo '#define FLOAT' > fp-bit.c
1662 - cat $(srcdir)/config/fp-bit.c >> fp-bit.c
1663 -
1664 --# Build the libraries for pthread and all of the
1665 -+# Build the libraries for all of the
1666 - # different processor models
1667 -
1668 --MULTILIB_OPTIONS = pthread maix64
1669 -+MULTILIB_OPTIONS = maix64
1670 -
1671 --MULTILIB_DIRNAMES = pthread ppc64
1672 -+MULTILIB_DIRNAMES = ppc64
1673 -
1674 - MULTILIB_MATCHES =
1675 -
1676 -@@ -27,7 +27,7 @@
1677 - SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
1678 - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
1679 - @multilib_flags@ @shlib_objs@ -lc \
1680 -- `case @multilib_dir@ in \
1681 -+ `case pthread@multilib_dir@ in \
1682 - *pthread*) echo -L$(TARGET_SYSTEM_ROOT)/usr/lib/threads -lpthreads -lc_r $(TARGET_SYSTEM_ROOT)/usr/lib/libc.a ;; \
1683 - *) echo -lc ;; esac` ; \
1684 - rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
1685 -@@ -42,7 +42,7 @@
1686 - $$(mkinstalldirs) $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@; \
1687 - $(INSTALL_DATA) @multilib_dir@/@shlib_base_name@.a \
1688 - $$(DESTDIR)$$(slibdir)@shlib_slibdir_qual@/
1689 --SHLIB_LIBS = -lc `case @multilib_dir@ in *pthread*) echo -lpthread ;; esac`
1690 -+SHLIB_LIBS = -lc `case pthread@multilib_dir@ in *pthread*) echo -lpthread ;; esac`
1691 - SHLIB_MKMAP = $(srcdir)/mkmap-flat.awk
1692 - SHLIB_MAPFILES = $(srcdir)/libgcc-std.ver $(srcdir)/config/rs6000/libgcc-ppc64.ver
1693 - SHLIB_NM_FLAGS = -Bpg -X32_64
1694
1695 diff --git a/sys-devel/gcc/files/4.5.1/gcc-4.5.1-mint1.patch b/sys-devel/gcc/files/4.5.1/gcc-4.5.1-mint1.patch
1696 deleted file mode 100644
1697 index 52d0a7893e..0000000000
1698 --- a/sys-devel/gcc/files/4.5.1/gcc-4.5.1-mint1.patch
1699 +++ /dev/null
1700 @@ -1,32 +0,0 @@
1701 -http://bugs.gentoo.org/show_bug.cgi?id=347319
1702 -
1703 ---- libiberty/configure.old 2010-11-26 18:13:54.000000000 +0000
1704 -+++ libiberty/configure 2010-11-26 18:15:21.000000000 +0000
1705 -@@ -4844,6 +4844,7 @@
1706 - if [ "${shared}" = "yes" ]; then
1707 - case "${host}" in
1708 - *-*-cygwin*) ;;
1709 -+ *-*-mint*) ;;
1710 - alpha*-*-linux*) PICFLAG=-fPIC ;;
1711 - arm*-*-*) PICFLAG=-fPIC ;;
1712 - hppa*-*-*) PICFLAG=-fPIC ;;
1713 ---- libiberty/configure.ac.old 2010-11-26 18:15:27.000000000 +0000
1714 -+++ libiberty/configure.ac 2010-11-26 18:15:38.000000000 +0000
1715 -@@ -201,6 +201,7 @@
1716 - if [[ "${shared}" = "yes" ]]; then
1717 - case "${host}" in
1718 - *-*-cygwin*) ;;
1719 -+ *-*-mint*) ;;
1720 - alpha*-*-linux*) PICFLAG=-fPIC ;;
1721 - arm*-*-*) PICFLAG=-fPIC ;;
1722 - hppa*-*-*) PICFLAG=-fPIC ;;
1723 ---- gcc/Makefile.in.old 2010-11-26 18:16:31.000000000 +0000
1724 -+++ gcc/Makefile.in 2010-11-26 18:17:13.000000000 +0000
1725 -@@ -1819,6 +1819,7 @@
1726 - cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS)
1727 - $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \
1728 - cc1-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
1729 -+ stack -S 3 $@
1730 -
1731 - #
1732 - # Build libgcc.a.
1733
1734 diff --git a/sys-devel/gcc/files/4.5.1/ia64-hpux-always-pthread.patch b/sys-devel/gcc/files/4.5.1/ia64-hpux-always-pthread.patch
1735 deleted file mode 100644
1736 index f20123b70e..0000000000
1737 --- a/sys-devel/gcc/files/4.5.1/ia64-hpux-always-pthread.patch
1738 +++ /dev/null
1739 @@ -1,22 +0,0 @@
1740 -http://archives.gentoo.org/gentoo-portage-dev/msg_a98f2d22e6ec550bd55246a95768628d.xml
1741 -
1742 ---- gcc/config/ia64/hpux.h.orig 2009-07-30 16:43:06 +0200
1743 -+++ gcc/config/ia64/hpux.h 2009-07-30 16:43:36 +0200
1744 -@@ -60,7 +60,7 @@
1745 -
1746 - #undef CPP_SPEC
1747 - #define CPP_SPEC \
1748 -- "%{mt|pthread:-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L}"
1749 -+ "%{mt|pthread:}-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
1750 - /* aCC defines also -DRWSTD_MULTI_THREAD, -DRW_MULTI_THREAD. These
1751 - affect only aCC's C++ library (Rogue Wave-derived) which we do not
1752 - use, and they violate the user's name space. */
1753 -@@ -86,7 +86,7 @@
1754 - #undef LIB_SPEC
1755 - #define LIB_SPEC \
1756 - "%{!shared: \
1757 -- %{mt|pthread:%{fopenmp:-lrt} -lpthread} \
1758 -+ %{mt|pthread:}%{fopenmp:-lrt} -lpthread \
1759 - %{p:%{!mlp64:-L/usr/lib/hpux32/libp} \
1760 - %{mlp64:-L/usr/lib/hpux64/libp} -lprof} \
1761 - %{pg:%{!mlp64:-L/usr/lib/hpux32/libp} \
1762
1763 diff --git a/sys-devel/gcc/files/4.5.1/solaris-x86_64.patch b/sys-devel/gcc/files/4.5.1/solaris-x86_64.patch
1764 deleted file mode 100644
1765 index 70df04c478..0000000000
1766 --- a/sys-devel/gcc/files/4.5.1/solaris-x86_64.patch
1767 +++ /dev/null
1768 @@ -1,114 +0,0 @@
1769 ---- gcc-4.4.1/gcc/config.gcc
1770 -+++ gcc-4.4.1/gcc/config.gcc
1771 -@@ -2235,6 +2235,70 @@
1772 - ;;
1773 - esac
1774 - ;;
1775 -+x86_64-*-solaris2*)
1776 -+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h svr4.h i386/sysv4.h sol2.h"
1777 -+ case ${target} in
1778 -+ *-*-solaris2.1[0-9]*)
1779 -+ tm_file="${tm_file} sol2-10.h"
1780 -+ ;;
1781 -+ esac
1782 -+ tm_file="${tm_file} i386/sol2.h"
1783 -+ tmake_file="${tmake_file} t-sol2 t-svr4"
1784 -+ c_target_objs="${c_target_objs} sol2-c.o"
1785 -+ cxx_target_objs="${cxx_target_objs} sol2-c.o"
1786 -+ extra_objs="sol2.o"
1787 -+ tm_p_file="${tm_p_file} sol2-protos.h"
1788 -+ if test x$gnu_ld = xyes; then
1789 -+ tmake_file="$tmake_file t-slibgcc-elf-ver"
1790 -+ tm_defines="${tm_defines} TARGET_GNU_LD=1"
1791 -+ else
1792 -+ tmake_file="$tmake_file t-slibgcc-sld"
1793 -+ fi
1794 -+ if test x$gas = xyes; then
1795 -+ tm_file="usegas.h ${tm_file}"
1796 -+ fi
1797 -+ tm_file="$tm_file tm-dwarf2.h"
1798 -+ case ${target} in
1799 -+ *-*-solaris2.1[0-9]*)
1800 -+ tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h i386/sol2-64.h"
1801 -+ tm_defines="${tm_defines} TARGET_BI_ARCH=1"
1802 -+ tmake_file="$tmake_file i386/t-sol2-10"
1803 -+ # i386/t-crtstuff only affects libgcc. Its inclusion
1804 -+ # depends on a runtime test and is thus performed in
1805 -+ # libgcc/configure.ac instead.
1806 -+ need_64bit_hwint=yes
1807 -+ case X"${with_cpu}" in
1808 -+ Xgeneric|Xcore2|Xnocona|Xx86-64|Xamdfam10|Xbarcelona|Xk8|Xopteron|Xathlon64|Xathlon-fx)
1809 -+ ;;
1810 -+ X)
1811 -+ if test x$with_cpu_64 = x; then
1812 -+ with_cpu_64=generic
1813 -+ fi
1814 -+ ;;
1815 -+ *)
1816 -+ echo "Unsupported CPU used in --with-cpu=$with_cpu, supported values:" 1>&2
1817 -+ echo "generic core2 nocona x86-64 amdfam10 barcelona k8 opteron athlon64 athlon-fx" 1>&2
1818 -+ exit 1
1819 -+ ;;
1820 -+ esac
1821 -+ ;;
1822 -+ esac
1823 -+ case ${enable_threads}:${have_pthread_h}:${have_thread_h} in
1824 -+ "":yes:* | yes:yes:* )
1825 -+ case ${target} in
1826 -+ *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*)
1827 -+ thread_file=posix95
1828 -+ ;;
1829 -+ *)
1830 -+ thread_file=posix
1831 -+ ;;
1832 -+ esac
1833 -+ ;;
1834 -+ "":*:yes | yes:*:yes )
1835 -+ thread_file=solaris
1836 -+ ;;
1837 -+ esac
1838 -+ ;;
1839 - i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
1840 - tm_file="${tm_file} i386/unix.h i386/att.h elfos.h svr4.h vx-common.h"
1841 - case ${target} in
1842 ---- gcc-4.4.1/libgcc/configure.ac
1843 -+++ gcc-4.4.1/libgcc/configure.ac
1844 -@@ -176,7 +176,7 @@
1845 - # Link with -nostartfiles -nodefaultlibs since neither are present while
1846 - # building libgcc.
1847 - case ${host} in
1848 --i?86-*-solaris2.1[[0-9]]*)
1849 -+i?86-*-solaris2.1[[0-9]]*|x86_64-*-solaris2.1[[0-9]]*)
1850 - cat > conftest.s <<EOF
1851 - .section .eh_frame,"a",@unwind
1852 - .zero 4
1853 ---- gcc-4.4.1/libgcc/configure
1854 -+++ gcc-4.4.1/libgcc/configure
1855 -@@ -3425,7 +3425,7 @@
1856 - # Link with -nostartfiles -nodefaultlibs since neither are present while
1857 - # building libgcc.
1858 - case ${host} in
1859 --i?86-*-solaris2.1[0-9]*)
1860 -+i?86-*-solaris2.1[0-9]*|x86_64-*-solaris2.1[0-9]*)
1861 - cat > conftest.s <<EOF
1862 - .section .eh_frame,"a",@unwind
1863 - .zero 4
1864 ---- gcc-4.4.1/libgcc/config.host
1865 -+++ gcc-4.4.1/libgcc/config.host
1866 -@@ -316,7 +316,7 @@
1867 - ;;
1868 - i[34567]86-*-rtems*)
1869 - ;;
1870 --i[34567]86-*-solaris2*)
1871 -+i[34567]86-*-solaris2*|x86_64-*-solaris2*)
1872 - tmake_file="${tmake_file} i386/t-sol2"
1873 - case ${host} in
1874 - *-*-solaris2.1[0-9]*)
1875 ---- gcc-4.4.1/gcc/config/i386/sol2-64.h
1876 -+++ gcc-4.4.1/gcc/config/i386/sol2-64.h
1877 -@@ -0,0 +1,5 @@
1878 -+/* Definitions of target machine for GCC, for bi-arch i386
1879 -+ running Solaris 2, defaulting to 64-bit code generation. */
1880 -+
1881 -+#undef MULTILIB_DEFAULTS
1882 -+#define MULTILIB_DEFAULTS { "m64" }
1883
1884 diff --git a/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint1.patch b/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint1.patch
1885 deleted file mode 100644
1886 index 85ac4a4149..0000000000
1887 --- a/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint1.patch
1888 +++ /dev/null
1889 @@ -1,335 +0,0 @@
1890 -http://bugs.gentoo.org/show_bug.cgi?id=350822
1891 -
1892 ---- libstdc++-v3/libsupc++/guard.cc.old 2008-04-21 14:01:06.429023196 +0100
1893 -+++ libstdc++-v3/libsupc++/guard.cc 2008-04-21 14:01:25.230287338 +0100
1894 -@@ -30,6 +30,7 @@
1895 - // Thread support written by Jason Merrill, Red Hat Inc. <jason@××××××.com>
1896 -
1897 - #include <bits/c++config.h>
1898 -+#include <cstdlib>
1899 - #include <cxxabi.h>
1900 - #include <exception>
1901 - #include <new>
1902 ---- libstdc++-v3/src/codecvt.cc.old 2008-04-21 14:32:37.116117842 +0100
1903 -+++ libstdc++-v3/src/codecvt.cc 2008-04-21 14:32:47.505045768 +0100
1904 -@@ -27,6 +27,7 @@
1905 -
1906 - // Written by Benjamin Kosnik <bkoz@××××××.com>
1907 -
1908 -+#include <cstdlib>
1909 - #include <locale>
1910 -
1911 - _GLIBCXX_BEGIN_NAMESPACE(std)
1912 ---- libstdc++-v3/src/complex_io.cc.old 2008-04-21 14:36:27.261023151 +0100
1913 -+++ libstdc++-v3/src/complex_io.cc 2008-04-21 14:36:36.534232802 +0100
1914 -@@ -27,6 +27,7 @@
1915 - // invalidate any other reasons why the executable file might be covered by
1916 - // the GNU General Public License.
1917 -
1918 -+#include <cstdlib>
1919 - #include <complex>
1920 -
1921 - _GLIBCXX_BEGIN_NAMESPACE(std)
1922 ---- libstdc++-v3/src/ctype.cc.old 2008-04-21 14:40:06.994312017 +0100
1923 -+++ libstdc++-v3/src/ctype.cc 2008-04-21 14:40:18.218220665 +0100
1924 -@@ -26,6 +26,7 @@
1925 - // invalidate any other reasons why the executable file might be covered by
1926 - // the GNU General Public License.
1927 -
1928 -+#include <cstdlib>
1929 - #include <locale>
1930 -
1931 - _GLIBCXX_BEGIN_NAMESPACE(std)
1932 ---- libstdc++-v3/src/globals_io.cc.old 2008-04-21 14:47:42.230023258 +0100
1933 -+++ libstdc++-v3/src/globals_io.cc 2008-04-21 14:47:52.749297097 +0100
1934 -@@ -27,6 +27,7 @@
1935 - // the GNU General Public License.
1936 -
1937 - #include "bits/c++config.h"
1938 -+#include <cstdlib>
1939 - #include <fstream>
1940 - #include <istream>
1941 - #include <ostream>
1942 ---- libstdc++-v3/src/ios.cc.old 2008-04-21 14:51:32.364023391 +0100
1943 -+++ libstdc++-v3/src/ios.cc 2008-04-21 14:51:39.371196232 +0100
1944 -@@ -32,6 +32,7 @@
1945 - // ISO C++ 14882: 27.4 Iostreams base classes
1946 - //
1947 -
1948 -+#include <cstdlib>
1949 - #include <ios>
1950 - #include <limits>
1951 -
1952 ---- libstdc++-v3/src/ios_failure.cc.old 2008-04-21 14:53:10.759023042 +0100
1953 -+++ libstdc++-v3/src/ios_failure.cc 2008-04-21 14:53:40.197127646 +0100
1954 -@@ -32,6 +32,7 @@
1955 - // ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure
1956 - //
1957 -
1958 -+#include <cstdlib>
1959 - #include <ios>
1960 -
1961 - _GLIBCXX_BEGIN_NAMESPACE(std)
1962 ---- libstdc++-v3/src/ios_init.cc.old 2008-04-21 14:55:53.181023355 +0100
1963 -+++ libstdc++-v3/src/ios_init.cc 2008-04-21 14:56:01.407485842 +0100
1964 -@@ -32,6 +32,7 @@
1965 - // ISO C++ 14882: 27.4 Iostreams base classes
1966 - //
1967 -
1968 -+#include <cstdlib>
1969 - #include <ios>
1970 - #include <ostream>
1971 - #include <istream>
1972 ---- libstdc++-v3/src/ios_locale.cc.old 2008-04-21 15:04:38.355183857 +0100
1973 -+++ libstdc++-v3/src/ios_locale.cc 2008-04-21 15:04:47.456159205 +0100
1974 -@@ -32,6 +32,7 @@
1975 - // ISO C++ 14882: 27.4 Iostreams base classes
1976 - //
1977 -
1978 -+#include <cstdlib>
1979 - #include <ios>
1980 - #include <locale>
1981 -
1982 ---- libstdc++-v3/src/locale_facets.cc.old 2008-04-21 15:10:19.610023164 +0100
1983 -+++ libstdc++-v3/src/locale_facets.cc 2008-04-21 15:10:26.952034403 +0100
1984 -@@ -26,6 +26,7 @@
1985 - // invalidate any other reasons why the executable file might be covered by
1986 - // the GNU General Public License.
1987 -
1988 -+#include <cstdlib>
1989 - #include <locale>
1990 -
1991 - _GLIBCXX_BEGIN_NAMESPACE(std)
1992 ---- libstdc++-v3/src/strstream.cc.old 2008-04-21 15:17:36.006071207 +0100
1993 -+++ libstdc++-v3/src/strstream.cc 2008-04-21 15:17:43.447641937 +0100
1994 -@@ -46,6 +46,7 @@
1995 - // MAY BE REMOVED in a future standard revision. You should use the
1996 - // header <sstream> instead.
1997 -
1998 -+#include <cstdlib>
1999 - #include <strstream>
2000 - #include <algorithm>
2001 - #include <new>
2002 ---- libstdc++-v3/src/fstream-inst.cc.old 2008-04-21 15:25:14.168032671 +0100
2003 -+++ libstdc++-v3/src/fstream-inst.cc 2008-04-21 15:25:24.605060960 +0100
2004 -@@ -32,6 +32,7 @@
2005 - // ISO C++ 14882:
2006 - //
2007 -
2008 -+#include <cstdlib>
2009 - #include <fstream>
2010 -
2011 - _GLIBCXX_BEGIN_NAMESPACE(std)
2012 ---- libstdc++-v3/src/ios-inst.cc.old 2008-04-21 15:40:43.642023146 +0100
2013 -+++ libstdc++-v3/src/ios-inst.cc 2008-04-21 15:40:51.723051414 +0100
2014 -@@ -32,6 +32,7 @@
2015 - // ISO C++ 14882:
2016 - //
2017 -
2018 -+#include <cstdlib>
2019 - #include <ios>
2020 -
2021 - _GLIBCXX_BEGIN_NAMESPACE(std)
2022 ---- libstdc++-v3/src/iostream-inst.cc.old 2008-04-21 15:55:15.625023267 +0100
2023 -+++ libstdc++-v3/src/iostream-inst.cc 2008-04-21 15:55:23.629058393 +0100
2024 -@@ -32,6 +32,7 @@
2025 - // ISO C++ 14882:
2026 - //
2027 -
2028 -+#include <cstdlib>
2029 - #include <iomanip>
2030 -
2031 - _GLIBCXX_BEGIN_NAMESPACE(std)
2032 ---- libstdc++-v3/src/istream-inst.cc.old 2008-04-21 15:59:50.862024439 +0100
2033 -+++ libstdc++-v3/src/istream-inst.cc 2008-04-21 15:59:59.603028397 +0100
2034 -@@ -32,6 +32,7 @@
2035 - // ISO C++ 14882:
2036 - //
2037 -
2038 -+#include <cstdlib>
2039 - #include <istream>
2040 - #include <iomanip>
2041 -
2042 ---- libstdc++-v3/src/istream.cc.old 2008-04-21 16:03:55.949023206 +0100
2043 -+++ libstdc++-v3/src/istream.cc 2008-04-21 16:04:03.746026447 +0100
2044 -@@ -31,6 +31,7 @@
2045 - // ISO C++ 14882: 27.6.1 Input streams
2046 - //
2047 -
2048 -+#include <cstdlib>
2049 - #include <istream>
2050 -
2051 - _GLIBCXX_BEGIN_NAMESPACE(std)
2052 ---- libstdc++-v3/src/locale-inst.cc.old 2008-04-21 16:07:06.705023144 +0100
2053 -+++ libstdc++-v3/src/locale-inst.cc 2008-04-21 16:07:14.922226343 +0100
2054 -@@ -32,6 +32,7 @@
2055 - // ISO C++ 14882: 22.1 Locales
2056 - //
2057 -
2058 -+#include <cstdlib>
2059 - #include <locale>
2060 -
2061 - // Instantiation configuration.
2062 ---- libstdc++-v3/src/ostream-inst.cc.old 2008-04-21 16:19:19.443023243 +0100
2063 -+++ libstdc++-v3/src/ostream-inst.cc 2008-04-21 16:19:26.505037357 +0100
2064 -@@ -32,6 +32,7 @@
2065 - // ISO C++ 14882:
2066 - //
2067 -
2068 -+#include <cstdlib>
2069 - #include <ostream>
2070 - #include <iomanip>
2071 -
2072 ---- libstdc++-v3/src/sstream-inst.cc.old 2008-04-21 16:22:53.830023256 +0100
2073 -+++ libstdc++-v3/src/sstream-inst.cc 2008-04-21 16:23:01.792239858 +0100
2074 -@@ -32,6 +32,7 @@
2075 - // ISO C++ 14882:
2076 - //
2077 -
2078 -+#include <cstdlib>
2079 - #include <sstream>
2080 -
2081 - _GLIBCXX_BEGIN_NAMESPACE(std)
2082 ---- libstdc++-v3/src/streambuf-inst.cc.old 2008-04-21 16:27:18.648023102 +0100
2083 -+++ libstdc++-v3/src/streambuf-inst.cc 2008-04-21 16:27:28.394022870 +0100
2084 -@@ -32,6 +32,7 @@
2085 - // ISO C++ 14882:
2086 - //
2087 -
2088 -+#include <cstdlib>
2089 - #include <ios>
2090 - #include <streambuf>
2091 -
2092 ---- libstdc++-v3/src/streambuf.cc.old 2008-04-21 16:32:11.191078470 +0100
2093 -+++ libstdc++-v3/src/streambuf.cc 2008-04-21 16:32:20.434047649 +0100
2094 -@@ -31,6 +31,7 @@
2095 - // ISO C++ 14882: 27.5 Stream buffers
2096 - //
2097 -
2098 -+#include <cstdlib>
2099 - #include <streambuf>
2100 -
2101 - _GLIBCXX_BEGIN_NAMESPACE(std)
2102 ---- libstdc++-v3/config/locale/generic/codecvt_members.cc.old 2008-04-21 16:40:52.235023128 +0100
2103 -+++ libstdc++-v3/config/locale/generic/codecvt_members.cc 2008-04-21 16:41:01.248427209 +0100
2104 -@@ -33,6 +33,7 @@
2105 -
2106 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2107 -
2108 -+#include <cstdlib>
2109 - #include <locale>
2110 -
2111 - _GLIBCXX_BEGIN_NAMESPACE(std)
2112 ---- libstdc++-v3/config/locale/generic/collate_members.cc.old 2008-04-21 16:42:19.265348380 +0100
2113 -+++ libstdc++-v3/config/locale/generic/collate_members.cc 2008-04-21 16:42:25.552040967 +0100
2114 -@@ -33,6 +33,7 @@
2115 -
2116 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2117 -
2118 -+#include <cstdlib>
2119 - #include <locale>
2120 -
2121 - _GLIBCXX_BEGIN_NAMESPACE(std)
2122 ---- libstdc++-v3/config/locale/generic/ctype_members.cc.old 2008-04-21 16:49:06.726023078 +0100
2123 -+++ libstdc++-v3/config/locale/generic/ctype_members.cc 2008-04-21 16:49:18.212045558 +0100
2124 -@@ -33,6 +33,7 @@
2125 -
2126 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2127 -
2128 -+#include <cstdlib>
2129 - #include <locale>
2130 -
2131 - _GLIBCXX_BEGIN_NAMESPACE(std)
2132 ---- libstdc++-v3/config/locale/generic/messages_members.cc.old 2008-04-21 16:51:46.237348712 +0100
2133 -+++ libstdc++-v3/config/locale/generic/messages_members.cc 2008-04-21 16:51:55.015221637 +0100
2134 -@@ -33,6 +33,7 @@
2135 -
2136 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2137 -
2138 -+#include <cstdlib>
2139 - #include <locale>
2140 -
2141 - _GLIBCXX_BEGIN_NAMESPACE(std)
2142 ---- libstdc++-v3/config/locale/generic/monetary_members.cc.old 2008-04-21 16:53:14.893023165 +0100
2143 -+++ libstdc++-v3/config/locale/generic/monetary_members.cc 2008-04-21 16:53:22.350043513 +0100
2144 -@@ -33,6 +33,7 @@
2145 -
2146 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2147 -
2148 -+#include <cstdlib>
2149 - #include <locale>
2150 -
2151 - _GLIBCXX_BEGIN_NAMESPACE(std)
2152 ---- libstdc++-v3/config/locale/generic/numeric_members.cc.old 2008-04-21 16:54:11.077212480 +0100
2153 -+++ libstdc++-v3/config/locale/generic/numeric_members.cc 2008-04-21 16:53:32.618266080 +0100
2154 -@@ -33,6 +33,7 @@
2155 -
2156 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2157 -
2158 -+#include <cstdlib>
2159 - #include <locale>
2160 -
2161 - _GLIBCXX_BEGIN_NAMESPACE(std)
2162 ---- libstdc++-v3/config/locale/generic/time_members.cc.old 2008-04-21 16:54:00.835099080 +0100
2163 -+++ libstdc++-v3/config/locale/generic/time_members.cc 2008-04-21 16:53:41.260024731 +0100
2164 -@@ -34,6 +34,7 @@
2165 -
2166 - // Written by Benjamin Kosnik <bkoz@××××××.com>
2167 -
2168 -+#include <cstdlib>
2169 - #include <locale>
2170 -
2171 - _GLIBCXX_BEGIN_NAMESPACE(std)
2172 ---- libstdc++-v3/config/io/basic_file_stdio.cc.old 2008-04-21 17:00:09.629307442 +0100
2173 -+++ libstdc++-v3/config/io/basic_file_stdio.cc 2008-04-21 16:59:58.512314844 +0100
2174 -@@ -32,6 +32,7 @@
2175 - // ISO C++ 14882: 27.8 File-based streams
2176 - //
2177 -
2178 -+#include <cstdlib>
2179 - #include <bits/basic_file.h>
2180 - #include <fcntl.h>
2181 - #include <errno.h>
2182 ---- gcc/cp/g++spec.c.old 2008-06-05 11:12:02.252475943 +0100
2183 -+++ gcc/cp/g++spec.c 2008-06-05 11:12:49.557473133 +0100
2184 -@@ -356,6 +356,12 @@
2185 - }
2186 - #endif
2187 - }
2188 -+#ifdef __MINT__
2189 -+ generate_option (OPT_l, "pthread", 1,
2190 -+ CL_DRIVER, &new_decoded_options[j]);
2191 -+ added_libraries++;
2192 -+ j++;
2193 -+#endif
2194 - if (saw_math)
2195 - new_decoded_options[j++] = *saw_math;
2196 - else if (library > 0 && need_math)
2197 ---- libstdc++-v3/include/c_global/cstdlib.old 2008-06-05 11:15:10.644432810 +0100
2198 -+++ libstdc++-v3/include/c_global/cstdlib 2008-06-05 11:15:43.703707876 +0100
2199 -@@ -97,7 +97,11 @@
2200 - #undef strtod
2201 - #undef strtol
2202 - #undef strtoul
2203 -+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE)
2204 -+/* don't undefine system as we're using libpthread */
2205 -+#else
2206 - #undef system
2207 -+#endif
2208 - #undef wcstombs
2209 - #undef wctomb
2210 -
2211 ---- libstdc++-v3/include/c_std/cstdlib.old 2008-06-05 11:15:10.644432810 +0100
2212 -+++ libstdc++-v3/include/c_std/cstdlib 2008-06-05 11:15:43.703707876 +0100
2213 -@@ -97,7 +97,11 @@
2214 - #undef strtod
2215 - #undef strtol
2216 - #undef strtoul
2217 -+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE)
2218 -+/* don't undefine system as we're using libpthread */
2219 -+#else
2220 - #undef system
2221 -+#endif
2222 - #undef wcstombs
2223 - #undef wctomb
2224 -
2225
2226 diff --git a/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint2.patch b/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint2.patch
2227 deleted file mode 100644
2228 index d60258eeca..0000000000
2229 --- a/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint2.patch
2230 +++ /dev/null
2231 @@ -1,1259 +0,0 @@
2232 -diff -aurN gcc-4.6.3/config-ml.in gcc-4.6.3-mint-20120503/config-ml.in
2233 ---- gcc-4.6.3/config-ml.in 2010-11-19 21:25:49.000000000 +0100
2234 -+++ gcc-4.6.3-mint-20120503/config-ml.in 2012-05-03 18:23:00.890625000 +0200
2235 -@@ -351,6 +351,23 @@
2236 - esac
2237 - done
2238 - fi
2239 -+ case "${host}" in
2240 -+ *-*-mint*)
2241 -+ case "${srcdir}" in
2242 -+ */libgcc ) : ;;
2243 -+ *)
2244 -+ old_multidirs="${multidirs}"
2245 -+ multidirs=""
2246 -+ for x in ${old_multidirs}; do
2247 -+ case "$x" in
2248 -+ *mshort ) : ;;
2249 -+ *) multidirs="${multidirs} ${x}" ;;
2250 -+ esac
2251 -+ done
2252 -+ ;;
2253 -+ esac
2254 -+ ;;
2255 -+ esac
2256 - ;;
2257 - mips*-*-*)
2258 - if [ x$enable_single_float = xno ]
2259 -diff -aurN gcc-4.6.3/configure gcc-4.6.3-mint-20120503/configure
2260 ---- gcc-4.6.3/configure 2011-12-18 11:03:44.000000000 +0100
2261 -+++ gcc-4.6.3-mint-20120503/configure 2012-05-03 18:23:00.937500000 +0200
2262 -@@ -3077,6 +3077,9 @@
2263 - *-*-freebsd*)
2264 - # Enable libmudflap by default in FreeBSD.
2265 - ;;
2266 -+ *-*-mint*)
2267 -+ # Enable libmudflap by default in MiNT.
2268 -+ ;;
2269 - *)
2270 - # Disable it by default everywhere else.
2271 - noconfigdirs="$noconfigdirs target-libmudflap"
2272 -@@ -3449,6 +3452,9 @@
2273 - m68k-*-coff*)
2274 - noconfigdirs="$noconfigdirs ${libgcj}"
2275 - ;;
2276 -+ m68k-*-mint*)
2277 -+ noconfigdirs="$noconfigdirs target-libiberty ${libgcj}"
2278 -+ ;;
2279 - m68*-*-* | fido-*-*)
2280 - libgloss_dir=m68k
2281 - ;;
2282 -diff -aurN gcc-4.6.3/configure.ac gcc-4.6.3-mint-20120503/configure.ac
2283 ---- gcc-4.6.3/configure.ac 2011-11-18 12:45:44.000000000 +0100
2284 -+++ gcc-4.6.3-mint-20120503/configure.ac 2012-05-03 18:23:00.937500000 +0200
2285 -@@ -523,6 +523,9 @@
2286 - *-*-freebsd*)
2287 - # Enable libmudflap by default in FreeBSD.
2288 - ;;
2289 -+ *-*-mint*)
2290 -+ # Enable libmudflap by default in MiNT.
2291 -+ ;;
2292 - *)
2293 - # Disable it by default everywhere else.
2294 - noconfigdirs="$noconfigdirs target-libmudflap"
2295 -@@ -895,6 +898,9 @@
2296 - m68k-*-coff*)
2297 - noconfigdirs="$noconfigdirs ${libgcj}"
2298 - ;;
2299 -+ m68k-*-mint*)
2300 -+ noconfigdirs="$noconfigdirs target-libiberty ${libgcj}"
2301 -+ ;;
2302 - m68*-*-* | fido-*-*)
2303 - libgloss_dir=m68k
2304 - ;;
2305 -diff -aurN gcc-4.6.3/gcc/config/m68k/lb1sf68.asm gcc-4.6.3-mint-20120503/gcc/config/m68k/lb1sf68.asm
2306 ---- gcc-4.6.3/gcc/config/m68k/lb1sf68.asm 2009-10-02 13:20:51.000000000 +0200
2307 -+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/lb1sf68.asm 2012-05-03 18:23:00.953125000 +0200
2308 -@@ -666,7 +666,9 @@
2309 - .globl SYM (__negdf2)
2310 - .globl SYM (__cmpdf2)
2311 - .globl SYM (__cmpdf2_internal)
2312 -+#ifdef __ELF__
2313 - .hidden SYM (__cmpdf2_internal)
2314 -+#endif
2315 -
2316 - .text
2317 - .even
2318 -@@ -2581,7 +2583,9 @@
2319 - .globl SYM (__negsf2)
2320 - .globl SYM (__cmpsf2)
2321 - .globl SYM (__cmpsf2_internal)
2322 -+#ifdef __ELF__
2323 - .hidden SYM (__cmpsf2_internal)
2324 -+#endif
2325 -
2326 - | These are common routines to return and signal exceptions.
2327 -
2328 -diff -aurN gcc-4.6.3/gcc/config/m68k/m68k.h gcc-4.6.3-mint-20120503/gcc/config/m68k/m68k.h
2329 ---- gcc-4.6.3/gcc/config/m68k/m68k.h 2010-11-22 02:57:50.000000000 +0100
2330 -+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/m68k.h 2012-05-03 18:23:00.953125000 +0200
2331 -@@ -138,7 +138,10 @@
2332 - } \
2333 - \
2334 - if (TARGET_68881) \
2335 -- builtin_define ("__HAVE_68881__"); \
2336 -+ { \
2337 -+ builtin_define ("__HAVE_68881__"); \
2338 -+ builtin_define ("__M68881__"); /* Non-standard */ \
2339 -+ } \
2340 - \
2341 - if (TARGET_COLDFIRE) \
2342 - { \
2343 -diff -aurN gcc-4.6.3/gcc/config/m68k/math-68881.h gcc-4.6.3-mint-20120503/gcc/config/m68k/math-68881.h
2344 ---- gcc-4.6.3/gcc/config/m68k/math-68881.h 2004-02-09 01:48:13.000000000 +0100
2345 -+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/math-68881.h 2012-05-03 18:23:00.953125000 +0200
2346 -@@ -44,6 +44,16 @@
2347 -
2348 - #include <errno.h>
2349 -
2350 -+/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99
2351 -+ inline semantics, unless -fgnu89-inline is used. */
2352 -+#ifdef __cplusplus
2353 -+# define __MATH_68881_INLINE inline
2354 -+#elif defined __GNUC_STDC_INLINE__
2355 -+# define __MATH_68881_INLINE extern __inline __attribute__ ((__gnu_inline__))
2356 -+#else
2357 -+# define __MATH_68881_INLINE extern __inline
2358 -+#endif
2359 -+
2360 - #undef HUGE_VAL
2361 - #ifdef __sun__
2362 - /* The Sun assembler fails to handle the hex constant in the usual defn. */
2363 -@@ -64,7 +74,7 @@
2364 - })
2365 - #endif
2366 -
2367 --__inline extern double
2368 -+__MATH_68881_INLINE double
2369 - sin (double x)
2370 - {
2371 - double value;
2372 -@@ -75,7 +85,7 @@
2373 - return value;
2374 - }
2375 -
2376 --__inline extern double
2377 -+__MATH_68881_INLINE double
2378 - cos (double x)
2379 - {
2380 - double value;
2381 -@@ -86,7 +96,7 @@
2382 - return value;
2383 - }
2384 -
2385 --__inline extern double
2386 -+__MATH_68881_INLINE double
2387 - tan (double x)
2388 - {
2389 - double value;
2390 -@@ -97,7 +107,7 @@
2391 - return value;
2392 - }
2393 -
2394 --__inline extern double
2395 -+__MATH_68881_INLINE double
2396 - asin (double x)
2397 - {
2398 - double value;
2399 -@@ -108,7 +118,7 @@
2400 - return value;
2401 - }
2402 -
2403 --__inline extern double
2404 -+__MATH_68881_INLINE double
2405 - acos (double x)
2406 - {
2407 - double value;
2408 -@@ -119,7 +129,7 @@
2409 - return value;
2410 - }
2411 -
2412 --__inline extern double
2413 -+__MATH_68881_INLINE double
2414 - atan (double x)
2415 - {
2416 - double value;
2417 -@@ -130,7 +140,7 @@
2418 - return value;
2419 - }
2420 -
2421 --__inline extern double
2422 -+__MATH_68881_INLINE double
2423 - atan2 (double y, double x)
2424 - {
2425 - double pi, pi_over_2;
2426 -@@ -187,7 +197,7 @@
2427 - }
2428 - }
2429 -
2430 --__inline extern double
2431 -+__MATH_68881_INLINE double
2432 - sinh (double x)
2433 - {
2434 - double value;
2435 -@@ -198,7 +208,7 @@
2436 - return value;
2437 - }
2438 -
2439 --__inline extern double
2440 -+__MATH_68881_INLINE double
2441 - cosh (double x)
2442 - {
2443 - double value;
2444 -@@ -209,7 +219,7 @@
2445 - return value;
2446 - }
2447 -
2448 --__inline extern double
2449 -+__MATH_68881_INLINE double
2450 - tanh (double x)
2451 - {
2452 - double value;
2453 -@@ -220,7 +230,7 @@
2454 - return value;
2455 - }
2456 -
2457 --__inline extern double
2458 -+__MATH_68881_INLINE double
2459 - atanh (double x)
2460 - {
2461 - double value;
2462 -@@ -231,7 +241,7 @@
2463 - return value;
2464 - }
2465 -
2466 --__inline extern double
2467 -+__MATH_68881_INLINE double
2468 - exp (double x)
2469 - {
2470 - double value;
2471 -@@ -242,7 +252,7 @@
2472 - return value;
2473 - }
2474 -
2475 --__inline extern double
2476 -+__MATH_68881_INLINE double
2477 - expm1 (double x)
2478 - {
2479 - double value;
2480 -@@ -253,7 +263,7 @@
2481 - return value;
2482 - }
2483 -
2484 --__inline extern double
2485 -+__MATH_68881_INLINE double
2486 - log (double x)
2487 - {
2488 - double value;
2489 -@@ -264,7 +274,7 @@
2490 - return value;
2491 - }
2492 -
2493 --__inline extern double
2494 -+__MATH_68881_INLINE double
2495 - log1p (double x)
2496 - {
2497 - double value;
2498 -@@ -275,7 +285,7 @@
2499 - return value;
2500 - }
2501 -
2502 --__inline extern double
2503 -+__MATH_68881_INLINE double
2504 - log10 (double x)
2505 - {
2506 - double value;
2507 -@@ -286,7 +296,7 @@
2508 - return value;
2509 - }
2510 -
2511 --__inline extern double
2512 -+__MATH_68881_INLINE double
2513 - sqrt (double x)
2514 - {
2515 - double value;
2516 -@@ -297,13 +307,13 @@
2517 - return value;
2518 - }
2519 -
2520 --__inline extern double
2521 -+__MATH_68881_INLINE double
2522 - hypot (double x, double y)
2523 - {
2524 - return sqrt (x*x + y*y);
2525 - }
2526 -
2527 --__inline extern double
2528 -+__MATH_68881_INLINE double
2529 - pow (double x, double y)
2530 - {
2531 - if (x > 0)
2532 -@@ -352,7 +362,7 @@
2533 - }
2534 - }
2535 -
2536 --__inline extern double
2537 -+__MATH_68881_INLINE double
2538 - fabs (double x)
2539 - {
2540 - double value;
2541 -@@ -363,7 +373,7 @@
2542 - return value;
2543 - }
2544 -
2545 --__inline extern double
2546 -+__MATH_68881_INLINE double
2547 - ceil (double x)
2548 - {
2549 - int rounding_mode, round_up;
2550 -@@ -385,7 +395,7 @@
2551 - return value;
2552 - }
2553 -
2554 --__inline extern double
2555 -+__MATH_68881_INLINE double
2556 - floor (double x)
2557 - {
2558 - int rounding_mode, round_down;
2559 -@@ -408,7 +418,7 @@
2560 - return value;
2561 - }
2562 -
2563 --__inline extern double
2564 -+__MATH_68881_INLINE double
2565 - rint (double x)
2566 - {
2567 - int rounding_mode, round_nearest;
2568 -@@ -430,7 +440,7 @@
2569 - return value;
2570 - }
2571 -
2572 --__inline extern double
2573 -+__MATH_68881_INLINE double
2574 - fmod (double x, double y)
2575 - {
2576 - double value;
2577 -@@ -442,7 +452,7 @@
2578 - return value;
2579 - }
2580 -
2581 --__inline extern double
2582 -+__MATH_68881_INLINE double
2583 - drem (double x, double y)
2584 - {
2585 - double value;
2586 -@@ -454,7 +464,7 @@
2587 - return value;
2588 - }
2589 -
2590 --__inline extern double
2591 -+__MATH_68881_INLINE double
2592 - scalb (double x, int n)
2593 - {
2594 - double value;
2595 -@@ -466,7 +476,7 @@
2596 - return value;
2597 - }
2598 -
2599 --__inline extern double
2600 -+__MATH_68881_INLINE double
2601 - logb (double x)
2602 - {
2603 - double exponent;
2604 -@@ -477,7 +487,7 @@
2605 - return exponent;
2606 - }
2607 -
2608 --__inline extern double
2609 -+__MATH_68881_INLINE double
2610 - ldexp (double x, int n)
2611 - {
2612 - double value;
2613 -@@ -489,7 +499,7 @@
2614 - return value;
2615 - }
2616 -
2617 --__inline extern double
2618 -+__MATH_68881_INLINE double
2619 - frexp (double x, int *exp)
2620 - {
2621 - double float_exponent;
2622 -@@ -514,7 +524,7 @@
2623 - return mantissa;
2624 - }
2625 -
2626 --__inline extern double
2627 -+__MATH_68881_INLINE double
2628 - modf (double x, double *ip)
2629 - {
2630 - double temp;
2631 -diff -aurN gcc-4.6.3/gcc/config/m68k/mint.h gcc-4.6.3-mint-20120503/gcc/config/m68k/mint.h
2632 ---- gcc-4.6.3/gcc/config/m68k/mint.h 1970-01-01 01:00:00.000000000 +0100
2633 -+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/mint.h 2012-05-03 18:23:00.968750000 +0200
2634 -@@ -0,0 +1,176 @@
2635 -+/* Definitions of target machine for GNU compiler.
2636 -+ Atari ST TOS/MiNT.
2637 -+ Copyright (C) 1994, 1995, 2007, 2008, 2009, 2010, 2011
2638 -+ Free Software Foundation, Inc.
2639 -+
2640 -+This file is part of GCC.
2641 -+
2642 -+GCC is free software; you can redistribute it and/or modify
2643 -+it under the terms of the GNU General Public License as published by
2644 -+the Free Software Foundation; either version 3, or (at your option)
2645 -+any later version.
2646 -+
2647 -+GCC is distributed in the hope that it will be useful,
2648 -+but WITHOUT ANY WARRANTY; without even the implied warranty of
2649 -+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
2650 -+GNU General Public License for more details.
2651 -+
2652 -+You should have received a copy of the GNU General Public License
2653 -+along with GCC; see the file COPYING3. If not see
2654 -+<http://www.gnu.org/licenses/>. */
2655 -+
2656 -+/* Here are four prefixes that are used by asm_fprintf to
2657 -+ facilitate customization for alternate assembler syntaxes.
2658 -+ Machines with no likelihood of an alternate syntax need not
2659 -+ define these and need not use asm_fprintf. */
2660 -+
2661 -+/* The prefix for register names. Note that REGISTER_NAMES
2662 -+ is supposed to include this prefix. Also note that this is NOT an
2663 -+ fprintf format string, it is a literal string */
2664 -+
2665 -+#undef REGISTER_PREFIX
2666 -+#define REGISTER_PREFIX "%"
2667 -+
2668 -+/* The prefix for local (compiler generated) labels.
2669 -+ These labels will not appear in the symbol table. */
2670 -+
2671 -+#undef LOCAL_LABEL_PREFIX
2672 -+#define LOCAL_LABEL_PREFIX "."
2673 -+
2674 -+#undef ASM_COMMENT_START
2675 -+#define ASM_COMMENT_START "|"
2676 -+
2677 -+#undef WCHAR_TYPE
2678 -+#define WCHAR_TYPE "short unsigned int"
2679 -+
2680 -+#undef WCHAR_TYPE_SIZE
2681 -+#define WCHAR_TYPE_SIZE SHORT_TYPE_SIZE
2682 -+
2683 -+#undef TARGET_OS_CPP_BUILTINS
2684 -+#define TARGET_OS_CPP_BUILTINS() \
2685 -+ do \
2686 -+ { \
2687 -+ builtin_define ("__MINT__"); \
2688 -+ builtin_define_std ("atarist"); \
2689 -+ builtin_assert ("machine=atari"); \
2690 -+ builtin_assert ("system=mint"); \
2691 -+ } \
2692 -+ while (0)
2693 -+
2694 -+/* The following defines are nonstandard
2695 -+ and are kept only for compatibility
2696 -+ with older versions of GCC for MiNT. */
2697 -+
2698 -+#undef CPP_SPEC
2699 -+#define CPP_SPEC \
2700 -+ "%{m68000:-D__M68000__} " \
2701 -+ "%{mc68020:-D__M68020__} " \
2702 -+ "%{m68020:-D__M68020__} " \
2703 -+ "%{m68030:-D__M68020__} " \
2704 -+ "%{m68040:-D__M68020__} " \
2705 -+ "%{m68060:-D__M68020__} " \
2706 -+ "%{m68020-40:-D__M68020__} " \
2707 -+ "%{m68020-60:-D__M68020__} " \
2708 -+ "%{!m680*:%{!mc680*:-D__M68000__}} " \
2709 -+ "%{mshort:-D__MSHORT__}"
2710 -+
2711 -+#define STARTFILE_SPEC "%{pg|p|profile:gcrt0.o%s;:crt0.o%s}"
2712 -+#define LIB_SPEC "-lc"
2713 -+
2714 -+/* Every structure or union's size must be a multiple of 2 bytes. */
2715 -+#define STRUCTURE_SIZE_BOUNDARY 16
2716 -+
2717 -+/* The -g option generates stabs debug information. */
2718 -+#define DBX_DEBUGGING_INFO 1
2719 -+
2720 -+/* This is the assembler directive to equate two values. */
2721 -+#undef SET_ASM_OP
2722 -+#define SET_ASM_OP "\t.set\t"
2723 -+
2724 -+/* This is how we tell the assembler that a symbol is weak. */
2725 -+#undef ASM_WEAKEN_LABEL
2726 -+#define ASM_WEAKEN_LABEL(FILE,NAME) \
2727 -+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \
2728 -+ fputc ('\n', FILE); } while (0)
2729 -+
2730 -+/* Don't default to pcc-struct-return, because gcc is the only compiler, and
2731 -+ we want to retain compatibility with older gcc versions. */
2732 -+#define DEFAULT_PCC_STRUCT_RETURN 0
2733 -+
2734 -+/* The system headers are C++-aware. */
2735 -+#define NO_IMPLICIT_EXTERN_C
2736 -+
2737 -+/* By default, the vtable entries are void pointers, the so the alignment
2738 -+ is the same as pointer alignment. The value of this macro specifies
2739 -+ the alignment of the vtable entry in bits. It should be defined only
2740 -+ when special alignment is necessary.
2741 -+
2742 -+ MiNT: The default value of 32 is too much and unsupported by a.out-mintprg.
2743 -+*/
2744 -+#define TARGET_VTABLE_ENTRY_ALIGN 16
2745 -+
2746 -+/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that
2747 -+ the rest of the DWARF 2 frame unwind support is also provided.
2748 -+
2749 -+ MiNT: DWARF 2 frame unwind is not supported by a.out-mint.
2750 -+*/
2751 -+#define DWARF2_UNWIND_INFO 0
2752 -+
2753 -+/* config/m68k.md has an explicit reference to the program counter,
2754 -+ prefix this by the register prefix. */
2755 -+
2756 -+#define ASM_RETURN_CASE_JUMP \
2757 -+ do { \
2758 -+ if (TARGET_COLDFIRE) \
2759 -+ { \
2760 -+ if (ADDRESS_REG_P (operands[0])) \
2761 -+ return "jmp %%pc@(2,%0:l)"; \
2762 -+ else \
2763 -+ return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \
2764 -+ } \
2765 -+ else \
2766 -+ return "jmp %%pc@(2,%0:w)"; \
2767 -+ } while (0)
2768 -+
2769 -+/* The ADDR_DIFF_VEC must exactly follow the previous instruction. */
2770 -+
2771 -+#undef ADDR_VEC_ALIGN
2772 -+#define ADDR_VEC_ALIGN(ADDR_VEC) 0
2773 -+
2774 -+/* If defined, a C expression whose value is a string containing the
2775 -+ assembler operation to identify the following data as uninitialized global
2776 -+ data. */
2777 -+
2778 -+#define BSS_SECTION_ASM_OP "\t.bss"
2779 -+
2780 -+/* A C statement (sans semicolon) to output to the stdio stream
2781 -+ FILE the assembler definition of uninitialized global DECL named
2782 -+ NAME whose size is SIZE bytes and alignment is ALIGN bytes.
2783 -+ Try to use asm_output_aligned_bss to implement this macro. */
2784 -+
2785 -+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
2786 -+ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
2787 -+
2788 -+/* Disable -fpic and -fPIC since bsr.l _label@PLTPC
2789 -+ is unsupported by the assembler. */
2790 -+
2791 -+#undef SUBTARGET_OVERRIDE_OPTIONS
2792 -+#define SUBTARGET_OVERRIDE_OPTIONS \
2793 -+do { \
2794 -+ if (flag_pic && !TARGET_PCREL) \
2795 -+ error ("-f%s is not supported on this target", \
2796 -+ (flag_pic > 1) ? "PIC" : "pic"); \
2797 -+} while (0)
2798 -+
2799 -+
2800 -+/* Workaround for GCC bug #35067 about multiple thunks. */
2801 -+
2802 -+#undef MAKE_DECL_ONE_ONLY
2803 -+#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
2804 -+
2805 -+/* Avoid requiring -static with -fmudflap like in config/bfin/uclinux.h */
2806 -+#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \
2807 -+ --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\
2808 -+ --wrap=mmap --wrap=munmap --wrap=alloca\
2809 -+ %{fmudflapth: --wrap=pthread_create\
2810 -+}} %{fmudflap|fmudflapth: --wrap=main}"
2811 -diff -aurN gcc-4.6.3/gcc/config/m68k/t-mint gcc-4.6.3-mint-20120503/gcc/config/m68k/t-mint
2812 ---- gcc-4.6.3/gcc/config/m68k/t-mint 1970-01-01 01:00:00.000000000 +0100
2813 -+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/t-mint 2012-05-03 18:23:00.968750000 +0200
2814 -@@ -0,0 +1,27 @@
2815 -+#
2816 -+# Use multiple libraries
2817 -+#
2818 -+
2819 -+MULTILIB_OPTIONS = m68020-60 mshort
2820 -+
2821 -+MULTILIB_DIRNAMES = m68020-60 mshort
2822 -+
2823 -+MULTILIB_MATCHES = \
2824 -+ m68020-60=m68881 \
2825 -+ m68020-60=m68020 \
2826 -+ m68020-60=m68020-40 \
2827 -+ m68020-60=mc68020 \
2828 -+ m68020-60=m68030 \
2829 -+ m68020-60=m68040 \
2830 -+ m68020-60=m68060 \
2831 -+ m68020-60=mcpu?68020 \
2832 -+ m68020-60=mcpu?68030 \
2833 -+ m68020-60=mcpu?68040 \
2834 -+ m68020-60=mcpu?68060 \
2835 -+ m68020-60=march?68020 \
2836 -+ m68020-60=march?68030 \
2837 -+ m68020-60=march?68040 \
2838 -+ m68020-60=march?68060
2839 -+
2840 -+LIBGCC = stmp-multilib
2841 -+INSTALL_LIBGCC = install-multilib
2842 -diff -aurN gcc-4.6.3/gcc/config.gcc gcc-4.6.3-mint-20120503/gcc/config.gcc
2843 ---- gcc-4.6.3/gcc/config.gcc 2011-07-22 18:44:50.000000000 +0200
2844 -+++ gcc-4.6.3-mint-20120503/gcc/config.gcc 2012-05-03 18:23:00.968750000 +0200
2845 -@@ -1805,6 +1805,15 @@
2846 - tmake_file="$tmake_file m68k/t-slibgcc-elf-ver"
2847 - fi
2848 - ;;
2849 -+m68k-*-mint*)
2850 -+ default_m68k_cpu=68000
2851 -+ default_cf_cpu=5475
2852 -+ tm_file="${tm_file} m68k/mint.h"
2853 -+ tm_defines="${tm_defines} MOTOROLA=1"
2854 -+ tmake_file="m68k/t-floatlib m68k/t-mint"
2855 -+ gas=yes
2856 -+ gnu_ld=yes
2857 -+ ;;
2858 - m68k-*-rtems*)
2859 - default_m68k_cpu=68020
2860 - default_cf_cpu=5206
2861 -diff -aurN gcc-4.6.3/gcc/df-problems.c gcc-4.6.3-mint-20120503/gcc/df-problems.c
2862 ---- gcc-4.6.3/gcc/df-problems.c 2011-07-07 21:10:01.000000000 +0200
2863 -+++ gcc-4.6.3-mint-20120503/gcc/df-problems.c 2012-05-03 18:23:00.968750000 +0200
2864 -@@ -4024,7 +4024,10 @@
2865 - if (bitmap_intersect_p (merge_set, test_use)
2866 - || bitmap_intersect_p (merge_use, test_set))
2867 - break;
2868 -- max_to = insn;
2869 -+#ifdef HAVE_cc0
2870 -+ if (!sets_cc0_p (insn))
2871 -+#endif
2872 -+ max_to = insn;
2873 - }
2874 - next = NEXT_INSN (insn);
2875 - if (insn == to)
2876 -@@ -4061,7 +4064,11 @@
2877 - {
2878 - if (NONDEBUG_INSN_P (insn))
2879 - {
2880 -- if (!bitmap_intersect_p (test_set, local_merge_live))
2881 -+ if (!bitmap_intersect_p (test_set, local_merge_live)
2882 -+#ifdef HAVE_cc0
2883 -+ && !sets_cc0_p (insn)
2884 -+#endif
2885 -+ )
2886 - {
2887 - max_to = insn;
2888 - break;
2889 -diff -aurN gcc-4.6.3/libdecnumber/decNumberLocal.h gcc-4.6.3-mint-20120503/libdecnumber/decNumberLocal.h
2890 ---- gcc-4.6.3/libdecnumber/decNumberLocal.h 2009-04-09 17:00:19.000000000 +0200
2891 -+++ gcc-4.6.3-mint-20120503/libdecnumber/decNumberLocal.h 2012-05-03 18:23:00.984375000 +0200
2892 -@@ -188,7 +188,7 @@
2893 - #if (DECNUMMAXE != DEC_MAX_EMAX)
2894 - #error Maximum exponent mismatch
2895 - #endif
2896 -- #if (DECNUMMINE != DEC_MIN_EMIN)
2897 -+ #if !(DECNUMMINE == DEC_MIN_EMIN) /* gcc 2.95.3 has bug in '!=' operator for negative constants */
2898 - #error Minimum exponent mismatch
2899 - #endif
2900 -
2901 -diff -aurN gcc-4.6.3/libgcc/config.host gcc-4.6.3-mint-20120503/libgcc/config.host
2902 ---- gcc-4.6.3/libgcc/config.host 2011-11-23 23:15:54.000000000 +0100
2903 -+++ gcc-4.6.3-mint-20120503/libgcc/config.host 2012-05-03 18:23:00.984375000 +0200
2904 -@@ -387,6 +387,8 @@
2905 - # with ELF format using glibc 2
2906 - # aka the GNU/Linux C library 6.
2907 - ;;
2908 -+m68k-*-mint*)
2909 -+ ;;
2910 - m68k-*-rtems*)
2911 - ;;
2912 - mcore-*-elf)
2913 -diff -aurN gcc-4.6.3/libiberty/configure gcc-4.6.3-mint-20120503/libiberty/configure
2914 ---- gcc-4.6.3/libiberty/configure 2010-11-21 04:29:27.000000000 +0100
2915 -+++ gcc-4.6.3-mint-20120503/libiberty/configure 2012-05-03 18:23:01.031250000 +0200
2916 -@@ -4850,6 +4850,7 @@
2917 - if [ "${shared}" = "yes" ]; then
2918 - case "${host}" in
2919 - *-*-cygwin*) ;;
2920 -+ *-*-mint*) ;;
2921 - alpha*-*-linux*) PICFLAG=-fPIC ;;
2922 - arm*-*-*) PICFLAG=-fPIC ;;
2923 - hppa*-*-*) PICFLAG=-fPIC ;;
2924 -diff -aurN gcc-4.6.3/libiberty/configure.ac gcc-4.6.3-mint-20120503/libiberty/configure.ac
2925 ---- gcc-4.6.3/libiberty/configure.ac 2010-11-21 04:29:27.000000000 +0100
2926 -+++ gcc-4.6.3-mint-20120503/libiberty/configure.ac 2012-05-03 18:23:01.031250000 +0200
2927 -@@ -201,6 +201,7 @@
2928 - if [[ "${shared}" = "yes" ]]; then
2929 - case "${host}" in
2930 - *-*-cygwin*) ;;
2931 -+ *-*-mint*) ;;
2932 - alpha*-*-linux*) PICFLAG=-fPIC ;;
2933 - arm*-*-*) PICFLAG=-fPIC ;;
2934 - hppa*-*-*) PICFLAG=-fPIC ;;
2935 -diff -aurN gcc-4.6.3/libiberty/hex.c gcc-4.6.3-mint-20120503/libiberty/hex.c
2936 ---- gcc-4.6.3/libiberty/hex.c 2007-01-31 21:05:50.000000000 +0100
2937 -+++ gcc-4.6.3-mint-20120503/libiberty/hex.c 2012-05-03 18:23:01.031250000 +0200
2938 -@@ -24,7 +24,7 @@
2939 - #include "libiberty.h"
2940 - #include "safe-ctype.h" /* for HOST_CHARSET_ASCII */
2941 -
2942 --#if EOF != -1
2943 -+#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */
2944 - #error "hex.c requires EOF == -1"
2945 - #endif
2946 -
2947 -diff -aurN gcc-4.6.3/libiberty/safe-ctype.c gcc-4.6.3-mint-20120503/libiberty/safe-ctype.c
2948 ---- gcc-4.6.3/libiberty/safe-ctype.c 2005-05-10 17:33:18.000000000 +0200
2949 -+++ gcc-4.6.3-mint-20120503/libiberty/safe-ctype.c 2012-05-03 18:23:01.031250000 +0200
2950 -@@ -119,7 +119,7 @@
2951 - #include <safe-ctype.h>
2952 - #include <stdio.h> /* for EOF */
2953 -
2954 --#if EOF != -1
2955 -+#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */
2956 - #error "<safe-ctype.h> requires EOF == -1"
2957 - #endif
2958 -
2959 -diff -aurN gcc-4.6.3/libmudflap/mf-hooks2.c gcc-4.6.3-mint-20120503/libmudflap/mf-hooks2.c
2960 ---- gcc-4.6.3/libmudflap/mf-hooks2.c 2009-04-09 17:00:19.000000000 +0200
2961 -+++ gcc-4.6.3-mint-20120503/libmudflap/mf-hooks2.c 2012-05-03 18:23:01.031250000 +0200
2962 -@@ -1668,6 +1668,8 @@
2963 - }
2964 -
2965 -
2966 -+#ifdef HAVE_DLFCN_H
2967 -+
2968 - WRAPPER2(void *, dlopen, const char *path, int flags)
2969 - {
2970 - void *p;
2971 -@@ -1735,6 +1737,8 @@
2972 - return p;
2973 - }
2974 -
2975 -+#endif /* HAVE_DLFCN_H */
2976 -+
2977 -
2978 - #if defined (HAVE_SYS_IPC_H) && defined (HAVE_SYS_SEM_H) && defined (HAVE_SYS_SHM_H)
2979 -
2980 -diff -aurN gcc-4.6.3/libmudflap/mf-runtime.h gcc-4.6.3-mint-20120503/libmudflap/mf-runtime.h
2981 ---- gcc-4.6.3/libmudflap/mf-runtime.h 2009-04-09 17:00:19.000000000 +0200
2982 -+++ gcc-4.6.3-mint-20120503/libmudflap/mf-runtime.h 2012-05-03 18:23:01.046875000 +0200
2983 -@@ -97,6 +97,7 @@
2984 - instrumented modules are meant to be affected. */
2985 -
2986 - #ifdef _MUDFLAP
2987 -+#ifndef __USER_LABEL_PREFIX__
2988 - #pragma redefine_extname memcpy __mfwrap_memcpy
2989 - #pragma redefine_extname memmove __mfwrap_memmove
2990 - #pragma redefine_extname memset __mfwrap_memset
2991 -@@ -230,6 +231,141 @@
2992 - #pragma redefine_extname getprotoent __mfwrap_getprotoent
2993 - #pragma redefine_extname getprotobyname __mfwrap_getprotobyname
2994 - #pragma redefine_extname getprotobynumber __mfwrap_getprotobynumber
2995 -+#else
2996 -+#pragma redefine_extname memcpy ___mfwrap_memcpy
2997 -+#pragma redefine_extname memmove ___mfwrap_memmove
2998 -+#pragma redefine_extname memset ___mfwrap_memset
2999 -+#pragma redefine_extname memcmp ___mfwrap_memcmp
3000 -+#pragma redefine_extname memchr ___mfwrap_memchr
3001 -+#pragma redefine_extname memrchr ___mfwrap_memrchr
3002 -+#pragma redefine_extname strcpy ___mfwrap_strcpy
3003 -+#pragma redefine_extname strncpy ___mfwrap_strncpy
3004 -+#pragma redefine_extname strcat ___mfwrap_strcat
3005 -+#pragma redefine_extname strncat ___mfwrap_strncat
3006 -+#pragma redefine_extname strcmp ___mfwrap_strcmp
3007 -+#pragma redefine_extname strcasecmp ___mfwrap_strcasecmp
3008 -+#pragma redefine_extname strncmp ___mfwrap_strncmp
3009 -+#pragma redefine_extname strncasecmp ___mfwrap_strncasecmp
3010 -+#pragma redefine_extname strdup ___mfwrap_strdup
3011 -+#pragma redefine_extname strndup ___mfwrap_strndup
3012 -+#pragma redefine_extname strchr ___mfwrap_strchr
3013 -+#pragma redefine_extname strrchr ___mfwrap_strrchr
3014 -+#pragma redefine_extname strstr ___mfwrap_strstr
3015 -+#pragma redefine_extname memmem ___mfwrap_memmem
3016 -+#pragma redefine_extname strlen ___mfwrap_strlen
3017 -+#pragma redefine_extname strnlen ___mfwrap_strnlen
3018 -+#pragma redefine_extname bzero ___mfwrap_bzero
3019 -+#pragma redefine_extname bcopy ___mfwrap_bcopy
3020 -+#pragma redefine_extname bcmp ___mfwrap_bcmp
3021 -+#pragma redefine_extname index ___mfwrap_index
3022 -+#pragma redefine_extname rindex ___mfwrap_rindex
3023 -+#pragma redefine_extname asctime ___mfwrap_asctime
3024 -+#pragma redefine_extname ctime ___mfwrap_ctime
3025 -+#pragma redefine_extname gmtime ___mfwrap_gmtime
3026 -+#pragma redefine_extname localtime ___mfwrap_localtime
3027 -+#pragma redefine_extname time ___mfwrap_time
3028 -+#pragma redefine_extname strerror ___mfwrap_strerror
3029 -+#pragma redefine_extname fopen ___mfwrap_fopen
3030 -+#pragma redefine_extname fdopen ___mfwrap_fdopen
3031 -+#pragma redefine_extname freopen ___mfwrap_freopen
3032 -+#pragma redefine_extname fclose ___mfwrap_fclose
3033 -+#pragma redefine_extname fread ___mfwrap_fread
3034 -+#pragma redefine_extname fwrite ___mfwrap_fwrite
3035 -+#pragma redefine_extname fgetc ___mfwrap_fgetc
3036 -+#pragma redefine_extname fgets ___mfwrap_fgets
3037 -+#pragma redefine_extname getc ___mfwrap_getc
3038 -+#pragma redefine_extname gets ___mfwrap_gets
3039 -+#pragma redefine_extname ungetc ___mfwrap_ungetc
3040 -+#pragma redefine_extname fputc ___mfwrap_fputc
3041 -+#pragma redefine_extname fputs ___mfwrap_fputs
3042 -+#pragma redefine_extname putc ___mfwrap_putc
3043 -+#pragma redefine_extname puts ___mfwrap_puts
3044 -+#pragma redefine_extname clearerr ___mfwrap_clearerr
3045 -+#pragma redefine_extname feof ___mfwrap_feof
3046 -+#pragma redefine_extname ferror ___mfwrap_ferror
3047 -+#pragma redefine_extname fileno ___mfwrap_fileno
3048 -+#pragma redefine_extname printf ___mfwrap_printf
3049 -+#pragma redefine_extname fprintf ___mfwrap_fprintf
3050 -+#pragma redefine_extname sprintf ___mfwrap_sprintf
3051 -+#pragma redefine_extname snprintf ___mfwrap_snprintf
3052 -+#pragma redefine_extname vprintf ___mfwrap_vprintf
3053 -+#pragma redefine_extname vfprintf ___mfwrap_vfprintf
3054 -+#pragma redefine_extname vsprintf ___mfwrap_vsprintf
3055 -+#pragma redefine_extname vsnprintf ___mfwrap_vsnprintf
3056 -+#pragma redefine_extname access ___mfwrap_access
3057 -+#pragma redefine_extname remove ___mfwrap_remove
3058 -+#pragma redefine_extname fflush ___mfwrap_fflush
3059 -+#pragma redefine_extname fseek ___mfwrap_fseek
3060 -+#pragma redefine_extname ftell ___mfwrap_ftell
3061 -+#pragma redefine_extname rewind ___mfwrap_rewind
3062 -+#pragma redefine_extname fgetpos ___mfwrap_fgetpos
3063 -+#pragma redefine_extname fsetpos ___mfwrap_fsetpos
3064 -+#pragma redefine_extname stat ___mfwrap_stat
3065 -+#pragma redefine_extname fstat ___mfwrap_fstat
3066 -+#pragma redefine_extname lstat ___mfwrap_lstat
3067 -+#pragma redefine_extname mkfifo ___mfwrap_mkfifo
3068 -+#pragma redefine_extname setvbuf ___mfwrap_setvbuf
3069 -+#pragma redefine_extname setbuf ___mfwrap_setbuf
3070 -+#pragma redefine_extname setbuffer ___mfwrap_setbuffer
3071 -+#pragma redefine_extname setlinebuf ___mfwrap_setlinebuf
3072 -+#pragma redefine_extname opendir ___mfwrap_opendir
3073 -+#pragma redefine_extname closedir ___mfwrap_closedir
3074 -+#pragma redefine_extname readdir ___mfwrap_readdir
3075 -+#pragma redefine_extname recv ___mfwrap_recv
3076 -+#pragma redefine_extname recvfrom ___mfwrap_recvfrom
3077 -+#pragma redefine_extname recvmsg ___mfwrap_recvmsg
3078 -+#pragma redefine_extname send ___mfwrap_send
3079 -+#pragma redefine_extname sendto ___mfwrap_sendto
3080 -+#pragma redefine_extname sendmsg ___mfwrap_sendmsg
3081 -+#pragma redefine_extname setsockopt ___mfwrap_setsockopt
3082 -+#pragma redefine_extname getsockopt ___mfwrap_getsockopt
3083 -+#pragma redefine_extname accept ___mfwrap_accept
3084 -+#pragma redefine_extname bind ___mfwrap_bind
3085 -+#pragma redefine_extname connect ___mfwrap_connect
3086 -+#pragma redefine_extname gethostname ___mfwrap_gethostname
3087 -+#pragma redefine_extname sethostname ___mfwrap_sethostname
3088 -+#pragma redefine_extname gethostbyname ___mfwrap_gethostbyname
3089 -+#pragma redefine_extname wait ___mfwrap_wait
3090 -+#pragma redefine_extname waitpid ___mfwrap_waitpid
3091 -+#pragma redefine_extname popen ___mfwrap_popen
3092 -+#pragma redefine_extname pclose ___mfwrap_pclose
3093 -+#pragma redefine_extname execve ___mfwrap_execve
3094 -+#pragma redefine_extname execv ___mfwrap_execv
3095 -+#pragma redefine_extname execvp ___mfwrap_execvp
3096 -+#pragma redefine_extname system ___mfwrap_system
3097 -+#pragma redefine_extname dlopen ___mfwrap_dlopen
3098 -+#pragma redefine_extname dlerror ___mfwrap_dlerror
3099 -+#pragma redefine_extname dlsym ___mfwrap_dlsym
3100 -+#pragma redefine_extname dlclose ___mfwrap_dlclose
3101 -+#pragma redefine_extname fopen64 ___mfwrap_fopen64
3102 -+#pragma redefine_extname freopen64 ___mfwrap_freopen64
3103 -+#pragma redefine_extname stat64 ___mfwrap_stat64
3104 -+#pragma redefine_extname fseeko64 ___mfwrap_fseeko64
3105 -+#pragma redefine_extname ftello64 ___mfwrap_ftello64
3106 -+#pragma redefine_extname semop ___mfwrap_semop
3107 -+#pragma redefine_extname semctl ___mfwrap_semctl
3108 -+#pragma redefine_extname shmctl ___mfwrap_shmctl
3109 -+#pragma redefine_extname shmat ___mfwrap_shmat
3110 -+#pragma redefine_extname shmdt ___mfwrap_shmdt
3111 -+#pragma redefine_extname __ctype_b_loc ___mfwrap___ctype_b_loc
3112 -+#pragma redefine_extname __ctype_toupper_loc ___mfwrap___ctype_toupper_loc
3113 -+#pragma redefine_extname __ctype_tolower_loc ___mfwrap___ctype_tolower_loc
3114 -+#pragma redefine_extname getlogin ___mfwrap_getlogin
3115 -+#pragma redefine_extname cuserid ___mfwrap_cuserid
3116 -+#pragma redefine_extname getpwnam ___mfwrap_getpwnam
3117 -+#pragma redefine_extname getpwuid ___mfwrap_getpwuid
3118 -+#pragma redefine_extname getgrnam ___mfwrap_getgrnam
3119 -+#pragma redefine_extname getgrgid ___mfwrap_getgrgid
3120 -+#pragma redefine_extname getservent ___mfwrap_getservent
3121 -+#pragma redefine_extname getservbyname ___mfwrap_getservbyname
3122 -+#pragma redefine_extname getservbyport ___mfwrap_getservbyport
3123 -+#pragma redefine_extname gai_strerror ___mfwrap_gai_strerror
3124 -+#pragma redefine_extname getmntent ___mfwrap_getmntent
3125 -+#pragma redefine_extname inet_ntoa ___mfwrap_inet_ntoa
3126 -+#pragma redefine_extname getprotoent ___mfwrap_getprotoent
3127 -+#pragma redefine_extname getprotobyname ___mfwrap_getprotobyname
3128 -+#pragma redefine_extname getprotobynumber ___mfwrap_getprotobynumber
3129 -+#endif
3130 -
3131 - /* Disable glibc macros. */
3132 - #define __NO_STRING_INLINES
3133 -diff -aurN gcc-4.6.3/libssp/ssp.c gcc-4.6.3-mint-20120503/libssp/ssp.c
3134 ---- gcc-4.6.3/libssp/ssp.c 2009-04-13 12:37:17.000000000 +0200
3135 -+++ gcc-4.6.3-mint-20120503/libssp/ssp.c 2012-05-03 18:23:01.046875000 +0200
3136 -@@ -63,6 +63,9 @@
3137 - #ifdef HAVE_SYSLOG_H
3138 - # include <syslog.h>
3139 - #endif
3140 -+#ifdef __MINT__
3141 -+#include <mint/osbind.h>
3142 -+#endif
3143 -
3144 - void *__stack_chk_guard = 0;
3145 -
3146 -@@ -98,6 +101,9 @@
3147 - {
3148 - #ifdef __GNU_LIBRARY__
3149 - extern char * __progname;
3150 -+#elif defined (__MINT__)
3151 -+ extern char * program_invocation_short_name;
3152 -+ #define __progname program_invocation_short_name
3153 - #else
3154 - static const char __progname[] = "";
3155 - #endif
3156 -@@ -139,6 +145,9 @@
3157 - syslog (LOG_CRIT, msg3);
3158 - #endif /* HAVE_SYSLOG_H */
3159 -
3160 -+#ifdef __MINT__
3161 -+ Pterm(127);
3162 -+#else
3163 - /* Try very hard to exit. Note that signals may be blocked preventing
3164 - the first two options from working. The use of volatile is here to
3165 - prevent optimizers from "knowing" that __builtin_trap is called first,
3166 -@@ -160,6 +169,7 @@
3167 - break;
3168 - }
3169 - }
3170 -+#endif
3171 - }
3172 -
3173 - void
3174 -diff -aurN gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_base.h gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_base.h
3175 ---- gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_base.h 1970-01-01 01:00:00.000000000 +0100
3176 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_base.h 2012-05-03 18:23:01.046875000 +0200
3177 -@@ -0,0 +1,59 @@
3178 -+// Locale support -*- C++ -*-
3179 -+
3180 -+// Copyright (C) 1997, 1998, 1999, 2003, 2009, 2010
3181 -+// Free Software Foundation, Inc.
3182 -+//
3183 -+// This file is part of the GNU ISO C++ Library. This library is free
3184 -+// software; you can redistribute it and/or modify it under the
3185 -+// terms of the GNU General Public License as published by the
3186 -+// Free Software Foundation; either version 3, or (at your option)
3187 -+// any later version.
3188 -+
3189 -+// This library is distributed in the hope that it will be useful,
3190 -+// but WITHOUT ANY WARRANTY; without even the implied warranty of
3191 -+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3192 -+// GNU General Public License for more details.
3193 -+
3194 -+// Under Section 7 of GPL version 3, you are granted additional
3195 -+// permissions described in the GCC Runtime Library Exception, version
3196 -+// 3.1, as published by the Free Software Foundation.
3197 -+
3198 -+// You should have received a copy of the GNU General Public License and
3199 -+// a copy of the GCC Runtime Library Exception along with this program;
3200 -+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
3201 -+// <http://www.gnu.org/licenses/>.
3202 -+
3203 -+//
3204 -+// ISO C++ 14882: 22.1 Locales
3205 -+//
3206 -+
3207 -+// Mint C types, taken from mintlib-0.57.3/include/ctype.h
3208 -+
3209 -+namespace std _GLIBCXX_VISIBILITY(default)
3210 -+{
3211 -+_GLIBCXX_BEGIN_NAMESPACE_VERSION
3212 -+
3213 -+ /// @brief Base class for ctype.
3214 -+ struct ctype_base
3215 -+ {
3216 -+ // Non-standard typedefs.
3217 -+ typedef const int* __to_type;
3218 -+
3219 -+ // NB: Offsets into ctype<char>::_M_table force a particular size
3220 -+ // on the mask type. Because of this, we don't use an enum.
3221 -+ typedef unsigned int mask;
3222 -+ static const mask upper = _CTu;
3223 -+ static const mask lower = _CTl;
3224 -+ static const mask alpha = _CTu | _CTl;
3225 -+ static const mask digit = _CTd;
3226 -+ static const mask xdigit = _CTx;
3227 -+ static const mask space = _CTs;
3228 -+ static const mask print = _CTP;
3229 -+ static const mask graph = _CTg;
3230 -+ static const mask cntrl = _CTc;
3231 -+ static const mask punct = _CTp;
3232 -+ static const mask alnum = _CTd | _CTu | _CTl ;
3233 -+ };
3234 -+
3235 -+_GLIBCXX_END_NAMESPACE_VERSION
3236 -+} // namespace
3237 -diff -aurN gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_inline.h gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_inline.h
3238 ---- gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_inline.h 1970-01-01 01:00:00.000000000 +0100
3239 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_inline.h 2012-05-03 18:23:01.046875000 +0200
3240 -@@ -0,0 +1,76 @@
3241 -+// Locale support -*- C++ -*-
3242 -+
3243 -+// Copyright (C) 2000, 2003, 2009, 2010 Free Software Foundation, Inc.
3244 -+//
3245 -+// This file is part of the GNU ISO C++ Library. This library is free
3246 -+// software; you can redistribute it and/or modify it under the
3247 -+// terms of the GNU General Public License as published by the
3248 -+// Free Software Foundation; either version 3, or (at your option)
3249 -+// any later version.
3250 -+
3251 -+// This library is distributed in the hope that it will be useful,
3252 -+// but WITHOUT ANY WARRANTY; without even the implied warranty of
3253 -+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3254 -+// GNU General Public License for more details.
3255 -+
3256 -+// Under Section 7 of GPL version 3, you are granted additional
3257 -+// permissions described in the GCC Runtime Library Exception, version
3258 -+// 3.1, as published by the Free Software Foundation.
3259 -+
3260 -+// You should have received a copy of the GNU General Public License and
3261 -+// a copy of the GCC Runtime Library Exception along with this program;
3262 -+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
3263 -+// <http://www.gnu.org/licenses/>.
3264 -+
3265 -+/** @file bits/ctype_inline.h
3266 -+ * This is an internal header file, included by other library headers.
3267 -+ * Do not attempt to use it directly. @headername{locale}
3268 -+ */
3269 -+
3270 -+//
3271 -+// ISO C++ 14882: 22.1 Locales
3272 -+//
3273 -+
3274 -+// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
3275 -+// functions go in ctype.cc
3276 -+
3277 -+// Mint C types, taken from mintlib-0.57.3/include/ctype.h
3278 -+
3279 -+namespace std _GLIBCXX_VISIBILITY(default)
3280 -+{
3281 -+_GLIBCXX_BEGIN_NAMESPACE_VERSION
3282 -+
3283 -+ bool
3284 -+ ctype<char>::
3285 -+ is(mask __m, char __c) const
3286 -+ { return _ctype[(unsigned char)((__c) + 1)] & __m; }
3287 -+
3288 -+ const char*
3289 -+ ctype<char>::
3290 -+ is(const char* __low, const char* __high, mask* __vec) const
3291 -+ {
3292 -+ while (__low < __high)
3293 -+ *__vec++ = _ctype[(*__low++) + 1] ;
3294 -+ return __high;
3295 -+ }
3296 -+
3297 -+ const char*
3298 -+ ctype<char>::
3299 -+ scan_is(mask __m, const char* __low, const char* __high) const
3300 -+ {
3301 -+ while (__low < __high && !this->is(__m, *__low))
3302 -+ ++__low;
3303 -+ return __low;
3304 -+ }
3305 -+
3306 -+ const char*
3307 -+ ctype<char>::
3308 -+ scan_not(mask __m, const char* __low, const char* __high) const
3309 -+ {
3310 -+ while (__low < __high && this->is(__m, *__low) != 0)
3311 -+ ++__low;
3312 -+ return __low;
3313 -+ }
3314 -+
3315 -+_GLIBCXX_END_NAMESPACE_VERSION
3316 -+} // namespace
3317 -diff -aurN gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_noninline.h gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_noninline.h
3318 ---- gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_noninline.h 1970-01-01 01:00:00.000000000 +0100
3319 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_noninline.h 2012-05-03 18:23:01.046875000 +0200
3320 -@@ -0,0 +1,92 @@
3321 -+// Locale support -*- C++ -*-
3322 -+
3323 -+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2009, 2010
3324 -+// Free Software Foundation, Inc.
3325 -+//
3326 -+// This file is part of the GNU ISO C++ Library. This library is free
3327 -+// software; you can redistribute it and/or modify it under the
3328 -+// terms of the GNU General Public License as published by the
3329 -+// Free Software Foundation; either version 3, or (at your option)
3330 -+// any later version.
3331 -+
3332 -+// This library is distributed in the hope that it will be useful,
3333 -+// but WITHOUT ANY WARRANTY; without even the implied warranty of
3334 -+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3335 -+// GNU General Public License for more details.
3336 -+
3337 -+// Under Section 7 of GPL version 3, you are granted additional
3338 -+// permissions described in the GCC Runtime Library Exception, version
3339 -+// 3.1, as published by the Free Software Foundation.
3340 -+
3341 -+// You should have received a copy of the GNU General Public License and
3342 -+// a copy of the GCC Runtime Library Exception along with this program;
3343 -+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
3344 -+// <http://www.gnu.org/licenses/>.
3345 -+
3346 -+/** @file bits/ctype_noninline.h
3347 -+ * This is an internal header file, included by other library headers.
3348 -+ * Do not attempt to use it directly. @headername{locale}
3349 -+ */
3350 -+
3351 -+//
3352 -+// ISO C++ 14882: 22.1 Locales
3353 -+//
3354 -+
3355 -+// Information as gleaned from /usr/include/ctype.h
3356 -+
3357 -+ const ctype_base::mask*
3358 -+ ctype<char>::classic_table() throw()
3359 -+ { return 0; }
3360 -+
3361 -+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
3362 -+ size_t __refs)
3363 -+ : facet(__refs), _M_del(__table != 0 && __del),
3364 -+ _M_toupper(NULL), _M_tolower(NULL),
3365 -+ _M_table(__table ? __table : classic_table())
3366 -+ {
3367 -+ memset(_M_widen, 0, sizeof(_M_widen));
3368 -+ _M_widen_ok = 0;
3369 -+ memset(_M_narrow, 0, sizeof(_M_narrow));
3370 -+ _M_narrow_ok = 0;
3371 -+ }
3372 -+
3373 -+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
3374 -+ : facet(__refs), _M_del(__table != 0 && __del),
3375 -+ _M_toupper(NULL), _M_tolower(NULL),
3376 -+ _M_table(__table ? __table : classic_table())
3377 -+ {
3378 -+ memset(_M_widen, 0, sizeof(_M_widen));
3379 -+ _M_widen_ok = 0;
3380 -+ memset(_M_narrow, 0, sizeof(_M_narrow));
3381 -+ _M_narrow_ok = 0;
3382 -+ }
3383 -+
3384 -+ char
3385 -+ ctype<char>::do_toupper(char __c) const
3386 -+ { return ::toupper((int) __c); }
3387 -+
3388 -+ const char*
3389 -+ ctype<char>::do_toupper(char* __low, const char* __high) const
3390 -+ {
3391 -+ while (__low < __high)
3392 -+ {
3393 -+ *__low = ::toupper((int) *__low);
3394 -+ ++__low;
3395 -+ }
3396 -+ return __high;
3397 -+ }
3398 -+
3399 -+ char
3400 -+ ctype<char>::do_tolower(char __c) const
3401 -+ { return ::tolower((int) __c); }
3402 -+
3403 -+ const char*
3404 -+ ctype<char>::do_tolower(char* __low, const char* __high) const
3405 -+ {
3406 -+ while (__low < __high)
3407 -+ {
3408 -+ *__low = ::tolower((int) *__low);
3409 -+ ++__low;
3410 -+ }
3411 -+ return __high;
3412 -+ }
3413 -diff -aurN gcc-4.6.3/libstdc++-v3/config/os/mint/os_defines.h gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/os_defines.h
3414 ---- gcc-4.6.3/libstdc++-v3/config/os/mint/os_defines.h 1970-01-01 01:00:00.000000000 +0100
3415 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/os_defines.h 2012-05-03 18:23:01.046875000 +0200
3416 -@@ -0,0 +1,36 @@
3417 -+// Specific definitions for generic platforms -*- C++ -*-
3418 -+
3419 -+// Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc.
3420 -+//
3421 -+// This file is part of the GNU ISO C++ Library. This library is free
3422 -+// software; you can redistribute it and/or modify it under the
3423 -+// terms of the GNU General Public License as published by the
3424 -+// Free Software Foundation; either version 3, or (at your option)
3425 -+// any later version.
3426 -+
3427 -+// This library is distributed in the hope that it will be useful,
3428 -+// but WITHOUT ANY WARRANTY; without even the implied warranty of
3429 -+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
3430 -+// GNU General Public License for more details.
3431 -+
3432 -+// Under Section 7 of GPL version 3, you are granted additional
3433 -+// permissions described in the GCC Runtime Library Exception, version
3434 -+// 3.1, as published by the Free Software Foundation.
3435 -+
3436 -+// You should have received a copy of the GNU General Public License and
3437 -+// a copy of the GCC Runtime Library Exception along with this program;
3438 -+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
3439 -+// <http://www.gnu.org/licenses/>.
3440 -+
3441 -+/** @file bits/os_defines.h
3442 -+ * This is an internal header file, included by other library headers.
3443 -+ * Do not attempt to use it directly. @headername{iosfwd}
3444 -+ */
3445 -+
3446 -+#ifndef _GLIBCXX_OS_DEFINES
3447 -+#define _GLIBCXX_OS_DEFINES 1
3448 -+
3449 -+// System-specific #define, typedefs, corrections, etc, go here. This
3450 -+// file will come before all others.
3451 -+
3452 -+#endif
3453 -diff -aurN gcc-4.6.3/libstdc++-v3/configure gcc-4.6.3-mint-20120503/libstdc++-v3/configure
3454 ---- gcc-4.6.3/libstdc++-v3/configure 2011-11-20 22:24:07.000000000 +0100
3455 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/configure 2012-05-03 18:23:01.125000000 +0200
3456 -@@ -44640,7 +44640,7 @@
3457 - ;;
3458 - esac
3459 - ;;
3460 -- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
3461 -+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*)
3462 -
3463 - # All these tests are for C++; save the language and the compiler flags.
3464 - # The CXXFLAGS thing is suspicious, but based on similar bits previously
3465 -diff -aurN gcc-4.6.3/libstdc++-v3/configure.host gcc-4.6.3-mint-20120503/libstdc++-v3/configure.host
3466 ---- gcc-4.6.3/libstdc++-v3/configure.host 2010-12-06 01:50:04.000000000 +0100
3467 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/configure.host 2012-05-03 18:23:01.125000000 +0200
3468 -@@ -258,6 +258,10 @@
3469 - error_constants_dir="os/mingw32"
3470 - OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)"
3471 - ;;
3472 -+ mint*)
3473 -+ SECTION_FLAGS="${SECTION_FLAGS} -D_GNU_SOURCE"
3474 -+ os_include_dir="os/mint"
3475 -+ ;;
3476 - netbsd*)
3477 - os_include_dir="os/bsd/netbsd"
3478 - ;;
3479 -diff -aurN gcc-4.6.3/libstdc++-v3/crossconfig.m4 gcc-4.6.3-mint-20120503/libstdc++-v3/crossconfig.m4
3480 ---- gcc-4.6.3/libstdc++-v3/crossconfig.m4 2011-02-04 08:26:57.000000000 +0100
3481 -+++ gcc-4.6.3-mint-20120503/libstdc++-v3/crossconfig.m4 2012-05-03 18:23:01.125000000 +0200
3482 -@@ -141,7 +141,7 @@
3483 - ;;
3484 - esac
3485 - ;;
3486 -- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu)
3487 -+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*)
3488 - GLIBCXX_CHECK_COMPILER_FEATURES
3489 - GLIBCXX_CHECK_LINKER_FEATURES
3490 - GLIBCXX_CHECK_MATH_SUPPORT
3491
3492 diff --git a/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint3.patch b/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint3.patch
3493 deleted file mode 100644
3494 index 1c8149c98a..0000000000
3495 --- a/sys-devel/gcc/files/4.6.3/gcc-4.6.3-mint3.patch
3496 +++ /dev/null
3497 @@ -1,12 +0,0 @@
3498 -http://bugs.gentoo.org/show_bug.cgi?id=347319
3499 -
3500 ---- gcc/Makefile.in.old 2010-11-26 18:16:31.000000000 +0000
3501 -+++ gcc/Makefile.in 2010-11-26 18:17:13.000000000 +0000
3502 -@@ -1819,6 +1819,7 @@
3503 - cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS)
3504 - $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \
3505 - cc1-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS)
3506 -+ stack -S 3 $@
3507 -
3508 - #
3509 - # Build libgcc.a.
3510
3511 diff --git a/sys-devel/gcc/files/4.6.3/solaris-x86_64.patch b/sys-devel/gcc/files/4.6.3/solaris-x86_64.patch
3512 deleted file mode 100644
3513 index a7859f3f0a..0000000000
3514 --- a/sys-devel/gcc/files/4.6.3/solaris-x86_64.patch
3515 +++ /dev/null
3516 @@ -1,215 +0,0 @@
3517 -Sort of backport of
3518 -http://gcc.gnu.org/ml/gcc-patches/2011-07/msg00327.html
3519 -
3520 ---- a/gcc/config.gcc
3521 -+++ b/gcc/config.gcc
3522 -@@ -1364,7 +1364,7 @@
3523 - extra_parts="crtbegin.o crtend.o crti.o crtn.o"
3524 - tmake_file="${tmake_file} i386/t-rtems-i386 i386/t-crtstuff t-rtems"
3525 - ;;
3526 --i[34567]86-*-solaris2*)
3527 -+i[34567]86-*-solaris2*|x86_64-*-solaris2*)
3528 - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/sysv4.h sol2.h"
3529 - # Set default arch_32 to pentium4, tune_32 to generic like the other
3530 - # i386 targets, although config.guess defaults to i386-pc-solaris2*.
3531 -@@ -1409,6 +1409,11 @@
3532 - case ${target} in
3533 - *-*-solaris2.1[0-9]*)
3534 - tm_file="${tm_file} i386/x86-64.h i386/sol2-10.h"
3535 -+ case ${target} in
3536 -+ x86_64-*)
3537 -+ tm_file="${tm_file} i386/sol2-64.h"
3538 -+ ;;
3539 -+ esac
3540 - tm_defines="${tm_defines} TARGET_BI_ARCH=1"
3541 - tmake_file="$tmake_file i386/t-sol2-10"
3542 - # i386/t-crtstuff only affects libgcc. Its inclusion
3543 -@@ -3670,7 +3670,7 @@
3544 - i[34567]86-*-gnu*)
3545 - tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp i386/t-linux"
3546 - ;;
3547 -- i[34567]86-*-solaris2*)
3548 -+ i[34567]86-*-solaris2*|x86_64-*-solaris2*)
3549 - tmake_file="${tmake_file} i386/t-fprules-softfp soft-fp/t-softfp"
3550 - ;;
3551 - i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
3552 ---- a/gcc/config.host
3553 -+++ b/gcc/config.host
3554 -@@ -197,7 +197,7 @@
3555 - i370-*-opened* | i370-*-mvs* ) # IBM 360/370/390 Architecture
3556 - host_xm_defines='FATAL_EXIT_CODE=12'
3557 - ;;
3558 -- i[34567]86-*-solaris2*)
3559 -+ i[34567]86-*-solaris2*|x86_64-*-solaris2*)
3560 - out_host_hook_obj=host-solaris.o
3561 - host_xmake_file="${host_xmake_file} x-solaris"
3562 - ;;
3563 ---- a/gcc/config/host-solaris.c
3564 -+++ b/gcc/config/host-solaris.c
3565 -@@ -73,7 +73,7 @@
3566 - #elif defined(__sparc__)
3567 - # define TRY_EMPTY_VM_SPACE 0x80000000
3568 - #elif defined(__x86_64__)
3569 --# define TRY_EMPTY_VM_SPACE 0x8000000000000000
3570 -+# define TRY_EMPTY_VM_SPACE 0x80000000000
3571 - #elif defined(__i386__)
3572 - # define TRY_EMPTY_VM_SPACE 0xB0000000
3573 - #else
3574 ---- a/gcc/configure.ac
3575 -+++ b/gcc/configure.ac
3576 -@@ -2136,7 +2136,7 @@
3577 - # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
3578 - # STV_HIDDEN, so disable .hidden support if so.
3579 - case "${target}" in
3580 -- i?86-*-solaris2*)
3581 -+ i?86-*-solaris2*|x86_64-*-solaris2*)
3582 - if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
3583 - cat > conftest.s <<EOF
3584 - .globl hidden
3585 -@@ -2367,7 +2367,7 @@
3586 - gcc_cv_as_cfi_directive=no
3587 - else
3588 - case "$target" in
3589 -- i?86-*-solaris2.1[[0-9]]*)
3590 -+ i?86-*-solaris2.1[[0-9]]*|x86_64-*-solaris2*)
3591 - # On Solaris/x86, make sure that GCC and gas agree on using
3592 - # read-only .eh_frame sections for 64-bit.
3593 - if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
3594 -@@ -2716,6 +2716,10 @@
3595 - on_solaris=yes
3596 - tga_func=___tls_get_addr
3597 - ;;
3598 -+ x86_64-*-solaris2*)
3599 -+ on_solaris=yes
3600 -+ tga_func=__tls_get_addr
3601 -+ ;;
3602 - *)
3603 - on_solaris=no
3604 - ;;
3605 ---- a/gcc/config/i386/sol2-64.h
3606 -+++ b/gcc/config/i386/sol2-64.h
3607 -@@ -0,0 +1,5 @@
3608 -+/* Definitions of target machine for GCC, for bi-arch i386
3609 -+ running Solaris 2, defaulting to 64-bit code generation. */
3610 -+
3611 -+#undef MULTILIB_DEFAULTS
3612 -+#define MULTILIB_DEFAULTS { "m64" }
3613 ---- a/gcc/configure
3614 -+++ b/gcc/configure
3615 -@@ -21651,7 +21651,7 @@
3616 - # Solaris 9/x86 as incorrectly emits an alias for a hidden symbol with
3617 - # STV_HIDDEN, so disable .hidden support if so.
3618 - case "${target}" in
3619 -- i?86-*-solaris2*)
3620 -+ i?86-*-solaris2*|x86_64-*-solaris2*)
3621 - if test x$gcc_cv_as != x && test x$gcc_cv_objdump != x; then
3622 - cat > conftest.s <<EOF
3623 - .globl hidden
3624 -@@ -21942,7 +21942,7 @@
3625 - gcc_cv_as_cfi_directive=no
3626 - else
3627 - case "$target" in
3628 -- i?86-*-solaris2.1[0-9]*)
3629 -+ i?86-*-solaris2.1[0-9]*|x86_64-*-solaris2*)
3630 - # On Solaris/x86, make sure that GCC and gas agree on using
3631 - # read-only .eh_frame sections for 64-bit.
3632 - if $gcc_cv_as --64 -o conftest.o conftest.s > /dev/null 2>&1 && \
3633 -@@ -22549,6 +22549,10 @@
3634 - on_solaris=yes
3635 - tga_func=___tls_get_addr
3636 - ;;
3637 -+ x86_64-*-solaris2*)
3638 -+ on_solaris=yes
3639 -+ tga_func=__tls_get_addr
3640 -+ ;;
3641 - *)
3642 - on_solaris=no
3643 - ;;
3644 ---- a/libgcc/config.host
3645 -+++ b/libgcc/config.host
3646 -@@ -316,7 +316,7 @@
3647 - ;;
3648 - i[34567]86-*-rtems*)
3649 - ;;
3650 --i[34567]86-*-solaris2*)
3651 -+i[34567]86-*-solaris2*|x86_64-*-solaris2*)
3652 - tmake_file="${tmake_file} i386/t-sol2"
3653 - case ${host} in
3654 - *-*-solaris2.1[0-9]*)
3655 ---- a/libgcc/configure.ac
3656 -+++ b/libgcc/configure.ac
3657 -@@ -176,7 +176,7 @@
3658 - # Link with -nostartfiles -nodefaultlibs since neither are present while
3659 - # building libgcc.
3660 - case ${host} in
3661 --i?86-*-solaris2*)
3662 -+i?86-*-solaris2*|x86_64-*-solaris2*)
3663 - cat > conftest.s <<EOF
3664 - .section .eh_frame,"a",@unwind
3665 - .zero 4
3666 ---- a/libgcc/configure
3667 -+++ b/libgcc/configure
3668 -@@ -3425,7 +3425,7 @@
3669 - # Link with -nostartfiles -nodefaultlibs since neither are present while
3670 - # building libgcc.
3671 - case ${host} in
3672 --i?86-*-solaris2*)
3673 -+i?86-*-solaris2*|x86_64-*-solaris2*)
3674 - cat > conftest.s <<EOF
3675 - .section .eh_frame,"a",@unwind
3676 - .zero 4
3677 ---- a/libcpp/configure.ac
3678 -+++ b/libcpp/configure.ac
3679 -@@ -145,7 +145,7 @@
3680 - ia64-*-* | \
3681 - hppa*64*-*-* | \
3682 - i[34567]86-*-darwin* | \
3683 -- i[34567]86-*-solaris2.1[0-9]* | \
3684 -+ i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]* | \
3685 - i[34567]86-w64-mingw* | \
3686 - mips*-*-* | \
3687 - mmix-*-* | \
3688 ---- a/libcpp/configure
3689 -+++ b/libcpp/configure
3690 -@@ -7095,7 +7095,7 @@
3691 - ia64-*-* | \
3692 - hppa*64*-*-* | \
3693 - i[34567]86-*-darwin* | \
3694 -- i[34567]86-*-solaris2.1[0-9]* | \
3695 -+ i[34567]86-*-solaris2.1[0-9]* | x86_64-*-solaris2.1[0-9]* | \
3696 - i[34567]86-w64-mingw* | \
3697 - mips*-*-* | \
3698 - mmix-*-* | \
3699 ---- a/libgcc/config.host
3700 -+++ b/libgcc/config.host
3701 -@@ -612,7 +612,7 @@
3702 - i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
3703 - i[34567]86-*-linux* | x86_64-*-linux* | \
3704 - i[34567]86-*-gnu* | \
3705 -- i[34567]86-*-solaris2* | \
3706 -+ i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \
3707 - i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \
3708 - i[34567]86-*-freebsd* | x86_64-*-freebsd*)
3709 - if test "${host_address}" = 32; then
3710 ---- a/configure.ac
3711 -+++ b/configure.ac
3712 -@@ -870,7 +870,7 @@
3713 - i[[3456789]]86-*-sco*)
3714 - noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3715 - ;;
3716 -- i[[3456789]]86-*-solaris2*)
3717 -+ i[[3456789]]86-*-solaris2* | x86_64-*-solaris2.1?)
3718 - noconfigdirs="$noconfigdirs target-libgloss"
3719 - ;;
3720 - i[[3456789]]86-*-sysv4*)
3721 ---- a/configure
3722 -+++ b/configure
3723 -@@ -3449,7 +3449,7 @@
3724 - i[3456789]86-*-sco*)
3725 - noconfigdirs="$noconfigdirs gprof target-libgloss ${libgcj}"
3726 - ;;
3727 -- i[3456789]86-*-solaris2*)
3728 -+ i[3456789]86-*-solaris2* | x86_64-*-solaris2.1?)
3729 - noconfigdirs="$noconfigdirs target-libgloss"
3730 - ;;
3731 - i[3456789]86-*-sysv4*)
3732
3733 diff --git a/sys-devel/gcc/files/awk/fixlafiles.awk b/sys-devel/gcc/files/awk/fixlafiles.awk
3734 deleted file mode 100644
3735 index a49af35515..0000000000
3736 --- a/sys-devel/gcc/files/awk/fixlafiles.awk
3737 +++ /dev/null
3738 @@ -1,314 +0,0 @@
3739 -# Copyright 1999-2005 Gentoo Foundation
3740 -# Distributed under the terms of the GNU General Public License v2
3741 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk,v 1.15 2008/02/19 05:47:29 vapier Exp $
3742 -
3743 -#
3744 -# Helper functions
3745 -#
3746 -function printn(string) {
3747 - printf("%s", string)
3748 -}
3749 -function einfo(string) {
3750 - printf(" \033[32;01m*\033[0m %s\n", string)
3751 -}
3752 -function einfon(string) {
3753 - printf(" \033[32;01m*\033[0m %s", string)
3754 -}
3755 -function ewarn(string) {
3756 - printf(" \033[33;01m*\033[0m %s\n", string)
3757 -}
3758 -function ewarnn(string) {
3759 - printf(" \033[33;01m*\033[0m %s", string)
3760 -}
3761 -function eerror(string) {
3762 - printf(" \033[31;01m*\033[0m %s\n", string)
3763 -}
3764 -
3765 -#
3766 -# assert(condition, errmsg)
3767 -# assert that a condition is true. Otherwise exit.
3768 -#
3769 -function assert(condition, string) {
3770 - if (! condition) {
3771 - printf("%s:%d: assertion failed: %s\n",
3772 - FILENAME, FNR, string) > "/dev/stderr"
3773 - _assert_exit = 1
3774 - exit 1
3775 - }
3776 -}
3777 -
3778 -#
3779 -# system(command, return)
3780 -# wrapper that normalizes return codes ...
3781 -#
3782 -function dosystem(command, ret) {
3783 - ret = 0
3784 - ret = system(command)
3785 - if (ret == 0)
3786 - return 1
3787 - else
3788 - return 0
3789 -}
3790 -
3791 -BEGIN {
3792 - #
3793 - # Get our variables from environment
3794 - #
3795 - OLDVER = ENVIRON["OLDVER"]
3796 - OLDCHOST = ENVIRON["OLDCHOST"]
3797 -
3798 - if (OLDVER == "") {
3799 - eerror("Could not get OLDVER!");
3800 - exit 1
3801 - }
3802 -
3803 - # Setup some sane defaults
3804 - LIBCOUNT = 2
3805 - HAVE_GCC34 = 0
3806 - DIRLIST[1] = "@GENTOO_PORTAGE_EPREFIX@/lib"
3807 - DIRLIST[2] = "@GENTOO_PORTAGE_EPREFIX@/usr/lib"
3808 -
3809 - #
3810 - # Walk /etc/ld.so.conf to discover all our library paths
3811 - #
3812 - pipe = "cat @GENTOO_PORTAGE_EPREFIX@/etc/ld.so.conf | sort 2>/dev/null"
3813 - while(((pipe) | getline ldsoconf_data) > 0) {
3814 - if (ldsoconf_data !~ /^[[:space:]]*#/) {
3815 - if (ldsoconf_data == "") continue
3816 -
3817 - # Remove any trailing comments
3818 - sub(/#.*$/, "", ldsoconf_data)
3819 - # Remove any trailing spaces
3820 - sub(/[[:space:]]+$/, "", ldsoconf_data)
3821 -
3822 - # If there's more than one path per line, split
3823 - # it up as if they were sep lines
3824 - split(ldsoconf_data, nodes, /[:,[:space:]]/)
3825 -
3826 - # Now add the rest from ld.so.conf
3827 - for (x in nodes) {
3828 - # wtf does this line do ?
3829 - sub(/=.*/, "", nodes[x])
3830 - # Prune trailing /
3831 - sub(/\/$/, "", nodes[x])
3832 -
3833 - if (nodes[x] == "") continue
3834 -
3835 - #
3836 - # Drop the directory if its a child directory of
3837 - # one that was already added ...
3838 - # For example, if we have:
3839 - # /usr/lib /usr/libexec /usr/lib/mozilla /usr/lib/nss
3840 - # We really just want to save /usr/lib /usr/libexec
3841 - #
3842 - CHILD = 0
3843 - for (y in DIRLIST) {
3844 - if (nodes[x] ~ "^" DIRLIST[y] "(/|$)") {
3845 - CHILD = 1
3846 - break
3847 - }
3848 - }
3849 - if (CHILD) continue
3850 -
3851 - DIRLIST[++LIBCOUNT] = nodes[x]
3852 - }
3853 - }
3854 - }
3855 - close(pipe)
3856 -
3857 - #
3858 - # Get line from gcc's output containing CHOST
3859 - #
3860 - pipe = "gcc -print-file-name=libgcc.a 2>/dev/null"
3861 - if ((!((pipe) | getline TMP_CHOST)) || (TMP_CHOST == "")) {
3862 - close(pipe)
3863 -
3864 - # If we fail to get the CHOST, see if we can get the CHOST
3865 - # portage thinks we are using ...
3866 - pipe = "@GENTOO_PORTAGE_EPREFIX@/usr/bin/portageq envvar 'CHOST'"
3867 - assert(((pipe) | getline CHOST), "(" pipe ") | getline CHOST")
3868 - } else {
3869 - # Check pre gcc-3.4.x versions
3870 - CHOST = gensub("^.+lib/gcc-lib/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST)
3871 -
3872 - if (CHOST == TMP_CHOST || CHOST == "") {
3873 - # Check gcc-3.4.x or later
3874 - CHOST = gensub("^.+lib/gcc/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST);
3875 -
3876 - if (CHOST == TMP_CHOST || CHOST == "")
3877 - CHOST = ""
3878 - else
3879 - HAVE_GCC34 = 1
3880 - }
3881 - }
3882 - close(pipe)
3883 -
3884 - if (CHOST == "") {
3885 - eerror("Could not get gcc's CHOST!")
3886 - exit 1
3887 - }
3888 -
3889 - if (OLDCHOST != "")
3890 - if (OLDCHOST == CHOST)
3891 - OLDCHOST = ""
3892 -
3893 - GCCLIBPREFIX_OLD = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc-lib/"
3894 - GCCLIBPREFIX_NEW = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/"
3895 -
3896 - if (HAVE_GCC34)
3897 - GCCLIBPREFIX = GCCLIBPREFIX_NEW
3898 - else
3899 - GCCLIBPREFIX = GCCLIBPREFIX_OLD
3900 -
3901 - GCCLIB = GCCLIBPREFIX CHOST
3902 -
3903 - if (OLDCHOST != "") {
3904 - OLDGCCLIB1 = GCCLIBPREFIX_OLD OLDCHOST
3905 - OLDGCCLIB2 = GCCLIBPREFIX_NEW OLDCHOST
3906 - }
3907 -
3908 - # Get current gcc's version
3909 - pipe = "gcc -dumpversion"
3910 - assert(((pipe) | getline NEWVER), "(" pipe ") | getline NEWVER)")
3911 - close(pipe)
3912 -
3913 - if (NEWVER == "") {
3914 - eerror("Could not get gcc's version!")
3915 - exit 1
3916 - }
3917 -
3918 - # Nothing to do ?
3919 - if ((OLDVER == NEWVER) && (OLDCHOST == ""))
3920 - exit 0
3921 -
3922 - #
3923 - # Ok, now let's scan for the .la files and actually fix them up
3924 - #
3925 - for (x = 1; x <= LIBCOUNT; x++) {
3926 - # Do nothing if the target dir is gcc's internal library path
3927 - if (DIRLIST[x] ~ GCCLIBPREFIX_OLD ||
3928 - DIRLIST[x] ~ GCCLIBPREFIX_NEW)
3929 - continue
3930 -
3931 - einfo(" [" x "/" LIBCOUNT "] Scanning " DIRLIST[x] " ...")
3932 -
3933 - pipe = "find " DIRLIST[x] "/ -name '*.la' 2>/dev/null"
3934 - while (((pipe) | getline la_files) > 0) {
3935 -
3936 - # Do nothing if the .la file is located in gcc's internal lib path
3937 - if (la_files ~ GCCLIBPREFIX_OLD ||
3938 - la_files ~ GCCLIBPREFIX_NEW)
3939 - continue
3940 -
3941 - CHANGED = 0
3942 - CHOST_CHANGED = 0
3943 -
3944 - # See if we need to fix the .la file
3945 - while ((getline la_data < (la_files)) > 0) {
3946 - if (OLDCHOST != "") {
3947 - if ((gsub(OLDGCCLIB1 "[/[:space:]]+",
3948 - GCCLIB, la_data) > 0) ||
3949 - (gsub(OLDGCCLIB2 "[/[:space:]]+",
3950 - GCCLIB, la_data) > 0)) {
3951 - CHANGED = 1
3952 - CHOST_CHANGED = 1
3953 - }
3954 - }
3955 - if (OLDVER != NEWVER) {
3956 - if ((gsub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "[/[:space:]]*",
3957 - GCCLIB "/" NEWVER, la_data) > 0) ||
3958 - (gsub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "[/[:space:]]*",
3959 - GCCLIB "/" NEWVER, la_data) > 0))
3960 - CHANGED = 1
3961 - }
3962 - }
3963 - close(la_files)
3964 -
3965 - # Do the actual changes in a second loop, as we can then
3966 - # verify that CHOST_CHANGED among things is correct ...
3967 - if (CHANGED) {
3968 - ewarnn(" FIXING: " la_files " ...")
3969 -
3970 - if (CHANGED)
3971 - printn("[")
3972 -
3973 - # Clear the temp file (removing rather than '>foo' is better
3974 - # out of a security point of view?)
3975 - dosystem("rm -f " la_files ".new")
3976 -
3977 - while ((getline la_data < (la_files)) > 0) {
3978 - if (OLDCHOST != "") {
3979 - tmpstr = gensub(OLDGCCLIB1 "([/[:space:]]+)",
3980 - GCCLIB "\\1", "g", la_data)
3981 - tmpstr = gensub(OLDGCCLIB2 "([/[:space:]]+)",
3982 - GCCLIB "\\1", "g", tmpstr)
3983 -
3984 - if (la_data != tmpstr) {
3985 - printn("c")
3986 - la_data = tmpstr
3987 - }
3988 -
3989 - if (CHOST_CHANGED > 0) {
3990 - # We try to be careful about CHOST changes outside
3991 - # the gcc library path (meaning we cannot match it
3992 - # via /GCCLIBPREFIX CHOST/) ...
3993 -
3994 - # Catch:
3995 - #
3996 - # dependency_libs=' -L/usr/CHOST/{bin,lib}'
3997 - #
3998 - gsub("-L@GENTOO_PORTAGE_EPREFIX@/usr/" OLDCHOST "/",
3999 - "-L@GENTOO_PORTAGE_EPREFIX@/usr/" CHOST "/", la_data)
4000 - # Catch:
4001 - #
4002 - # dependency_libs=' -L/usr/lib/gcc-lib/CHOST/VER/../../../../CHOST/lib'
4003 - #
4004 - la_data = gensub("(" GCCLIB "/[^[:space:]]+)/" OLDCHOST "/",
4005 - "\\1/" CHOST "/", "g", la_data)
4006 - }
4007 - }
4008 -
4009 - if (OLDVER != NEWVER) {
4010 - # Catch:
4011 - #
4012 - # dependency_libs=' -L/usr/lib/gcc/CHOST/VER'
4013 - #
4014 - tmpstr = gensub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "([/[:space:]]+)",
4015 - GCCLIB "/" NEWVER "\\1", "g", la_data)
4016 - tmpstr = gensub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "([/[:space:]]+)",
4017 - GCCLIB "/" NEWVER "\\1", "g", tmpstr)
4018 -
4019 - if (la_data != tmpstr) {
4020 - # Catch:
4021 - #
4022 - # dependency_libs=' -L/usr/lib/gcc-lib/../../CHOST/lib'
4023 - #
4024 - # in cases where we have gcc34
4025 - tmpstr = gensub(GCCLIBPREFIX_OLD "(../../" CHOST "/lib)",
4026 - GCCLIBPREFIX "\\1", "g", tmpstr)
4027 - tmpstr = gensub(GCCLIBPREFIX_NEW "(../../" CHOST "/lib)",
4028 - GCCLIBPREFIX "\\1", "g", tmpstr)
4029 - printn("v")
4030 - la_data = tmpstr
4031 - }
4032 - }
4033 -
4034 - print la_data >> (la_files ".new")
4035 - }
4036 -
4037 - if (CHANGED)
4038 - print "]"
4039 -
4040 - close(la_files)
4041 - close(la_files ".new")
4042 -
4043 - assert(dosystem("mv -f " la_files ".new " la_files),
4044 - "dosystem(\"mv -f " la_files ".new " la_files "\")")
4045 - }
4046 - }
4047 -
4048 - close(pipe)
4049 - }
4050 -}
4051 -
4052 -# vim:ts=4
4053
4054 diff --git a/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la b/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la
4055 deleted file mode 100644
4056 index 0c95253523..0000000000
4057 --- a/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la
4058 +++ /dev/null
4059 @@ -1,335 +0,0 @@
4060 -# Copyright 1999-2005 Gentoo Foundation
4061 -# Distributed under the terms of the GNU General Public License v2
4062 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/fixlafiles.awk-no_gcc_la,v 1.4 2010/03/19 23:53:07 vapier Exp $
4063 -
4064 -#
4065 -# Helper functions
4066 -#
4067 -function printn(string) {
4068 - printf("%s", string)
4069 -}
4070 -function einfo(string) {
4071 - printf(" \033[32;01m*\033[0m %s\n", string)
4072 -}
4073 -function einfon(string) {
4074 - printf(" \033[32;01m*\033[0m %s", string)
4075 -}
4076 -function ewarn(string) {
4077 - printf(" \033[33;01m*\033[0m %s\n", string)
4078 -}
4079 -function ewarnn(string) {
4080 - printf(" \033[33;01m*\033[0m %s", string)
4081 -}
4082 -function eerror(string) {
4083 - printf(" \033[31;01m*\033[0m %s\n", string)
4084 -}
4085 -
4086 -#
4087 -# assert(condition, errmsg)
4088 -# assert that a condition is true. Otherwise exit.
4089 -#
4090 -function assert(condition, string) {
4091 - if (! condition) {
4092 - printf("%s:%d: assertion failed: %s\n",
4093 - FILENAME, FNR, string) > "/dev/stderr"
4094 - _assert_exit = 1
4095 - exit 1
4096 - }
4097 -}
4098 -
4099 -#
4100 -# system(command, return)
4101 -# wrapper that normalizes return codes ...
4102 -#
4103 -function dosystem(command, ret) {
4104 - ret = 0
4105 - ret = system(command)
4106 - if (ret == 0)
4107 - return 1
4108 - else
4109 - return 0
4110 -}
4111 -
4112 -#
4113 -# parse_ld_conf(config_file)
4114 -#
4115 -function parse_ld_conf(conf, pipe, ldsoconf_data, CHILD, y) {
4116 - pipe = "cd @GENTOO_PORTAGE_EPREFIX@/etc; cat " conf " | sort 2>/dev/null"
4117 - while(((pipe) | getline ldsoconf_data) > 0) {
4118 - if (ldsoconf_data ~ /^[[:space:]]*#/)
4119 - continue
4120 - if (ldsoconf_data == "")
4121 - continue
4122 -
4123 - # Handle the "include" keyword
4124 - if (ldsoconf_data ~ /^include /) {
4125 - sub(/^include /, "", ldsoconf_data)
4126 - parse_ld_conf(ldsoconf_data)
4127 - continue
4128 - }
4129 -
4130 - # Remove any trailing comments
4131 - sub(/#.*$/, "", ldsoconf_data)
4132 - # Remove any trailing spaces
4133 - sub(/[[:space:]]+$/, "", ldsoconf_data)
4134 - # Eat duplicate slashes
4135 - sub(/\/\//, "/", ldsoconf_data)
4136 - # Prune trailing /
4137 - sub(/\/$/, "", ldsoconf_data)
4138 -
4139 - #
4140 - # Drop the directory if its a child directory of
4141 - # one that was already added ...
4142 - # For example, if we have:
4143 - # /usr/lib /usr/libexec /usr/lib/mozilla /usr/lib/nss
4144 - # We really just want to save /usr/lib /usr/libexec
4145 - #
4146 - CHILD = 0
4147 - for (y in DIRLIST) {
4148 - if (ldsoconf_data ~ "^" DIRLIST[y] "(/|$)") {
4149 - CHILD = 1
4150 - break
4151 - }
4152 - }
4153 - if (CHILD) continue
4154 -
4155 - DIRLIST[++LIBCOUNT] = ldsoconf_data
4156 - }
4157 - close(pipe)
4158 -}
4159 -
4160 -BEGIN {
4161 - #
4162 - # Get our variables from environment
4163 - #
4164 - OLDVER = ENVIRON["OLDVER"]
4165 - OLDCHOST = ENVIRON["OLDCHOST"]
4166 -
4167 - if (OLDVER == "") {
4168 - eerror("Could not get OLDVER!");
4169 - exit 1
4170 - }
4171 -
4172 - # Setup some sane defaults
4173 - LIBCOUNT = 2
4174 - HAVE_GCC34 = 0
4175 - DIRLIST[1] = "@GENTOO_PORTAGE_EPREFIX@/lib"
4176 - DIRLIST[2] = "@GENTOO_PORTAGE_EPREFIX@/usr/lib"
4177 -
4178 - #
4179 - # Walk /etc/ld.so.conf to discover all our library paths
4180 - #
4181 - parse_ld_conf("@GENTOO_PORTAGE_EPREFIX@/etc/ld.so.conf")
4182 -
4183 - #
4184 - # Get line from gcc's output containing CHOST
4185 - #
4186 - pipe = "gcc -print-file-name=libgcc.a 2>/dev/null"
4187 - if ((!((pipe) | getline TMP_CHOST)) || (TMP_CHOST == "")) {
4188 - close(pipe)
4189 -
4190 - # If we fail to get the CHOST, see if we can get the CHOST
4191 - # portage thinks we are using ...
4192 - pipe = "@GENTOO_PORTAGE_EPREFIX@/usr/bin/portageq envvar 'CHOST'"
4193 - assert(((pipe) | getline CHOST), "(" pipe ") | getline CHOST")
4194 - } else {
4195 - # Check pre gcc-3.4.x versions
4196 - CHOST = gensub("^.+lib/gcc-lib/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST)
4197 -
4198 - if (CHOST == TMP_CHOST || CHOST == "") {
4199 - # Check gcc-3.4.x or later
4200 - CHOST = gensub("^.+lib/gcc/([^/]+)/[0-9]+.+$", "\\1", 1, TMP_CHOST);
4201 -
4202 - if (CHOST == TMP_CHOST || CHOST == "")
4203 - CHOST = ""
4204 - else
4205 - HAVE_GCC34 = 1
4206 - }
4207 - }
4208 - close(pipe)
4209 -
4210 - if (CHOST == "") {
4211 - eerror("Could not get gcc's CHOST!")
4212 - exit 1
4213 - }
4214 -
4215 - if (OLDCHOST != "")
4216 - if (OLDCHOST == CHOST)
4217 - OLDCHOST = ""
4218 -
4219 - GCCLIBPREFIX_OLD = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc-lib/"
4220 - GCCLIBPREFIX_NEW = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/"
4221 -
4222 - if (HAVE_GCC34)
4223 - GCCLIBPREFIX = GCCLIBPREFIX_NEW
4224 - else
4225 - GCCLIBPREFIX = GCCLIBPREFIX_OLD
4226 -
4227 - GCCLIB = GCCLIBPREFIX CHOST
4228 -
4229 - if (OLDCHOST != "") {
4230 - OLDGCCLIB1 = GCCLIBPREFIX_OLD OLDCHOST
4231 - OLDGCCLIB2 = GCCLIBPREFIX_NEW OLDCHOST
4232 - }
4233 -
4234 - # Get current gcc's version
4235 - pipe = "gcc -dumpversion"
4236 - assert(((pipe) | getline NEWVER), "(" pipe ") | getline NEWVER)")
4237 - close(pipe)
4238 -
4239 - if (NEWVER == "") {
4240 - eerror("Could not get gcc's version!")
4241 - exit 1
4242 - }
4243 -
4244 - # Nothing to do ?
4245 - # NB: Do not check for (OLDVER == NEWVER) anymore, as we might need to
4246 - # replace libstdc++.la ....
4247 - if ((OLDVER == "") && (OLDCHOST == ""))
4248 - exit 0
4249 -
4250 - #
4251 - # Ok, now let's scan for the .la files and actually fix them up
4252 - #
4253 - for (x = 1; x <= LIBCOUNT; x++) {
4254 - # Do nothing if the target dir is gcc's internal library path
4255 - if (DIRLIST[x] ~ GCCLIBPREFIX_OLD ||
4256 - DIRLIST[x] ~ GCCLIBPREFIX_NEW)
4257 - continue
4258 -
4259 - einfo(" [" x "/" LIBCOUNT "] Scanning " DIRLIST[x] " ...")
4260 -
4261 - pipe = "find " DIRLIST[x] "/ -name '*.la' 2>/dev/null"
4262 - while (((pipe) | getline la_files) > 0) {
4263 -
4264 - # Do nothing if the .la file is located in gcc's internal lib path
4265 - if (la_files ~ GCCLIBPREFIX_OLD ||
4266 - la_files ~ GCCLIBPREFIX_NEW)
4267 - continue
4268 -
4269 - CHANGED = 0
4270 - CHOST_CHANGED = 0
4271 -
4272 - # See if we need to fix the .la file
4273 - while ((getline la_data < (la_files)) > 0) {
4274 - if (OLDCHOST != "") {
4275 - if ((gsub(OLDGCCLIB1 "[/[:space:]]+",
4276 - GCCLIB, la_data) > 0) ||
4277 - (gsub(OLDGCCLIB2 "[/[:space:]]+",
4278 - GCCLIB, la_data) > 0)) {
4279 - CHANGED = 1
4280 - CHOST_CHANGED = 1
4281 - }
4282 - }
4283 - if (OLDVER != NEWVER) {
4284 - if ((gsub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "[/[:space:]]*",
4285 - GCCLIB "/" NEWVER, la_data) > 0) ||
4286 - (gsub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "[/[:space:]]*",
4287 - GCCLIB "/" NEWVER, la_data) > 0))
4288 - CHANGED = 1
4289 - }
4290 - # We now check if we have libstdc++.la, as we remove the
4291 - # libtool linker scripts for gcc ...
4292 - # We do this last, as we only match the new paths
4293 - if (gsub(GCCLIB "/" NEWVER "/libstdc\\+\\+\\.la",
4294 - "-lstdc++", la_data) > 0)
4295 - CHANGED = 1
4296 - }
4297 - close(la_files)
4298 -
4299 - # Do the actual changes in a second loop, as we can then
4300 - # verify that CHOST_CHANGED among things is correct ...
4301 - if (CHANGED) {
4302 - ewarnn(" FIXING: " la_files " ...[")
4303 -
4304 - # Clear the temp file (removing rather than '>foo' is better
4305 - # out of a security point of view?)
4306 - dosystem("rm -f " la_files ".new")
4307 -
4308 - while ((getline la_data < (la_files)) > 0) {
4309 - if (OLDCHOST != "") {
4310 - tmpstr = gensub(OLDGCCLIB1 "([/[:space:]]+)",
4311 - GCCLIB "\\1", "g", la_data)
4312 - tmpstr = gensub(OLDGCCLIB2 "([/[:space:]]+)",
4313 - GCCLIB "\\1", "g", tmpstr)
4314 -
4315 - if (la_data != tmpstr) {
4316 - printn("c")
4317 - la_data = tmpstr
4318 - }
4319 -
4320 - if (CHOST_CHANGED > 0) {
4321 - # We try to be careful about CHOST changes outside
4322 - # the gcc library path (meaning we cannot match it
4323 - # via /GCCLIBPREFIX CHOST/) ...
4324 -
4325 - # Catch:
4326 - #
4327 - # dependency_libs=' -L/usr/CHOST/{bin,lib}'
4328 - #
4329 - gsub("-L@GENTOO_PORTAGE_EPREFIX@/usr/" OLDCHOST "/",
4330 - "-L@GENTOO_PORTAGE_EPREFIX@/usr/" CHOST "/", la_data)
4331 - # Catch:
4332 - #
4333 - # dependency_libs=' -L/usr/lib/gcc-lib/CHOST/VER/../../../../CHOST/lib'
4334 - #
4335 - la_data = gensub("(" GCCLIB "/[^[:space:]]+)/" OLDCHOST "/",
4336 - "\\1/" CHOST "/", "g", la_data)
4337 - }
4338 - }
4339 -
4340 - if (OLDVER != NEWVER) {
4341 - # Catch:
4342 - #
4343 - # dependency_libs=' -L/usr/lib/gcc/CHOST/VER'
4344 - #
4345 - tmpstr = gensub(GCCLIBPREFIX_OLD CHOST "/" OLDVER "([/[:space:]]+)",
4346 - GCCLIB "/" NEWVER "\\1", "g", la_data)
4347 - tmpstr = gensub(GCCLIBPREFIX_NEW CHOST "/" OLDVER "([/[:space:]]+)",
4348 - GCCLIB "/" NEWVER "\\1", "g", tmpstr)
4349 -
4350 - if (la_data != tmpstr) {
4351 - # Catch:
4352 - #
4353 - # dependency_libs=' -L/usr/lib/gcc-lib/../../CHOST/lib'
4354 - #
4355 - # in cases where we have gcc34
4356 - tmpstr = gensub(GCCLIBPREFIX_OLD "(../../" CHOST "/lib)",
4357 - GCCLIBPREFIX "\\1", "g", tmpstr)
4358 - tmpstr = gensub(GCCLIBPREFIX_NEW "(../../" CHOST "/lib)",
4359 - GCCLIBPREFIX "\\1", "g", tmpstr)
4360 - printn("v")
4361 - la_data = tmpstr
4362 - }
4363 - }
4364 -
4365 - # We now check if we have libstdc++.la, as we remove the
4366 - # libtool linker scripts for gcc and any referencese in any
4367 - # libtool linker scripts.
4368 - # We do this last, as we only match the new paths
4369 - tmpstr = gensub(GCCLIB "/" NEWVER "/libstdc\\+\\+\\.la",
4370 - "-lstdc++", "g", la_data);
4371 - if (la_data != tmpstr) {
4372 - printn("l")
4373 - la_data = tmpstr
4374 - }
4375 -
4376 - print la_data >> (la_files ".new")
4377 - }
4378 -
4379 - if (CHANGED)
4380 - print "]"
4381 -
4382 - close(la_files)
4383 - close(la_files ".new")
4384 -
4385 - assert(dosystem("mv -f " la_files ".new " la_files),
4386 - "dosystem(\"mv -f " la_files ".new " la_files "\")")
4387 - }
4388 - }
4389 -
4390 - close(pipe)
4391 - }
4392 -}
4393 -
4394 -# vim:ts=4
4395
4396 diff --git a/sys-devel/gcc/files/awk/scanforssp.awk b/sys-devel/gcc/files/awk/scanforssp.awk
4397 deleted file mode 100644
4398 index e8a1fe8fc8..0000000000
4399 --- a/sys-devel/gcc/files/awk/scanforssp.awk
4400 +++ /dev/null
4401 @@ -1,225 +0,0 @@
4402 -# Copyright 1999-2004 Gentoo Foundation
4403 -# Distributed under the terms of the GNU General Public License v2
4404 -# Author: Martin Schlemmer <azarah@g.o>
4405 -# Contributor: Ned Ludd <solar@g.o>
4406 -# Contributor: Natanael Copa <nat@×××.net>
4407 -# Contributor: Carter Smithhart <derheld42@×××××××.net>
4408 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/awk/scanforssp.awk,v 1.7 2004/07/15 00:59:02 agriffis Exp $
4409 -
4410 -
4411 -# Does not seem to be used in this script.
4412 -function printn(string)
4413 -{
4414 - printf("%s", string)
4415 -}
4416 -
4417 -function einfo(string)
4418 -{
4419 - printf(" %s %s%s", "\033[32;01m*\033[0m", string, "\n")
4420 -}
4421 -
4422 -# Does not seem to be used in this script.
4423 -function einfon(string)
4424 -{
4425 - printf(" %s %s" , "\033[32;01m*\033[0m", string)
4426 -}
4427 -
4428 -function ewarn(string)
4429 -{
4430 - printf(" %s %s%s" , "\033[33;01m*\033[0m", string, "\n")
4431 -}
4432 -
4433 -# Does not seem to be used in this script.
4434 -function ewarnn(string)
4435 -{
4436 - printf("%s %s" , "\032[33;01m*\033[0m", string)
4437 -}
4438 -
4439 -function eerror(string)
4440 -{
4441 - printf(" %s %s%s" , "\033[31;01m*\033[0m", string, "\n")
4442 -}
4443 -
4444 - # These are private, else wierd things
4445 - # might happen ...
4446 -function iself(scan_files, scan_file_pipe, scan_data) {
4447 - # Can we open() a file and read() 4 bytes?
4448 - scan_file_pipe = ("head -c 4 " scan_files " 2>/dev/null | tail -c 3")
4449 - scan_file_pipe | getline scan_data
4450 - close(scan_file_pipe)
4451 - return ((scan_data == "ELF") ? 0 : 1)
4452 -}
4453 -
4454 -BEGIN {
4455 - # Do we have etcat ?
4456 - pipe = ("which etcat 2>/dev/null")
4457 - if ((((pipe) | getline etcat_data) > 0) && (etcat_data != ""))
4458 - auto_etcat = 1
4459 - else
4460 - auto_etcat = 0
4461 -
4462 - # Fix bug that causes script to fail when pipe is not closed. Closes bug #36792
4463 - close(pipe)
4464 -
4465 - DIRCOUNT = 0
4466 - # Add the two default library paths
4467 - DIRLIST[1] = "/lib"
4468 - DIRLIST[2] = "/usr/lib"
4469 -
4470 - # Walk /etc/ld.so.conf line for line and get any library paths
4471 - pipe = ("cat /etc/ld.so.conf 2>/dev/null | sort")
4472 - while(((pipe) | getline ldsoconf_data) > 0) {
4473 -
4474 - if (ldsoconf_data !~ /^[[:space:]]*#/) {
4475 -
4476 - if (ldsoconf_data == "") continue
4477 -
4478 - # Remove any trailing comments
4479 - sub(/#.*$/, "", ldsoconf_data)
4480 - # Remove any trailing spaces
4481 - sub(/[[:space:]]+$/, "", ldsoconf_data)
4482 -
4483 - split(ldsoconf_data, nodes, /[:,[:space:]]/)
4484 -
4485 - # Now add the rest from ld.so.conf
4486 - for (x in nodes) {
4487 -
4488 - sub(/=.*/, "", nodes[x])
4489 - sub(/\/$/, "", nodes[x])
4490 -
4491 - if (nodes[x] == "") continue
4492 -
4493 - CHILD = 0
4494 -
4495 - # Drop the directory if its a child directory of
4496 - # one that was already added ...
4497 - for (y in DIRLIST) {
4498 -
4499 - if (nodes[x] ~ "^" DIRLIST[y]) {
4500 -
4501 - CHILD = 1
4502 - break
4503 - }
4504 - }
4505 -
4506 - if (CHILD) continue
4507 -
4508 - DIRLIST[++DIRCOUNT + 2] = nodes[x]
4509 - }
4510 - }
4511 - }
4512 -
4513 -# We have no guarantee that ld.so.conf have more library paths than
4514 -# the default, and its better scan files only in /lib and /usr/lib
4515 -# than nothing at all ...
4516 -#
4517 -# exit_val = close(pipe)
4518 -# if (exit_val != 0)
4519 -# print(exit_val " - " ERRNO)
4520 -#
4521 -# if (DIRCOUNT == 0) {
4522 -# eerror("Could not read from /etc/ld.so.conf!")
4523 -# exit 1
4524 -# }
4525 -
4526 - # Correct DIRCOUNT, as we already added /lib and /usr/lib
4527 - DIRCOUNT += 2
4528 -
4529 - # Add all the dirs in $PATH
4530 - split(ENVIRON["PATH"], TMPPATHLIST, ":")
4531 - count = asort(TMPPATHLIST, PATHLIST)
4532 - for (x = 1;x <= count;x++) {
4533 -
4534 - ADDED = 0
4535 -
4536 - # Already added?
4537 - for (dnode in DIRLIST)
4538 - if (PATHLIST[x] == DIRLIST[dnode])
4539 - ADDED = 1
4540 -
4541 - if (ADDED)
4542 - continue
4543 -
4544 - # Valid? If so, add it ...
4545 - if (((PATHLIST[x] != "") && (PATHLIST[x] != "/") && (PATHLIST[x] != ".")))
4546 - DIRLIST[++DIRCOUNT] = PATHLIST[x]
4547 -
4548 - }
4549 -
4550 - GCCLIBPREFIX = "/usr/lib/gcc-lib/"
4551 -
4552 - for (x = 1;x <= DIRCOUNT;x++) {
4553 -
4554 - # Do nothing if the target dir is gcc's internal library path
4555 - if (DIRLIST[x] ~ GCCLIBPREFIX) continue
4556 -
4557 - einfo(" Scanning " ((x <= 9) ? "0"x : x)" of " DIRCOUNT " " DIRLIST[x] "...")
4558 -
4559 - pipe = ("find " DIRLIST[x] "/ -type f -perm -1 2>/dev/null")
4560 - while ( (pipe | getline scan_files) > 0) {
4561 -
4562 - #print scan_files
4563 - # Do nothing if the file is located in gcc's internal lib path ...
4564 - if (scan_files ~ GCCLIBPREFIX) continue
4565 - # Or if its hardend files ...
4566 - if (scan_files ~ "/lib/libgcc-3" ) continue
4567 - # Or not a elf image ...
4568 - if (iself(scan_files)) continue
4569 -
4570 - scan_file_pipe = ("readelf -s " scan_files " 2>&1")
4571 - while (((scan_file_pipe) | getline scan_data) > 0) {
4572 - bad = 0;
4573 - if (scan_data ~ /__guard@GCC/ || scan_data ~ /__guard@@GCC/) {
4574 - bad = 1;
4575 - print
4576 -
4577 - # 194: 00000000 32 OBJECT GLOBAL DEFAULT UND __guard@GCC_3.0 (3)
4578 - # 59: 00008ee0 32 OBJECT GLOBAL DEFAULT 22 __guard@@GCC_3.0
4579 - split(scan_data, scan_data_nodes)
4580 - ewarn("Found " scan_data_nodes[8] " in " scan_files "!")
4581 - print
4582 - }
4583 - if (scan_data ~ /readelf: Error: Unable to seek/) {
4584 - bad = 1;
4585 - print
4586 - ewarn("Error executing readelf. Bad block? Filesystem error? in " scan_files)
4587 - print
4588 - }
4589 -
4590 - if (bad) {
4591 -
4592 - if (auto_etcat) {
4593 -
4594 - # Use etcat that comes with gentoolkit if auto_etcat is true.
4595 - etcat_pipe = ("etcat belongs " scan_files)
4596 - (etcat_pipe) | getline etcat_belongs
4597 -
4598 - while(((etcat_pipe) | getline etcat_belongs) > 0)
4599 - eerror(etcat_belongs != "" ? "Please emerge '>=" etcat_belongs "'": "")
4600 - close(etcat_pipe)
4601 - } else {
4602 -
4603 - eerror("You need to remerge package that above file belongs to!")
4604 - eerror("To find out what package it is, please emerge gentoolkit,")
4605 - eerror("and then run:")
4606 - print
4607 - print " # etcat belongs " scan_files
4608 - }
4609 -
4610 - print
4611 -
4612 - close(scan_file_pipe)
4613 - close(pipe)
4614 - exit(1)
4615 - }
4616 - }
4617 - close(scan_file_pipe)
4618 - }
4619 - close(pipe)
4620 - }
4621 -
4622 - exit(0)
4623 -}
4624 -
4625 -
4626 -# vim:ts=4
4627
4628 diff --git a/sys-devel/gcc/files/c89 b/sys-devel/gcc/files/c89
4629 deleted file mode 100755
4630 index cee0325f50..0000000000
4631 --- a/sys-devel/gcc/files/c89
4632 +++ /dev/null
4633 @@ -1,20 +0,0 @@
4634 -#! /bin/sh
4635 -
4636 -# Call the appropriate C compiler with options to accept ANSI/ISO C
4637 -# The following options are the same (as of gcc-2.95):
4638 -# -ansi
4639 -# -std=c89
4640 -# -std=iso9899:1990
4641 -
4642 -for i; do
4643 - case "$i" in
4644 - -ansi|-std=c89|-std=iso9899:1990)
4645 - ;;
4646 - -std=*)
4647 - echo >&2 "`basename $0` called with non ANSI/ISO C90 option $i"
4648 - exit 1
4649 - ;;
4650 - esac
4651 -done
4652 -
4653 -exec gcc -std=c89 -pedantic -U_FORTIFY_SOURCE "$@"
4654
4655 diff --git a/sys-devel/gcc/files/c99 b/sys-devel/gcc/files/c99
4656 deleted file mode 100755
4657 index c9542095e3..0000000000
4658 --- a/sys-devel/gcc/files/c99
4659 +++ /dev/null
4660 @@ -1,21 +0,0 @@
4661 -#! /bin/sh
4662 -
4663 -# Call the appropriate C compiler with options to accept ANSI/ISO C
4664 -# The following options are the same (as of gcc-3.3):
4665 -# -std=c99
4666 -# -std=c9x
4667 -# -std=iso9899:1999
4668 -# -std=iso9899:199x
4669 -
4670 -for i; do
4671 - case "$i" in
4672 - -std=c9[9x]|-std=iso9899:199[9x])
4673 - ;;
4674 - -ansi|-std=*)
4675 - echo >&2 "`basename $0` called with non ANSI/ISO C99 option $i"
4676 - exit 1
4677 - ;;
4678 - esac
4679 -done
4680 -
4681 -exec gcc -std=c99 -pedantic -U_FORTIFY_SOURCE ${1+"$@"}
4682
4683 diff --git a/sys-devel/gcc/files/fix_libtool_files.sh b/sys-devel/gcc/files/fix_libtool_files.sh
4684 deleted file mode 100755
4685 index 702991d1fc..0000000000
4686 --- a/sys-devel/gcc/files/fix_libtool_files.sh
4687 +++ /dev/null
4688 @@ -1,68 +0,0 @@
4689 -#!@GENTOO_PORTAGE_EPREFIX@/bin/sh
4690 -# Copyright 1999-2014 Gentoo Foundation
4691 -# Distributed under the terms of the GNU General Public License v2
4692 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/fix_libtool_files.sh,v 1.17 2014/05/20 08:00:40 rhill Exp $
4693 -
4694 -usage() {
4695 -cat << "USAGE_END"
4696 -Usage: fix_libtool_files.sh <old-gcc-version> [--oldarch <old-CHOST>]
4697 -
4698 - Where <old-gcc-version> is the version number of the
4699 - previous gcc version. For example, if you updated to
4700 - gcc-3.2.1, and you had gcc-3.2 installed, run:
4701 -
4702 - # fix_libtool_files.sh 3.2
4703 -
4704 - If you updated to gcc-3.2.3, and the old CHOST was i586-pc-linux-gnu
4705 - but you now have CHOST as i686-pc-linux-gnu, run:
4706 -
4707 - # fix_libtool_files.sh 3.2 --oldarch i586-pc-linux-gnu
4708 -
4709 - Note that if only the CHOST and not the version changed, you can run
4710 - it with the current version and the '--oldarch <old-CHOST>' arguments,
4711 - and it will do the expected:
4712 -
4713 - # fix_libtool_files.sh `gcc -dumpversion` --oldarch i586-pc-linux-gnu
4714 -
4715 -USAGE_END
4716 - exit 1
4717 -}
4718 -
4719 -case $2 in
4720 ---oldarch) [ $# -ne 3 ] && usage ;;
4721 -*) [ $# -ne 1 ] && usage ;;
4722 -esac
4723 -
4724 -ARGV1=$1
4725 -ARGV2=$2
4726 -ARGV3=$3
4727 -
4728 -. "@GENTOO_PORTAGE_EPREFIX@"/etc/profile || exit 1
4729 -
4730 -# Prefix: no!
4731 -#if [ ${EUID:-0} -ne 0 ] ; then
4732 -# eerror "${0##*/}: Must be root."
4733 -# exit 1
4734 -#fi
4735 -
4736 -# make sure the files come out sane
4737 -umask 0022
4738 -
4739 -OLDCHOST=
4740 -[ "${ARGV2}" = "--oldarch" ] && OLDCHOST=${ARGV3}
4741 -
4742 -AWKDIR="@GENTOO_PORTAGE_EPREFIX@/usr/share/gcc-data"
4743 -
4744 -if [ ! -r "${AWKDIR}/fixlafiles.awk" ] ; then
4745 - echo "${0##*/}: ${AWKDIR}/fixlafiles.awk does not exist!"
4746 - exit 1
4747 -fi
4748 -
4749 -OLDVER=${ARGV1}
4750 -
4751 -export OLDVER OLDCHOST
4752 -
4753 -echo "Scanning libtool files for hardcoded gcc library paths..."
4754 -exec gawk -f "${AWKDIR}/fixlafiles.awk"
4755 -
4756 -# vim:ts=4
4757
4758 diff --git a/sys-devel/gcc/files/gcc-3.4.6-aix-largefiles.patch b/sys-devel/gcc/files/gcc-3.4.6-aix-largefiles.patch
4759 deleted file mode 100644
4760 index ef18736d7d..0000000000
4761 --- a/sys-devel/gcc/files/gcc-3.4.6-aix-largefiles.patch
4762 +++ /dev/null
4763 @@ -1,271 +0,0 @@
4764 -diff -ruN gcc-3.4.6.orig/gcc/fixinc/fixincl.x gcc-3.4.6/gcc/fixinc/fixincl.x
4765 ---- gcc-3.4.6.orig/gcc/fixinc/fixincl.x 2005-12-16 19:18:36.000000000 +0100
4766 -+++ gcc-3.4.6/gcc/fixinc/fixincl.x 2008-05-09 14:50:49.000000000 +0200
4767 -@@ -2,11 +2,11 @@
4768 - *
4769 - * DO NOT EDIT THIS FILE (fixincl.x)
4770 - *
4771 -- * It has been AutoGen-ed Friday December 16, 2005 at 01:14:56 PM EST
4772 -+ * It has been AutoGen-ed Friday May 9, 2008 at 02:47:17 PM CEST
4773 - * From the definitions inclhack.def
4774 - * and the template file fixincl
4775 - */
4776 --/* DO NOT CVS-MERGE THIS FILE, EITHER Fri Dec 16 13:14:56 EST 2005
4777 -+/* DO NOT CVS-MERGE THIS FILE, EITHER Fri May 9 14:47:17 CEST 2008
4778 - *
4779 - * You must regenerate it. Use the ./genfixes script.
4780 - *
4781 -@@ -15,7 +15,7 @@
4782 - * certain ANSI-incompatible system header files which are fixed to work
4783 - * correctly with ANSI C and placed in a directory that GNU C will search.
4784 - *
4785 -- * This file contains 189 fixup descriptions.
4786 -+ * This file contains 190 fixup descriptions.
4787 - *
4788 - * See README for more information.
4789 - *
4790 -@@ -42,6 +42,64 @@
4791 -
4792 - /* * * * * * * * * * * * * * * * * * * * * * * * * *
4793 - *
4794 -+ * Description of Aab_Aix_Stdio fix
4795 -+ */
4796 -+tSCC zAab_Aix_StdioName[] =
4797 -+ "AAB_aix_stdio";
4798 -+
4799 -+/*
4800 -+ * File name selection pattern
4801 -+ */
4802 -+tSCC zAab_Aix_StdioList[] =
4803 -+ "|stdio.h|";
4804 -+/*
4805 -+ * Machine/OS name selection pattern
4806 -+ */
4807 -+tSCC* apzAab_Aix_StdioMachs[] = {
4808 -+ "*-*-aix*",
4809 -+ (const char*)NULL };
4810 -+
4811 -+/*
4812 -+ * content selection pattern - do fix if pattern found
4813 -+ */
4814 -+tSCC zAab_Aix_StdioSelect0[] =
4815 -+ "define fopen fopen64";
4816 -+
4817 -+#define AAB_AIX_STDIO_TEST_CT 1
4818 -+static tTestDesc aAab_Aix_StdioTests[] = {
4819 -+ { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
4820 -+
4821 -+/*
4822 -+ * Fix Command Arguments for Aab_Aix_Stdio
4823 -+ */
4824 -+static const char* apzAab_Aix_StdioPatch[] = {
4825 -+ "wrap",
4826 -+ "",
4827 -+ "\n\
4828 -+#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
4829 -+#define __need__aix_stdio_h_fix\n\
4830 -+#ifdef __need__aix_stdio_h_fix\n\
4831 -+#undef fseeko\n\
4832 -+#undef ftello\n\
4833 -+#undef fgetpos\n\
4834 -+#undef fsetpos\n\
4835 -+#undef fopen\n\
4836 -+#undef freopen\n\
4837 -+/* Alias the symbols using asm */\n\
4838 -+extern \"C\" {\n\
4839 -+extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
4840 -+extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
4841 -+extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
4842 -+extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
4843 -+extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
4844 -+extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
4845 -+}\n\
4846 -+#endif\n\
4847 -+#endif\n",
4848 -+ (char*)NULL };
4849 -+
4850 -+/* * * * * * * * * * * * * * * * * * * * * * * * * *
4851 -+ *
4852 - * Description of Aab_Fd_Zero_Asm_Posix_Types_H fix
4853 - */
4854 - tSCC zAab_Fd_Zero_Asm_Posix_Types_HName[] =
4855 -@@ -7602,14 +7660,15 @@
4856 - *
4857 - * List of all fixes
4858 - */
4859 --#define REGEX_COUNT 225
4860 -+#define REGEX_COUNT 226
4861 - #define MACH_LIST_SIZE_LIMIT 261
4862 --#define FIX_COUNT 189
4863 -+#define FIX_COUNT 190
4864 -
4865 - /*
4866 - * Enumerate the fixes
4867 - */
4868 - typedef enum {
4869 -+ AAB_AIX_STDIO_FIXIDX,
4870 - AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
4871 - AAB_FD_ZERO_GNU_TYPES_H_FIXIDX,
4872 - AAB_FD_ZERO_SELECTBITS_H_FIXIDX,
4873 -@@ -7802,6 +7861,11 @@
4874 - } t_fixinc_idx;
4875 -
4876 - tFixDesc fixDescList[ FIX_COUNT ] = {
4877 -+ { zAab_Aix_StdioName, zAab_Aix_StdioList,
4878 -+ apzAab_Aix_StdioMachs,
4879 -+ AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
4880 -+ aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
4881 -+
4882 - { zAab_Fd_Zero_Asm_Posix_Types_HName, zAab_Fd_Zero_Asm_Posix_Types_HList,
4883 - apzAab_Fd_Zero_Asm_Posix_Types_HMachs,
4884 - AAB_FD_ZERO_ASM_POSIX_TYPES_H_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
4885 -diff -ruN gcc-3.4.6.orig/gcc/fixinc/inclhack.def gcc-3.4.6/gcc/fixinc/inclhack.def
4886 ---- gcc-3.4.6.orig/gcc/fixinc/inclhack.def 2005-12-16 19:18:36.000000000 +0100
4887 -+++ gcc-3.4.6/gcc/fixinc/inclhack.def 2008-05-09 14:47:15.000000000 +0200
4888 -@@ -20,6 +20,47 @@
4889 - FIXINC_DEBUG = yes;
4890 - #endif
4891 -
4892 -+/* On AIX when _LARGE_FILES is defined stdio.h defines fopen to
4893 -+ * fopen64 etc. and this causes problems when building with g++
4894 -+ * because cstdio udefs everything from stdio.h, leaving us with
4895 -+ * ::fopen has not been declared errors. This fixes stdio.h to
4896 -+ * undef those defines and use __asm__ to alias the symbols if
4897 -+ * building with g++ and -D_LARGE_FILES
4898 -+ */
4899 -+fix = {
4900 -+ hackname = AAB_aix_stdio;
4901 -+ files = stdio.h;
4902 -+ select = "define fopen fopen64";
4903 -+ mach = "*-*-aix*";
4904 -+
4905 -+ c_fix = wrap;
4906 -+
4907 -+ c_fix_arg = "";
4908 -+
4909 -+ c_fix_arg = "\n"
4910 -+ "#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n"
4911 -+ "#define __need__aix_stdio_h_fix\n"
4912 -+ "#ifdef __need__aix_stdio_h_fix\n"
4913 -+ "#undef fseeko\n"
4914 -+ "#undef ftello\n"
4915 -+ "#undef fgetpos\n"
4916 -+ "#undef fsetpos\n"
4917 -+ "#undef fopen\n"
4918 -+ "#undef freopen\n"
4919 -+ "/* Alias the symbols using asm */\n"
4920 -+ "extern \"C\" {\n"
4921 -+ "extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n"
4922 -+ "extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n"
4923 -+ "extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n"
4924 -+ "extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n"
4925 -+ "extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n"
4926 -+ "extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n"
4927 -+ "}\n"
4928 -+ "#endif\n"
4929 -+ "#endif\n";
4930 -+ test_text = "";
4931 -+};
4932 -+
4933 - /*
4934 - * This fixes __FD_ZERO bug for linux 2.x.y (x <= 2 && y <= some n)
4935 - */
4936 -diff -ruN gcc-3.4.6.orig/gcc/fixinc/tests/base/stdio.h gcc-3.4.6/gcc/fixinc/tests/base/stdio.h
4937 ---- gcc-3.4.6.orig/gcc/fixinc/tests/base/stdio.h 2004-01-21 20:50:12.000000000 +0100
4938 -+++ gcc-3.4.6/gcc/fixinc/tests/base/stdio.h 2008-05-09 14:46:26.000000000 +0200
4939 -@@ -14,6 +14,11 @@
4940 - #include <stdarg.h>
4941 -
4942 -
4943 -+#if defined( AAB_AIX_STDIO_CHECK )
4944 -+
4945 -+#endif /* AAB_AIX_STDIO_CHECK */
4946 -+
4947 -+
4948 - #if defined( ALPHA_GETOPT_CHECK )
4949 - extern int getopt(int, char *const[], const char *);
4950 - #endif /* ALPHA_GETOPT_CHECK */
4951 -diff -ruN gcc-3.4.6.orig/gcc/testsuite/g++.dg/other/pr20366.C gcc-3.4.6/gcc/testsuite/g++.dg/other/pr20366.C
4952 ---- gcc-3.4.6.orig/gcc/testsuite/g++.dg/other/pr20366.C 1970-01-01 01:00:00.000000000 +0100
4953 -+++ gcc-3.4.6/gcc/testsuite/g++.dg/other/pr20366.C 2008-05-09 14:46:26.000000000 +0200
4954 -@@ -0,0 +1,80 @@
4955 -+// Test fix for PR20366
4956 -+//
4957 -+// { dg-do compile { target *-*-aix* } }
4958 -+// { dg-options "-D_LARGE_FILES" }
4959 -+//
4960 -+// cstdio includes stdio.h and undefs most of the functions declared
4961 -+// therein, unfortunately this means that #define fopen fopen64 goes
4962 -+// away. This tests the fix, and ensures that with -D_LARGE_FILES
4963 -+// fopen et. al. are indeed aliased to the large file equivalents.
4964 -+//
4965 -+// There are many other #define foo foo64 in the AIX headers, but
4966 -+// these all work out fine as they are not undefined in libstdc++.
4967 -+// This list is probably incomplete:
4968 -+//
4969 -+// Symbol Return type Large file declaration.
4970 -+//
4971 -+// aio.h (different for different AIX versions)
4972 -+// =====
4973 -+// aio_read int aio_read64(int, struct aiocb64 *);
4974 -+// aio_write int aio_write64(int, struct aiocb64 *);
4975 -+// lio_listio int lio_listio64(int, struct liocb64 *[], int, void *);
4976 -+// aio_cancel int aio_cancel64(int, struct aiocb64 *);
4977 -+// aio_suspend int aio_suspend64(int, struct aiocb64 *[]);
4978 -+//
4979 -+// stdio.h
4980 -+// =======
4981 -+// fgetpos int fgetpos64(FILE *, fpos64_t *);
4982 -+// fopen FILE *fopen64(const char *, const char *);
4983 -+// freopen FILE *freopen64(const char *, const char *, FILE *);
4984 -+// fseeko int fseeko64(FILE *, off64_t, int);
4985 -+// fsetpos int fsetpos64(FILE *, const fpos64_t *);
4986 -+// ftello off64_t ftello64(FILE *);
4987 -+//
4988 -+// unistd.h
4989 -+// ========
4990 -+// fclear off64_t fclear64(int, off64_t);
4991 -+// fsync_range int fsync_range64(int, int, off64_t, off64_t);
4992 -+// ftruncate int ftruncate64(int, off64_t);
4993 -+// truncate int truncate64(const char *, off64_t);
4994 -+// lseek off64_t lseek64(int, off64_t, int);
4995 -+// pread ssize_t pread64(int, void *, size_t, off64_t);
4996 -+// pwrite ssize_t pwrite64(int, const void *, size_t, off64_t);
4997 -+//
4998 -+// fcntl.h
4999 -+// =======
5000 -+// open int open64(const char *, int, ...);
5001 -+// creat int creat64(const char *, mode_t);
5002 -+//
5003 -+// sys/stat.h
5004 -+// ==========
5005 -+// stat int stat64(const char *, struct stat64 *);
5006 -+// fstat int fstat64(int, struct stat64 *);
5007 -+// lstat int lstat64(const char *, struct stat64 *);
5008 -+//
5009 -+// stdlib.h
5010 -+// ========
5011 -+// mkstemp int mkstemp64(char *);
5012 -+//
5013 -+// ftw.h
5014 -+// =====
5015 -+// ftw int ftw64(const char *, int (*)(const char *,const struct stat64 *, int), int);
5016 -+// nftw int nftw64(const char *, int (*)(const char *, const struct stat64 *, int, struct FTW*), int, int);
5017 -+//
5018 -+// It seems unlikely that any of these will be used (and #undef'ed) by
5019 -+// libstdc++ in the future, if they are then this test and its
5020 -+// associated patch to fixincludes will have to be revisited.
5021 -+
5022 -+#include <cstdio>
5023 -+
5024 -+extern "C" {
5025 -+int fgetpos(FILE *, fpos64_t *);
5026 -+FILE *fopen(const char *, const char *);
5027 -+FILE *freopen(const char *, const char *, FILE *);
5028 -+int fseeko(FILE *, off64_t, int);
5029 -+int fsetpos(FILE *, const fpos64_t *);
5030 -+off64_t ftello(FILE *);
5031 -+}
5032 -+int main() {
5033 -+ return 0;
5034 -+}
5035
5036 diff --git a/sys-devel/gcc/files/gcc-4.2-ia64-hpux-always-pthread.patch b/sys-devel/gcc/files/gcc-4.2-ia64-hpux-always-pthread.patch
5037 deleted file mode 100644
5038 index 1ddba03a07..0000000000
5039 --- a/sys-devel/gcc/files/gcc-4.2-ia64-hpux-always-pthread.patch
5040 +++ /dev/null
5041 @@ -1,22 +0,0 @@
5042 -http://archives.gentoo.org/gentoo-portage-dev/msg_a98f2d22e6ec550bd55246a95768628d.xml
5043 -
5044 ---- gcc/config/ia64/hpux.h.orig 2009-07-30 16:43:06 +0200
5045 -+++ gcc/config/ia64/hpux.h 2009-07-30 16:43:36 +0200
5046 -@@ -60,7 +60,7 @@
5047 -
5048 - #undef CPP_SPEC
5049 - #define CPP_SPEC \
5050 -- "%{mt|pthread:-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L}"
5051 -+ "%{mt|pthread:}-D_REENTRANT -D_THREAD_SAFE -D_POSIX_C_SOURCE=199506L"
5052 - /* aCC defines also -DRWSTD_MULTI_THREAD, -DRW_MULTI_THREAD. These
5053 - affect only aCC's C++ library (Rogue Wave-derived) which we do not
5054 - use, and they violate the user's name space. */
5055 -@@ -86,7 +86,7 @@
5056 - #undef LIB_SPEC
5057 - #define LIB_SPEC \
5058 - "%{!shared: \
5059 -- %{mt|pthread:-lpthread} \
5060 -+ %{mt|pthread:}-lpthread \
5061 - %{p:%{!mlp64:-L/usr/lib/hpux32/libp} \
5062 - %{mlp64:-L/usr/lib/hpux64/libp} -lprof} \
5063 - %{pg:%{!mlp64:-L/usr/lib/hpux32/libp} \
5064
5065 diff --git a/sys-devel/gcc/files/gcc-4.2-pa-hpux-libgcc_s-soname.patch b/sys-devel/gcc/files/gcc-4.2-pa-hpux-libgcc_s-soname.patch
5066 deleted file mode 100644
5067 index b8e059367d..0000000000
5068 --- a/sys-devel/gcc/files/gcc-4.2-pa-hpux-libgcc_s-soname.patch
5069 +++ /dev/null
5070 @@ -1,12 +0,0 @@
5071 -http://gcc.gnu.org/PR40913
5072 -
5073 ---- gcc/config/pa/t-hpux-shlib.orig 2009-07-30 11:06:20 +0200
5074 -+++ gcc/config/pa/t-hpux-shlib 2009-07-30 11:09:35 +0200
5075 -@@ -8,6 +8,7 @@
5076 - SHLIB_SLIBDIR_QUAL = @shlib_slibdir_qual@
5077 -
5078 - SHLIB_LINK = $(GCC_FOR_TARGET) $(LIBGCC2_CFLAGS) -shared -nodefaultlibs \
5079 -+ -Wl,+h -Wl,$(SHLIB_SONAME) \
5080 - -o $(SHLIB_DIR)/$(SHLIB_NAME).tmp @multilib_flags@ $(SHLIB_OBJS) && \
5081 - rm -f $(SHLIB_DIR)/$(SHLIB_SONAME) && \
5082 - if [ -f $(SHLIB_DIR)/$(SHLIB_NAME) ]; then \
5083
5084 diff --git a/sys-devel/gcc/files/gcc-4.2.3-aix-largefiles.patch b/sys-devel/gcc/files/gcc-4.2.3-aix-largefiles.patch
5085 deleted file mode 100644
5086 index 87161579be..0000000000
5087 --- a/sys-devel/gcc/files/gcc-4.2.3-aix-largefiles.patch
5088 +++ /dev/null
5089 @@ -1,271 +0,0 @@
5090 -diff -ruN gcc-4.2.3.orig/fixincludes/fixincl.x gcc-4.2.3/fixincludes/fixincl.x
5091 ---- gcc-4.2.3.orig/fixincludes/fixincl.x 2007-07-21 23:57:21.000000000 +0200
5092 -+++ gcc-4.2.3/fixincludes/fixincl.x 2008-04-04 16:39:59.000000000 +0200
5093 -@@ -2,11 +2,11 @@
5094 - *
5095 - * DO NOT EDIT THIS FILE (fixincl.x)
5096 - *
5097 -- * It has been AutoGen-ed Saturday July 21, 2007 at 05:44:12 PM EDT
5098 -+ * It has been AutoGen-ed Friday April 4, 2008 at 04:35:28 PM CEST
5099 - * From the definitions inclhack.def
5100 - * and the template file fixincl
5101 - */
5102 --/* DO NOT CVS-MERGE THIS FILE, EITHER Sat Jul 21 17:44:12 EDT 2007
5103 -+/* DO NOT CVS-MERGE THIS FILE, EITHER Fri Apr 4 16:35:28 CEST 2008
5104 - *
5105 - * You must regenerate it. Use the ./genfixes script.
5106 - *
5107 -@@ -15,7 +15,7 @@
5108 - * certain ANSI-incompatible system header files which are fixed to work
5109 - * correctly with ANSI C and placed in a directory that GNU C will search.
5110 - *
5111 -- * This file contains 204 fixup descriptions.
5112 -+ * This file contains 205 fixup descriptions.
5113 - *
5114 - * See README for more information.
5115 - *
5116 -@@ -42,6 +42,64 @@
5117 -
5118 - /* * * * * * * * * * * * * * * * * * * * * * * * * *
5119 - *
5120 -+ * Description of Aab_Aix_Stdio fix
5121 -+ */
5122 -+tSCC zAab_Aix_StdioName[] =
5123 -+ "AAB_aix_stdio";
5124 -+
5125 -+/*
5126 -+ * File name selection pattern
5127 -+ */
5128 -+tSCC zAab_Aix_StdioList[] =
5129 -+ "|stdio.h|";
5130 -+/*
5131 -+ * Machine/OS name selection pattern
5132 -+ */
5133 -+tSCC* apzAab_Aix_StdioMachs[] = {
5134 -+ "*-*-aix*",
5135 -+ (const char*)NULL };
5136 -+
5137 -+/*
5138 -+ * content selection pattern - do fix if pattern found
5139 -+ */
5140 -+tSCC zAab_Aix_StdioSelect0[] =
5141 -+ "define fopen fopen64";
5142 -+
5143 -+#define AAB_AIX_STDIO_TEST_CT 1
5144 -+static tTestDesc aAab_Aix_StdioTests[] = {
5145 -+ { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
5146 -+
5147 -+/*
5148 -+ * Fix Command Arguments for Aab_Aix_Stdio
5149 -+ */
5150 -+static const char* apzAab_Aix_StdioPatch[] = {
5151 -+ "wrap",
5152 -+ "",
5153 -+ "\n\
5154 -+#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
5155 -+#define __need__aix_stdio_h_fix\n\
5156 -+#ifdef __need__aix_stdio_h_fix\n\
5157 -+#undef fseeko\n\
5158 -+#undef ftello\n\
5159 -+#undef fgetpos\n\
5160 -+#undef fsetpos\n\
5161 -+#undef fopen\n\
5162 -+#undef freopen\n\
5163 -+/* Alias the symbols using asm */\n\
5164 -+extern \"C\" {\n\
5165 -+extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
5166 -+extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
5167 -+extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
5168 -+extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
5169 -+extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
5170 -+extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
5171 -+}\n\
5172 -+#endif\n\
5173 -+#endif\n",
5174 -+ (char*)NULL };
5175 -+
5176 -+/* * * * * * * * * * * * * * * * * * * * * * * * * *
5177 -+ *
5178 - * Description of Aab_Darwin7_9_Long_Double_Funcs fix
5179 - */
5180 - tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
5181 -@@ -8306,14 +8364,15 @@
5182 - *
5183 - * List of all fixes
5184 - */
5185 --#define REGEX_COUNT 246
5186 -+#define REGEX_COUNT 247
5187 - #define MACH_LIST_SIZE_LIMIT 261
5188 --#define FIX_COUNT 204
5189 -+#define FIX_COUNT 205
5190 -
5191 - /*
5192 - * Enumerate the fixes
5193 - */
5194 - typedef enum {
5195 -+ AAB_AIX_STDIO_FIXIDX,
5196 - AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
5197 - AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
5198 - AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5199 -@@ -8521,6 +8580,11 @@
5200 - } t_fixinc_idx;
5201 -
5202 - tFixDesc fixDescList[ FIX_COUNT ] = {
5203 -+ { zAab_Aix_StdioName, zAab_Aix_StdioList,
5204 -+ apzAab_Aix_StdioMachs,
5205 -+ AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5206 -+ aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
5207 -+
5208 - { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
5209 - apzAab_Darwin7_9_Long_Double_FuncsMachs,
5210 - AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5211 -diff -ruN gcc-4.2.3.orig/fixincludes/inclhack.def gcc-4.2.3/fixincludes/inclhack.def
5212 ---- gcc-4.2.3.orig/fixincludes/inclhack.def 2007-07-21 23:57:21.000000000 +0200
5213 -+++ gcc-4.2.3/fixincludes/inclhack.def 2008-04-04 16:34:03.000000000 +0200
5214 -@@ -20,6 +20,47 @@
5215 - FIXINC_DEBUG = yes;
5216 - #endif
5217 -
5218 -+/* On AIX when _LARGE_FILES is defined stdio.h defines fopen to
5219 -+ * fopen64 etc. and this causes problems when building with g++
5220 -+ * because cstdio udefs everything from stdio.h, leaving us with
5221 -+ * ::fopen has not been declared errors. This fixes stdio.h to
5222 -+ * undef those defines and use __asm__ to alias the symbols if
5223 -+ * building with g++ and -D_LARGE_FILES
5224 -+ */
5225 -+fix = {
5226 -+ hackname = AAB_aix_stdio;
5227 -+ files = stdio.h;
5228 -+ select = "define fopen fopen64";
5229 -+ mach = "*-*-aix*";
5230 -+
5231 -+ c_fix = wrap;
5232 -+
5233 -+ c_fix_arg = "";
5234 -+
5235 -+ c_fix_arg = "\n"
5236 -+ "#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n"
5237 -+ "#define __need__aix_stdio_h_fix\n"
5238 -+ "#ifdef __need__aix_stdio_h_fix\n"
5239 -+ "#undef fseeko\n"
5240 -+ "#undef ftello\n"
5241 -+ "#undef fgetpos\n"
5242 -+ "#undef fsetpos\n"
5243 -+ "#undef fopen\n"
5244 -+ "#undef freopen\n"
5245 -+ "/* Alias the symbols using asm */\n"
5246 -+ "extern \"C\" {\n"
5247 -+ "extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n"
5248 -+ "extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n"
5249 -+ "extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n"
5250 -+ "extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n"
5251 -+ "extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n"
5252 -+ "extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n"
5253 -+ "}\n"
5254 -+ "#endif\n"
5255 -+ "#endif\n";
5256 -+ test_text = "";
5257 -+};
5258 -+
5259 -
5260 - /*
5261 - * On Mac OS 10.3.9, the 'long double' functions are available in
5262 -diff -ruN gcc-4.2.3.orig/fixincludes/tests/base/stdio.h gcc-4.2.3/fixincludes/tests/base/stdio.h
5263 ---- gcc-4.2.3.orig/fixincludes/tests/base/stdio.h 2004-08-31 11:27:00.000000000 +0200
5264 -+++ gcc-4.2.3/fixincludes/tests/base/stdio.h 2008-04-04 16:34:03.000000000 +0200
5265 -@@ -14,6 +14,11 @@
5266 - #include <stdarg.h>
5267 -
5268 -
5269 -+#if defined( AAB_AIX_STDIO_CHECK )
5270 -+
5271 -+#endif /* AAB_AIX_STDIO_CHECK */
5272 -+
5273 -+
5274 - #if defined( ALPHA_GETOPT_CHECK )
5275 - extern int getopt(int, char *const[], const char *);
5276 - #endif /* ALPHA_GETOPT_CHECK */
5277 -diff -ruN gcc-4.2.3.orig/gcc/testsuite/g++.dg/other/pr20366.C gcc-4.2.3/gcc/testsuite/g++.dg/other/pr20366.C
5278 ---- gcc-4.2.3.orig/gcc/testsuite/g++.dg/other/pr20366.C 1970-01-01 01:00:00.000000000 +0100
5279 -+++ gcc-4.2.3/gcc/testsuite/g++.dg/other/pr20366.C 2008-04-04 16:34:03.000000000 +0200
5280 -@@ -0,0 +1,80 @@
5281 -+// Test fix for PR20366
5282 -+//
5283 -+// { dg-do compile { target *-*-aix* } }
5284 -+// { dg-options "-D_LARGE_FILES" }
5285 -+//
5286 -+// cstdio includes stdio.h and undefs most of the functions declared
5287 -+// therein, unfortunately this means that #define fopen fopen64 goes
5288 -+// away. This tests the fix, and ensures that with -D_LARGE_FILES
5289 -+// fopen et. al. are indeed aliased to the large file equivalents.
5290 -+//
5291 -+// There are many other #define foo foo64 in the AIX headers, but
5292 -+// these all work out fine as they are not undefined in libstdc++.
5293 -+// This list is probably incomplete:
5294 -+//
5295 -+// Symbol Return type Large file declaration.
5296 -+//
5297 -+// aio.h (different for different AIX versions)
5298 -+// =====
5299 -+// aio_read int aio_read64(int, struct aiocb64 *);
5300 -+// aio_write int aio_write64(int, struct aiocb64 *);
5301 -+// lio_listio int lio_listio64(int, struct liocb64 *[], int, void *);
5302 -+// aio_cancel int aio_cancel64(int, struct aiocb64 *);
5303 -+// aio_suspend int aio_suspend64(int, struct aiocb64 *[]);
5304 -+//
5305 -+// stdio.h
5306 -+// =======
5307 -+// fgetpos int fgetpos64(FILE *, fpos64_t *);
5308 -+// fopen FILE *fopen64(const char *, const char *);
5309 -+// freopen FILE *freopen64(const char *, const char *, FILE *);
5310 -+// fseeko int fseeko64(FILE *, off64_t, int);
5311 -+// fsetpos int fsetpos64(FILE *, const fpos64_t *);
5312 -+// ftello off64_t ftello64(FILE *);
5313 -+//
5314 -+// unistd.h
5315 -+// ========
5316 -+// fclear off64_t fclear64(int, off64_t);
5317 -+// fsync_range int fsync_range64(int, int, off64_t, off64_t);
5318 -+// ftruncate int ftruncate64(int, off64_t);
5319 -+// truncate int truncate64(const char *, off64_t);
5320 -+// lseek off64_t lseek64(int, off64_t, int);
5321 -+// pread ssize_t pread64(int, void *, size_t, off64_t);
5322 -+// pwrite ssize_t pwrite64(int, const void *, size_t, off64_t);
5323 -+//
5324 -+// fcntl.h
5325 -+// =======
5326 -+// open int open64(const char *, int, ...);
5327 -+// creat int creat64(const char *, mode_t);
5328 -+//
5329 -+// sys/stat.h
5330 -+// ==========
5331 -+// stat int stat64(const char *, struct stat64 *);
5332 -+// fstat int fstat64(int, struct stat64 *);
5333 -+// lstat int lstat64(const char *, struct stat64 *);
5334 -+//
5335 -+// stdlib.h
5336 -+// ========
5337 -+// mkstemp int mkstemp64(char *);
5338 -+//
5339 -+// ftw.h
5340 -+// =====
5341 -+// ftw int ftw64(const char *, int (*)(const char *,const struct stat64 *, int), int);
5342 -+// nftw int nftw64(const char *, int (*)(const char *, const struct stat64 *, int, struct FTW*), int, int);
5343 -+//
5344 -+// It seems unlikely that any of these will be used (and #undef'ed) by
5345 -+// libstdc++ in the future, if they are then this test and its
5346 -+// associated patch to fixincludes will have to be revisited.
5347 -+
5348 -+#include <cstdio>
5349 -+
5350 -+extern "C" {
5351 -+int fgetpos(FILE *, fpos64_t *);
5352 -+FILE *fopen(const char *, const char *);
5353 -+FILE *freopen(const char *, const char *, FILE *);
5354 -+int fseeko(FILE *, off64_t, int);
5355 -+int fsetpos(FILE *, const fpos64_t *);
5356 -+off64_t ftello(FILE *);
5357 -+}
5358 -+int main() {
5359 -+ return 0;
5360 -+}
5361
5362 diff --git a/sys-devel/gcc/files/gcc-4.2.4-aix-largefiles.patch b/sys-devel/gcc/files/gcc-4.2.4-aix-largefiles.patch
5363 deleted file mode 100644
5364 index d6b92fbfcc..0000000000
5365 --- a/sys-devel/gcc/files/gcc-4.2.4-aix-largefiles.patch
5366 +++ /dev/null
5367 @@ -1,271 +0,0 @@
5368 -diff -ruN gcc-4.2.4.orig/fixincludes/fixincl.x gcc-4.2.4/fixincludes/fixincl.x
5369 ---- gcc-4.2.4.orig/fixincludes/fixincl.x 2008-03-13 22:28:10.000000000 +0100
5370 -+++ gcc-4.2.4/fixincludes/fixincl.x 2008-07-03 16:44:27.000000000 +0200
5371 -@@ -2,11 +2,11 @@
5372 - *
5373 - * DO NOT EDIT THIS FILE (fixincl.x)
5374 - *
5375 -- * It has been AutoGen-ed Thursday February 21, 2008 at 09:53:39 PM CET
5376 -+ * It has been AutoGen-ed Thursday July 3, 2008 at 04:44:27 PM CEST
5377 - * From the definitions inclhack.def
5378 - * and the template file fixincl
5379 - */
5380 --/* DO NOT CVS-MERGE THIS FILE, EITHER Thu Feb 21 21:53:39 CET 2008
5381 -+/* DO NOT CVS-MERGE THIS FILE, EITHER Thu Jul 3 16:44:27 CEST 2008
5382 - *
5383 - * You must regenerate it. Use the ./genfixes script.
5384 - *
5385 -@@ -15,7 +15,7 @@
5386 - * certain ANSI-incompatible system header files which are fixed to work
5387 - * correctly with ANSI C and placed in a directory that GNU C will search.
5388 - *
5389 -- * This file contains 205 fixup descriptions.
5390 -+ * This file contains 206 fixup descriptions.
5391 - *
5392 - * See README for more information.
5393 - *
5394 -@@ -38,6 +38,64 @@
5395 -
5396 - /* * * * * * * * * * * * * * * * * * * * * * * * * *
5397 - *
5398 -+ * Description of Aab_Aix_Stdio fix
5399 -+ */
5400 -+tSCC zAab_Aix_StdioName[] =
5401 -+ "AAB_aix_stdio";
5402 -+
5403 -+/*
5404 -+ * File name selection pattern
5405 -+ */
5406 -+tSCC zAab_Aix_StdioList[] =
5407 -+ "|stdio.h|";
5408 -+/*
5409 -+ * Machine/OS name selection pattern
5410 -+ */
5411 -+tSCC* apzAab_Aix_StdioMachs[] = {
5412 -+ "*-*-aix*",
5413 -+ (const char*)NULL };
5414 -+
5415 -+/*
5416 -+ * content selection pattern - do fix if pattern found
5417 -+ */
5418 -+tSCC zAab_Aix_StdioSelect0[] =
5419 -+ "define fopen fopen64";
5420 -+
5421 -+#define AAB_AIX_STDIO_TEST_CT 1
5422 -+static tTestDesc aAab_Aix_StdioTests[] = {
5423 -+ { TT_EGREP, zAab_Aix_StdioSelect0, (regex_t*)NULL }, };
5424 -+
5425 -+/*
5426 -+ * Fix Command Arguments for Aab_Aix_Stdio
5427 -+ */
5428 -+static const char* apzAab_Aix_StdioPatch[] = {
5429 -+ "wrap",
5430 -+ "",
5431 -+ "\n\
5432 -+#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n\
5433 -+#define __need__aix_stdio_h_fix\n\
5434 -+#ifdef __need__aix_stdio_h_fix\n\
5435 -+#undef fseeko\n\
5436 -+#undef ftello\n\
5437 -+#undef fgetpos\n\
5438 -+#undef fsetpos\n\
5439 -+#undef fopen\n\
5440 -+#undef freopen\n\
5441 -+/* Alias the symbols using asm */\n\
5442 -+extern \"C\" {\n\
5443 -+extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n\
5444 -+extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n\
5445 -+extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n\
5446 -+extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n\
5447 -+extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n\
5448 -+extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n\
5449 -+}\n\
5450 -+#endif\n\
5451 -+#endif\n",
5452 -+ (char*)NULL };
5453 -+
5454 -+/* * * * * * * * * * * * * * * * * * * * * * * * * *
5455 -+ *
5456 - * Description of Aab_Darwin7_9_Long_Double_Funcs fix
5457 - */
5458 - tSCC zAab_Darwin7_9_Long_Double_FuncsName[] =
5459 -@@ -8348,14 +8406,15 @@
5460 - *
5461 - * List of all fixes
5462 - */
5463 --#define REGEX_COUNT 247
5464 -+#define REGEX_COUNT 248
5465 - #define MACH_LIST_SIZE_LIMIT 261
5466 --#define FIX_COUNT 205
5467 -+#define FIX_COUNT 206
5468 -
5469 - /*
5470 - * Enumerate the fixes
5471 - */
5472 - typedef enum {
5473 -+ AAB_AIX_STDIO_FIXIDX,
5474 - AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_FIXIDX,
5475 - AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_2_FIXIDX,
5476 - AAB_FD_ZERO_ASM_POSIX_TYPES_H_FIXIDX,
5477 -@@ -8564,6 +8623,11 @@
5478 - } t_fixinc_idx;
5479 -
5480 - tFixDesc fixDescList[ FIX_COUNT ] = {
5481 -+ { zAab_Aix_StdioName, zAab_Aix_StdioList,
5482 -+ apzAab_Aix_StdioMachs,
5483 -+ AAB_AIX_STDIO_TEST_CT, FD_MACH_ONLY | FD_SUBROUTINE,
5484 -+ aAab_Aix_StdioTests, apzAab_Aix_StdioPatch, 0 },
5485 -+
5486 - { zAab_Darwin7_9_Long_Double_FuncsName, zAab_Darwin7_9_Long_Double_FuncsList,
5487 - apzAab_Darwin7_9_Long_Double_FuncsMachs,
5488 - AAB_DARWIN7_9_LONG_DOUBLE_FUNCS_TEST_CT, FD_MACH_ONLY | FD_REPLACEMENT,
5489 -diff -ruN gcc-4.2.4.orig/fixincludes/inclhack.def gcc-4.2.4/fixincludes/inclhack.def
5490 ---- gcc-4.2.4.orig/fixincludes/inclhack.def 2008-03-13 22:28:10.000000000 +0100
5491 -+++ gcc-4.2.4/fixincludes/inclhack.def 2008-07-03 16:43:52.000000000 +0200
5492 -@@ -20,6 +20,47 @@
5493 - FIXINC_DEBUG = yes;
5494 - #endif
5495 -
5496 -+/* On AIX when _LARGE_FILES is defined stdio.h defines fopen to
5497 -+ * fopen64 etc. and this causes problems when building with g++
5498 -+ * because cstdio udefs everything from stdio.h, leaving us with
5499 -+ * ::fopen has not been declared errors. This fixes stdio.h to
5500 -+ * undef those defines and use __asm__ to alias the symbols if
5501 -+ * building with g++ and -D_LARGE_FILES
5502 -+ */
5503 -+fix = {
5504 -+ hackname = AAB_aix_stdio;
5505 -+ files = stdio.h;
5506 -+ select = "define fopen fopen64";
5507 -+ mach = "*-*-aix*";
5508 -+
5509 -+ c_fix = wrap;
5510 -+
5511 -+ c_fix_arg = "";
5512 -+
5513 -+ c_fix_arg = "\n"
5514 -+ "#if defined __GNUG__ && defined _LARGE_FILES && defined __cplusplus\n"
5515 -+ "#define __need__aix_stdio_h_fix\n"
5516 -+ "#ifdef __need__aix_stdio_h_fix\n"
5517 -+ "#undef fseeko\n"
5518 -+ "#undef ftello\n"
5519 -+ "#undef fgetpos\n"
5520 -+ "#undef fsetpos\n"
5521 -+ "#undef fopen\n"
5522 -+ "#undef freopen\n"
5523 -+ "/* Alias the symbols using asm */\n"
5524 -+ "extern \"C\" {\n"
5525 -+ "extern int fgetpos(FILE *, fpos64_t *) __asm__(\"fgetpos64\");\n"
5526 -+ "extern FILE *fopen(const char *, const char *) __asm__(\"fopen64\");\n"
5527 -+ "extern FILE *freopen(const char *, const char *, FILE *) __asm__(\"freopen64\");\n"
5528 -+ "extern int fseeko(FILE *, off64_t, int) __asm__(\"fseeko64\");\n"
5529 -+ "extern int fsetpos(FILE *, const fpos64_t *) __asm__(\"fsetpos64\");\n"
5530 -+ "extern off64_t ftello(FILE *) __asm__(\"ftello64\");\n"
5531 -+ "}\n"
5532 -+ "#endif\n"
5533 -+ "#endif\n";
5534 -+ test_text = "";
5535 -+};
5536 -+
5537 -
5538 - /*
5539 - * On Mac OS 10.3.9, the 'long double' functions are available in
5540 -diff -ruN gcc-4.2.4.orig/fixincludes/tests/base/stdio.h gcc-4.2.4/fixincludes/tests/base/stdio.h
5541 ---- gcc-4.2.4.orig/fixincludes/tests/base/stdio.h 2004-08-31 11:27:00.000000000 +0200
5542 -+++ gcc-4.2.4/fixincludes/tests/base/stdio.h 2008-07-03 16:43:52.000000000 +0200
5543 -@@ -14,6 +14,11 @@
5544 - #include <stdarg.h>
5545 -
5546 -
5547 -+#if defined( AAB_AIX_STDIO_CHECK )
5548 -+
5549 -+#endif /* AAB_AIX_STDIO_CHECK */
5550 -+
5551 -+
5552 - #if defined( ALPHA_GETOPT_CHECK )
5553 - extern int getopt(int, char *const[], const char *);
5554 - #endif /* ALPHA_GETOPT_CHECK */
5555 -diff -ruN gcc-4.2.4.orig/gcc/testsuite/g++.dg/other/pr20366.C gcc-4.2.4/gcc/testsuite/g++.dg/other/pr20366.C
5556 ---- gcc-4.2.4.orig/gcc/testsuite/g++.dg/other/pr20366.C 1970-01-01 01:00:00.000000000 +0100
5557 -+++ gcc-4.2.4/gcc/testsuite/g++.dg/other/pr20366.C 2008-07-03 16:43:52.000000000 +0200
5558 -@@ -0,0 +1,80 @@
5559 -+// Test fix for PR20366
5560 -+//
5561 -+// { dg-do compile { target *-*-aix* } }
5562 -+// { dg-options "-D_LARGE_FILES" }
5563 -+//
5564 -+// cstdio includes stdio.h and undefs most of the functions declared
5565 -+// therein, unfortunately this means that #define fopen fopen64 goes
5566 -+// away. This tests the fix, and ensures that with -D_LARGE_FILES
5567 -+// fopen et. al. are indeed aliased to the large file equivalents.
5568 -+//
5569 -+// There are many other #define foo foo64 in the AIX headers, but
5570 -+// these all work out fine as they are not undefined in libstdc++.
5571 -+// This list is probably incomplete:
5572 -+//
5573 -+// Symbol Return type Large file declaration.
5574 -+//
5575 -+// aio.h (different for different AIX versions)
5576 -+// =====
5577 -+// aio_read int aio_read64(int, struct aiocb64 *);
5578 -+// aio_write int aio_write64(int, struct aiocb64 *);
5579 -+// lio_listio int lio_listio64(int, struct liocb64 *[], int, void *);
5580 -+// aio_cancel int aio_cancel64(int, struct aiocb64 *);
5581 -+// aio_suspend int aio_suspend64(int, struct aiocb64 *[]);
5582 -+//
5583 -+// stdio.h
5584 -+// =======
5585 -+// fgetpos int fgetpos64(FILE *, fpos64_t *);
5586 -+// fopen FILE *fopen64(const char *, const char *);
5587 -+// freopen FILE *freopen64(const char *, const char *, FILE *);
5588 -+// fseeko int fseeko64(FILE *, off64_t, int);
5589 -+// fsetpos int fsetpos64(FILE *, const fpos64_t *);
5590 -+// ftello off64_t ftello64(FILE *);
5591 -+//
5592 -+// unistd.h
5593 -+// ========
5594 -+// fclear off64_t fclear64(int, off64_t);
5595 -+// fsync_range int fsync_range64(int, int, off64_t, off64_t);
5596 -+// ftruncate int ftruncate64(int, off64_t);
5597 -+// truncate int truncate64(const char *, off64_t);
5598 -+// lseek off64_t lseek64(int, off64_t, int);
5599 -+// pread ssize_t pread64(int, void *, size_t, off64_t);
5600 -+// pwrite ssize_t pwrite64(int, const void *, size_t, off64_t);
5601 -+//
5602 -+// fcntl.h
5603 -+// =======
5604 -+// open int open64(const char *, int, ...);
5605 -+// creat int creat64(const char *, mode_t);
5606 -+//
5607 -+// sys/stat.h
5608 -+// ==========
5609 -+// stat int stat64(const char *, struct stat64 *);
5610 -+// fstat int fstat64(int, struct stat64 *);
5611 -+// lstat int lstat64(const char *, struct stat64 *);
5612 -+//
5613 -+// stdlib.h
5614 -+// ========
5615 -+// mkstemp int mkstemp64(char *);
5616 -+//
5617 -+// ftw.h
5618 -+// =====
5619 -+// ftw int ftw64(const char *, int (*)(const char *,const struct stat64 *, int), int);
5620 -+// nftw int nftw64(const char *, int (*)(const char *, const struct stat64 *, int, struct FTW*), int, int);
5621 -+//
5622 -+// It seems unlikely that any of these will be used (and #undef'ed) by
5623 -+// libstdc++ in the future, if they are then this test and its
5624 -+// associated patch to fixincludes will have to be revisited.
5625 -+
5626 -+#include <cstdio>
5627 -+
5628 -+extern "C" {
5629 -+int fgetpos(FILE *, fpos64_t *);
5630 -+FILE *fopen(const char *, const char *);
5631 -+FILE *freopen(const char *, const char *, FILE *);
5632 -+int fseeko(FILE *, off64_t, int);
5633 -+int fsetpos(FILE *, const fpos64_t *);
5634 -+off64_t ftello(FILE *);
5635 -+}
5636 -+int main() {
5637 -+ return 0;
5638 -+}
5639
5640 diff --git a/sys-devel/gcc/files/gcc-4.2.4-interix-all-source.patch b/sys-devel/gcc/files/gcc-4.2.4-interix-all-source.patch
5641 deleted file mode 100644
5642 index 346a5d670e..0000000000
5643 --- a/sys-devel/gcc/files/gcc-4.2.4-interix-all-source.patch
5644 +++ /dev/null
5645 @@ -1,11 +0,0 @@
5646 -diff -ru gcc-4.2.4.orig/gcc/config/i386/i386-interix.h gcc-4.2.4/gcc/config/i386/i386-interix.h
5647 ---- gcc-4.2.4.orig/gcc/config/i386/i386-interix.h 2008-07-16 09:44:45 +0200
5648 -+++ gcc-4.2.4/gcc/config/i386/i386-interix.h 2008-07-16 09:55:50 +0200
5649 -@@ -61,6 +61,7 @@
5650 - { \
5651 - builtin_define ("__INTERIX"); \
5652 - builtin_define ("__OPENNT"); \
5653 -+ builtin_define ("_ALL_SOURCE"); \
5654 - builtin_define ("_M_IX86=600"); \
5655 - builtin_define ("_X86_=1"); \
5656 - builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
5657
5658 diff --git a/sys-devel/gcc/files/gcc-4.2.4-interix-long-double.patch b/sys-devel/gcc/files/gcc-4.2.4-interix-long-double.patch
5659 deleted file mode 100644
5660 index d92518a275..0000000000
5661 --- a/sys-devel/gcc/files/gcc-4.2.4-interix-long-double.patch
5662 +++ /dev/null
5663 @@ -1,15 +0,0 @@
5664 -diff -ru gcc-4.2.4.orig/gcc/config/interix.h gcc-4.2.4/gcc/config/interix.h
5665 ---- gcc-4.2.4.orig/gcc/config/interix.h 2011-09-09 08:51:18 +0200
5666 -+++ gcc-4.2.4/gcc/config/interix.h 2011-09-09 08:58:21 +0200
5667 -@@ -92,6 +92,11 @@
5668 - #define WCHAR_TYPE "short unsigned int"
5669 - #define WCHAR_TYPE_SIZE 16
5670 -
5671 -+/* gcc defaults to 96 bits on i386, which is bad on interix, as VC++
5672 -+ * seems to default to 64 bit. since the interix libc is built with VC++,
5673 -+ * we need to do the same thing here. */
5674 -+#define LONG_DOUBLE_TYPE_SIZE 64
5675 -+
5676 - /* Our strategy for finding global constructors is a bit different, although
5677 - not a lot. */
5678 - #define DO_GLOBAL_CTORS_BODY \
5679
5680 diff --git a/sys-devel/gcc/files/gcc-4.2.4-interix-x64-support.patch b/sys-devel/gcc/files/gcc-4.2.4-interix-x64-support.patch
5681 deleted file mode 100644
5682 index 6612e71b72..0000000000
5683 --- a/sys-devel/gcc/files/gcc-4.2.4-interix-x64-support.patch
5684 +++ /dev/null
5685 @@ -1,16 +0,0 @@
5686 -diff -ru gcc-4.2.4.orig/gcc/config/interix.h gcc-4.2.4/gcc/config/interix.h
5687 ---- gcc-4.2.4.orig/gcc/config/interix.h 2009-09-23 10:19:11 +0200
5688 -+++ gcc-4.2.4/gcc/config/interix.h 2009-09-23 10:09:59 +0200
5689 -@@ -57,6 +57,12 @@
5690 - #undef STARTFILE_SPEC
5691 - #define STARTFILE_SPEC \
5692 - "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}} %{shared:crti%O%s}"
5693 -+
5694 -+/* include /usr/lib/x86 in the search by default, so that the x86 compiled GCC
5695 -+ * is able to run on a x64 SUA installation. */
5696 -+#undef STARTFILE_PREFIX_SPEC
5697 -+#define STARTFILE_PREFIX_SPEC \
5698 -+ "/usr/lib/x86/ /usr/lib/ /lib/"
5699 -
5700 - #undef WORD_SWITCH_TAKES_ARG
5701 - #define WORD_SWITCH_TAKES_ARG(STR) \
5702
5703 diff --git a/sys-devel/gcc/files/gcc-4.4.1-interix-avoid-bs.patch b/sys-devel/gcc/files/gcc-4.4.1-interix-avoid-bs.patch
5704 deleted file mode 100644
5705 index 8b242ace41..0000000000
5706 --- a/sys-devel/gcc/files/gcc-4.4.1-interix-avoid-bs.patch
5707 +++ /dev/null
5708 @@ -1,51 +0,0 @@
5709 -diff -ru gcc-4.4.1.orig/configure gcc-4.4.1/configure
5710 ---- gcc-4.4.1.orig/configure 2009-09-24 11:16:58 +0200
5711 -+++ gcc-4.4.1/configure 2009-09-24 13:39:50 +0200
5712 -@@ -2849,6 +2849,9 @@
5713 - host_makefile_frag="config/mh-mingw"
5714 - ;;
5715 - *-interix*)
5716 -+ # We definitely don't want cc on interix, since this uses the native
5717 -+ # Visual Studio tools, and doesn't work if those are missing.
5718 -+ tentative_cc=gcc
5719 - host_makefile_frag="config/mh-interix"
5720 - ;;
5721 - vax-*-ultrix2*)
5722 -@@ -5733,6 +5736,9 @@
5723 - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
5724 - target_makefile_frag="config/mt-gnu"
5725 - ;;
5726 -+ *-*-interix*)
5727 -+ target_makefile_frag="config/mt-interix"
5728 -+ ;;
5729 - *-*-aix4.[3456789]* | *-*-aix[56789].*)
5730 - # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5731 - # commands to handle both 32-bit and 64-bit objects. These flags are
5732 -diff -ru gcc-4.4.1.orig/libmudflap/configure gcc-4.4.1/libmudflap/configure
5733 ---- gcc-4.4.1.orig/libmudflap/configure 2009-09-24 11:18:59 +0200
5734 -+++ gcc-4.4.1/libmudflap/configure 2009-09-24 13:41:15 +0200
5735 -@@ -12669,7 +12669,7 @@
5736 - echo $ECHO_N "(cached) $ECHO_C" >&6
5737 - else
5738 -
5739 --for name in _start __start unknown; do
5740 -+for name in _start __start _mainCRTStartup unknown; do
5741 - cat >conftest.$ac_ext <<_ACEOF
5742 - /* confdefs.h. */
5743 - _ACEOF
5744 -diff -ru gcc-4.4.1.orig/libstdc++-v3/configure gcc-4.4.1/libstdc++-v3/configure
5745 ---- gcc-4.4.1.orig/libstdc++-v3/configure 2009-09-24 11:19:00 +0200
5746 -+++ gcc-4.4.1/libstdc++-v3/configure 2009-09-24 13:43:08 +0200
5747 -@@ -15034,6 +15034,12 @@
5748 - fi
5749 - if test x"$ac_fdsections" = x"yes"; then
5750 - SECTION_FLAGS='-ffunction-sections -fdata-sections'
5751 -+
5752 -+ # don't user function sections on interix - the resulting lib is not usable
5753 -+ # for some reason...
5754 -+ case "${target}" in
5755 -+ *-*-interix*) SECTION_FLAGS='' ;;
5756 -+ esac
5757 - fi
5758 - echo "$as_me:$LINENO: result: $ac_fdsections" >&5
5759 - echo "${ECHO_T}$ac_fdsections" >&6
5760
5761 diff --git a/sys-devel/gcc/files/gcc-4.4.1-interix.patch b/sys-devel/gcc/files/gcc-4.4.1-interix.patch
5762 deleted file mode 100644
5763 index 1caab112c0..0000000000
5764 --- a/sys-devel/gcc/files/gcc-4.4.1-interix.patch
5765 +++ /dev/null
5766 @@ -1,350 +0,0 @@
5767 -diff -ruN gcc-4.4.1.orig/config/mh-interix gcc-4.4.1/config/mh-interix
5768 ---- gcc-4.4.1.orig/config/mh-interix 2009-09-25 08:54:49 +0200
5769 -+++ gcc-4.4.1/config/mh-interix 2009-09-24 17:11:12 +0200
5770 -@@ -1,7 +1,7 @@
5771 --# The shell may not be in /bin.
5772 --SHELL = sh
5773 -+BOOT_CFLAGS = -g -O2 -D_ALL_SOURCE -D_REENTRANT
5774 -+CFLAGS_FOR_BUILD = -g -O2 -D_ALL_SOURCE -D_REENTRANT
5775 -+CFLAGS = -g -O2 -D_ALL_SOURCE -D_REENTRANT
5776 -
5777 - # We also need to override LIBGCC2_DEBUG_CFLAGS so libgcc2 will be
5778 - # built without debugging information
5779 --
5780 - LIBGCC2_DEBUG_CFLAGS=
5781 -diff -ruN gcc-4.4.1.orig/config/mt-interix gcc-4.4.1/config/mt-interix
5782 ---- gcc-4.4.1.orig/config/mt-interix 1970-01-01 01:00:00 +0100
5783 -+++ gcc-4.4.1/config/mt-interix 2009-09-24 17:11:12 +0200
5784 -@@ -0,0 +1 @@
5785 -+CPPFLAGS_FOR_TARGET = -D_ALL_SOURCE -D_REENTRANT
5786 -diff -ruN gcc-4.4.1.orig/configure.ac gcc-4.4.1/configure.ac
5787 ---- gcc-4.4.1.orig/configure.ac 2009-09-25 08:54:49 +0200
5788 -+++ gcc-4.4.1/configure.ac 2009-09-24 17:11:12 +0200
5789 -@@ -1058,6 +1058,9 @@
5790 - host_makefile_frag="config/mh-mingw"
5791 - ;;
5792 - *-interix*)
5793 -+ # We definitely don't want cc on interix, since this uses the native
5794 -+ # Visual Studio tools, and doesn't work if those are missing.
5795 -+ tentative_cc=gcc
5796 - host_makefile_frag="config/mh-interix"
5797 - ;;
5798 - vax-*-ultrix2*)
5799 -@@ -2043,6 +2046,9 @@
5800 - *-*-linux* | *-*-gnu* | *-*-k*bsd*-gnu | *-*-kopensolaris*-gnu)
5801 - target_makefile_frag="config/mt-gnu"
5802 - ;;
5803 -+ *-*-interix*)
5804 -+ target_makefile_frag="config/mt-interix"
5805 -+ ;;
5806 - *-*-aix4.[[3456789]]* | *-*-aix[[56789]].*)
5807 - # nm and ar from AIX 4.3 and above require -X32_64 flag to all ar and nm
5808 - # commands to handle both 32-bit and 64-bit objects. These flags are
5809 -diff -ruN gcc-4.4.1.orig/gcc/config/i386/i386-interix.h gcc-4.4.1/gcc/config/i386/i386-interix.h
5810 ---- gcc-4.4.1.orig/gcc/config/i386/i386-interix.h 2009-09-25 08:54:49 +0200
5811 -+++ gcc-4.4.1/gcc/config/i386/i386-interix.h 2009-09-24 17:11:12 +0200
5812 -@@ -43,7 +43,7 @@
5813 - MASK_ALIGN_DOUBLE | MASK_MS_BITFIELD_LAYOUT)
5814 -
5815 - #undef TARGET_CPU_DEFAULT
5816 --#define TARGET_CPU_DEFAULT TARGET_CPU_DEFAULT_i486
5817 -+#define TARGET_CPU_DEFAULT TARGET_CPU_DEFAULT_pentiumpro
5818 -
5819 - #define WCHAR_TYPE_SIZE 16
5820 - #define WCHAR_TYPE "short unsigned int"
5821 -@@ -61,7 +61,8 @@
5822 - { \
5823 - builtin_define ("__INTERIX"); \
5824 - builtin_define ("__OPENNT"); \
5825 -- builtin_define ("_M_IX86=300"); \
5826 -+ builtin_define ("_ALL_SOURCE"); \
5827 -+ builtin_define ("_M_IX86=600"); \
5828 - builtin_define ("_X86_=1"); \
5829 - builtin_define ("__stdcall=__attribute__((__stdcall__))"); \
5830 - builtin_define ("__cdecl=__attribute__((__cdecl__))"); \
5831 -@@ -81,14 +82,9 @@
5832 - while (0)
5833 -
5834 - #undef CPP_SPEC
5835 --/* Write out the correct language type definition for the header files.
5836 -- Unless we have assembler language, write out the symbols for C.
5837 -- mieee is an Alpha specific variant. Cross pollination a bad idea.
5838 -- */
5839 --#define CPP_SPEC "-remap %{posix:-D_POSIX_SOURCE} \
5840 ---isystem %$INTERIX_ROOT/usr/include"
5841 -+#define CPP_SPEC "%{posix:-D_POSIX_SOURCE}"
5842 -
5843 --#define TARGET_VERSION fprintf (stderr, " (i386 Interix)");
5844 -+#define TARGET_VERSION fprintf (stderr, " (i686 Interix)");
5845 -
5846 - /* The global __fltused is necessary to cause the printf/scanf routines
5847 - for outputting/inputting floating point numbers to be loaded. Since this
5848 -@@ -245,6 +241,11 @@
5849 - And if the user tries to set the flag for objc, give an error
5850 - so he has some clue. */
5851 -
5852 -+/* Disable the pic flag if it has been enabled, since on interix, all
5853 -+ * code is PIC by default. Older versions of this code emitted a warning,
5854 -+ * but there -fPIC is passed quite often to GCC by default, so don't spit
5855 -+ * around, and pollute output. */
5856 -+
5857 - #undef SUBTARGET_OVERRIDE_OPTIONS
5858 - #define SUBTARGET_OVERRIDE_OPTIONS \
5859 - do { \
5860 -@@ -257,6 +258,10 @@
5861 - } \
5862 - target_flags &= ~MASK_MS_BITFIELD_LAYOUT; \
5863 - } \
5864 -+ if(flag_pic) \
5865 -+ { \
5866 -+ flag_pic = 0; \
5867 -+ } \
5868 - } while (0)
5869 -
5870 - #define EH_FRAME_IN_DATA_SECTION
5871 -@@ -272,6 +277,17 @@
5872 - ld -r (specifically -rU). */
5873 - #define CTOR_LISTS_DEFINED_EXTERNALLY 1
5874 -
5875 -+/* Max allowed section alignment specified by the PECOFF specs */
5876 -+#undef MAX_OFILE_ALIGNMENT
5877 -+#define MAX_OFILE_ALIGNMENT (8192 * 8)
5878 -+
5879 -+#undef BIGGEST_FIELD_ALIGNMENT
5880 -+#define BIGGEST_FIELD_ALIGNMENT 64
5881 -+
5882 -+#undef PCC_BITFIELD_TYPE_MATTERS
5883 -+#define PCC_BITFIELD_TYPE_MATTERS 1
5884 -+#define GROUP_BITFIELDS_BY_ALIGN TYPE_NATIVE(rec)
5885 -+
5886 - #define SET_ASM_OP "\t.set\t"
5887 - /* Output a definition (implements alias) */
5888 - #define ASM_OUTPUT_DEF(FILE,LABEL1,LABEL2) \
5889 -@@ -285,6 +301,28 @@
5890 - } \
5891 - while (0)
5892 -
5893 -+#define ASM_WEAKEN_LABEL(FILE, NAME) \
5894 -+do \
5895 -+{ \
5896 -+ fprintf(FILE, "/* .weak "); \
5897 -+ assemble_name (FILE, NAME); \
5898 -+ fprintf(FILE, " (not supported on interix) */\n"); \
5899 -+} while (0)
5900 -+
5901 -+#define ASM_OUTPUT_DEF_FROM_DECLS(FILE, DECL, TARGET) \
5902 -+do \
5903 -+{ \
5904 -+ if(DECL_WEAK(DECL)) { \
5905 -+ fprintf(FILE, "\t.alias\t"); \
5906 -+ } else { \
5907 -+ fprintf(FILE, SET_ASM_OP); \
5908 -+ } \
5909 -+ assemble_name(FILE, IDENTIFIER_POINTER(DECL_ASSEMBLER_NAME(DECL))); \
5910 -+ fprintf(FILE, ", "); \
5911 -+ assemble_name(FILE, IDENTIFIER_POINTER(TARGET)); \
5912 -+ fprintf(FILE, "\n"); \
5913 -+} while (0)
5914 -+
5915 - #define HOST_PTR_AS_INT unsigned long
5916 -
5917 - #define PCC_BITFIELD_TYPE_MATTERS 1
5918 -@@ -329,11 +367,6 @@
5919 - #undef TARGET_STRIP_NAME_ENCODING
5920 - #define TARGET_STRIP_NAME_ENCODING i386_pe_strip_name_encoding_full
5921 -
5922 --#if 0
5923 --/* Turn this back on when the linker is updated to handle grouped
5924 -- .data$ sections correctly. See corresponding note in i386/interix.c.
5925 -- MK. */
5926 --
5927 - /* Interix uses explicit import from shared libraries. */
5928 - #define MULTIPLE_SYMBOL_SPACES 1
5929 -
5930 -@@ -342,7 +375,6 @@
5931 - #define TARGET_ASM_FUNCTION_RODATA_SECTION default_no_function_rodata_section
5932 -
5933 - #define SUPPORTS_ONE_ONLY 1
5934 --#endif /* 0 */
5935 -
5936 - /* Switch into a generic section. */
5937 - #define TARGET_ASM_NAMED_SECTION default_pe_asm_named_section
5938 -@@ -359,4 +391,4 @@
5939 -
5940 - #define SUBTARGET_RETURN_IN_MEMORY(TYPE, FNTYPE) \
5941 - (TYPE_MODE (TYPE) == BLKmode \
5942 -- || (AGGREGATE_TYPE_P (TYPE) && int_size_in_bytes (TYPE) > 8 ))
5943 -\ No newline at end of file
5944 -+ || (AGGREGATE_TYPE_P (TYPE) && int_size_in_bytes (TYPE) > 8 ))
5945 -diff -ruN gcc-4.4.1.orig/gcc/config/i386/t-interix gcc-4.4.1/gcc/config/i386/t-interix
5946 ---- gcc-4.4.1.orig/gcc/config/i386/t-interix 2009-09-25 08:54:49 +0200
5947 -+++ gcc-4.4.1/gcc/config/i386/t-interix 2009-09-24 17:11:12 +0200
5948 -@@ -5,3 +5,13 @@
5949 - $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
5950 - $(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
5951 - $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt.c
5952 -+
5953 -+winnt-cxx.o: $(srcdir)/config/i386/winnt-cxx.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
5954 -+ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
5955 -+ $(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
5956 -+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt-cxx.c
5957 -+
5958 -+winnt-stubs.o: $(srcdir)/config/i386/winnt-stubs.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \
5959 -+ $(TM_H) $(RTL_H) $(REGS_H) hard-reg-set.h output.h $(TREE_H) flags.h \
5960 -+ $(TM_P_H) toplev.h $(HASHTAB_H) $(GGC_H)
5961 -+ $(CC) -c $(ALL_CFLAGS) $(ALL_CPPFLAGS) $(INCLUDES) $(srcdir)/config/i386/winnt-stubs.c
5962 -diff -ruN gcc-4.4.1.orig/gcc/config/interix.h gcc-4.4.1/gcc/config/interix.h
5963 ---- gcc-4.4.1.orig/gcc/config/interix.h 2009-09-25 08:54:49 +0200
5964 -+++ gcc-4.4.1/gcc/config/interix.h 2009-09-24 17:11:12 +0200
5965 -@@ -25,19 +25,13 @@
5966 - /* POSIX/Uni-thread only for now. Look at the winnt version
5967 - for windows/multi thread */
5968 -
5969 --/* We need multiple -lc -lcpsx because they mutually refer;
5970 -- that should go away someday */
5971 --
5972 - #undef LIB_SPEC
5973 - #define LIB_SPEC "\
5974 -- %{!shared:%{!dynamic:-lc -lcpsx -lc -lcpsx %$INTERIX_ROOT/usr/lib/psxdll.a \
5975 -- %$INTERIX_ROOT/usr/lib/psxdll2.a \
5976 -+ %{!shared:%{!dynamic:-lc -lpsxdll \
5977 - }} \
5978 -- %{!G:%{!dynamic:-lc -lcpsx -lc -lcpsx %$INTERIX_ROOT/usr/lib/psxdll.a \
5979 -- %$INTERIX_ROOT/usr/lib/psxdll2.a \
5980 -+ %{!G:%{!dynamic:-lc -lpsxdll \
5981 - }} \
5982 -- %{dynamic:-lc %$INTERIX_ROOT/usr/lib/psxdll.a \
5983 -- %$INTERIX_ROOT/usr/lib/psxdll2.a \
5984 -+ %{dynamic:-lc -lpsxdll \
5985 - } \
5986 - %{v}"
5987 -
5988 -@@ -58,6 +52,12 @@
5989 - #define STARTFILE_SPEC \
5990 - "%{!shared:%{pg:gcrt0%O%s}%{!pg:%{p:mcrt0%O%s}%{!p:crt0%O%s}}} %{shared:crti%O%s}"
5991 -
5992 -+/* also search /usr/lib/x86/ for libraries (and before /usr/lib/, etc.), so
5993 -+ * that the x64 versiosn of SUA work with the x86 targeting GCC */
5994 -+#undef STARTFILE_PREFIX_SPEC
5995 -+#define STARTFILE_PREFIX_SPEC \
5996 -+ "/usr/lib/x86/ /usr/lib/ /lib/"
5997 -+
5998 - #undef WORD_SWITCH_TAKES_ARG
5999 - #define WORD_SWITCH_TAKES_ARG(STR) \
6000 - ((DEFAULT_WORD_SWITCH_TAKES_ARG (STR) \
6001 -diff -ruN gcc-4.4.1.orig/gcc/config.gcc gcc-4.4.1/gcc/config.gcc
6002 ---- gcc-4.4.1.orig/gcc/config.gcc 2009-09-25 08:54:49 +0200
6003 -+++ gcc-4.4.1/gcc/config.gcc 2009-09-24 17:11:13 +0200
6004 -@@ -1301,10 +1301,11 @@
6005 - ;;
6006 - esac
6007 - ;;
6008 --i[34567]86-*-interix3*)
6009 -- tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h i386/i386-interix3.h interix.h interix3.h"
6010 -+i[34567]86-*-interix*)
6011 -+ tm_file="${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/i386-interix.h interix.h"
6012 - tmake_file="${tmake_file} i386/t-interix"
6013 -- extra_objs=winnt.o
6014 -+ extra_objs="winnt.o winnt-stubs.o"
6015 -+ cxx_target_objs="winnt-cxx.o"
6016 - target_gtfiles="\$(srcdir)/config/i386/winnt.c"
6017 - if test x$enable_threads = xyes ; then
6018 - thread_file='posix'
6019 -diff -ruN gcc-4.4.1.orig/gcc/cp/Make-lang.in gcc-4.4.1/gcc/cp/Make-lang.in
6020 ---- gcc-4.4.1.orig/gcc/cp/Make-lang.in 2009-09-25 08:15:13 +0200
6021 -+++ gcc-4.4.1/gcc/cp/Make-lang.in 2009-09-25 09:13:33 +0200
6022 -@@ -73,7 +73,7 @@
6023 - CXX_C_OBJS = attribs.o c-common.o c-format.o c-pragma.o c-semantics.o c-lex.o \
6024 - c-dump.o $(CXX_TARGET_OBJS) c-pretty-print.o c-opts.o c-pch.o \
6025 - incpath.o cppdefault.o c-ppoutput.o c-cppbuiltin.o prefix.o \
6026 -- c-gimplify.o c-omp.o tree-inline.o
6027 -+ c-gimplify.o c-omp.o tree-inline.o $(C_TARGET_OBJS)
6028 -
6029 - # Language-specific object files for C++ and Objective C++.
6030 - CXX_AND_OBJCXX_OBJS = cp/call.o cp/decl.o cp/expr.o cp/pt.o cp/typeck2.o \
6031 -diff -ruN gcc-4.4.1.orig/gcc/ginclude/stddef.h gcc-4.4.1/gcc/ginclude/stddef.h
6032 ---- gcc-4.4.1.orig/gcc/ginclude/stddef.h 2009-09-25 08:54:49 +0200
6033 -+++ gcc-4.4.1/gcc/ginclude/stddef.h 2009-09-24 17:11:12 +0200
6034 -@@ -135,6 +135,7 @@
6035 - #ifndef _BSD_PTRDIFF_T_
6036 - #ifndef ___int_ptrdiff_t_h
6037 - #ifndef _GCC_PTRDIFF_T
6038 -+#ifndef _PTRDIFF_T_DEFINED
6039 - #define _PTRDIFF_T
6040 - #define _T_PTRDIFF_
6041 - #define _T_PTRDIFF
6042 -@@ -143,10 +144,12 @@
6043 - #define _BSD_PTRDIFF_T_
6044 - #define ___int_ptrdiff_t_h
6045 - #define _GCC_PTRDIFF_T
6046 -+#define _PTRDIFF_T_DEFINED
6047 - #ifndef __PTRDIFF_TYPE__
6048 - #define __PTRDIFF_TYPE__ long int
6049 - #endif
6050 - typedef __PTRDIFF_TYPE__ ptrdiff_t;
6051 -+#endif /* _PTRDIFF_T_DEFINED */
6052 - #endif /* _GCC_PTRDIFF_T */
6053 - #endif /* ___int_ptrdiff_t_h */
6054 - #endif /* _BSD_PTRDIFF_T_ */
6055 -diff -ruN gcc-4.4.1.orig/libgcc/config.host gcc-4.4.1/libgcc/config.host
6056 ---- gcc-4.4.1.orig/libgcc/config.host 2009-09-25 08:54:49 +0200
6057 -+++ gcc-4.4.1/libgcc/config.host 2009-09-24 17:11:12 +0200
6058 -@@ -339,7 +339,7 @@
6059 - ;;
6060 - x86_64-*-mingw*)
6061 - ;;
6062 --i[34567]86-*-interix3*)
6063 -+i[34567]86-*-interix*)
6064 - ;;
6065 - ia64*-*-elf*)
6066 - extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
6067 -diff -ruN gcc-4.4.1.orig/libmudflap/configure.ac gcc-4.4.1/libmudflap/configure.ac
6068 ---- gcc-4.4.1.orig/libmudflap/configure.ac 2009-09-25 08:54:49 +0200
6069 -+++ gcc-4.4.1/libmudflap/configure.ac 2009-09-24 17:11:12 +0200
6070 -@@ -245,7 +245,7 @@
6071 - # Check for the name of the symbol used for the entry point.
6072 - AC_CACHE_CHECK([for the name of the symbol used for the entry point],
6073 - [mudflap_cv_entry_point], [
6074 --for name in _start __start unknown; do
6075 -+for name in _start __start _mainCRTStartup unknown; do
6076 - AC_LINK_IFELSE([AC_LANG_PROGRAM([extern char $name@<:@@:>@;], [$name@<:@0@:>@ = 0;])],
6077 - [break])
6078 - done
6079 -diff -ruN gcc-4.4.1.orig/libstdc++-v3/acinclude.m4 gcc-4.4.1/libstdc++-v3/acinclude.m4
6080 ---- gcc-4.4.1.orig/libstdc++-v3/acinclude.m4 2009-09-25 08:54:49 +0200
6081 -+++ gcc-4.4.1/libstdc++-v3/acinclude.m4 2009-09-24 17:11:12 +0200
6082 -@@ -179,6 +179,12 @@
6083 - fi
6084 - if test x"$ac_fdsections" = x"yes"; then
6085 - SECTION_FLAGS='-ffunction-sections -fdata-sections'
6086 -+
6087 -+ # don't user function sections on interix - the resulting lib is not usable
6088 -+ # for some reason...
6089 -+ case "${target}" in
6090 -+ *-*-interix*) SECTION_FLAGS='' ;;
6091 -+ esac
6092 - fi
6093 - AC_MSG_RESULT($ac_fdsections)
6094 -
6095 -diff -ruN gcc-4.4.1.orig/libstdc++-v3/src/math_stubs_long_double.cc gcc-4.4.1/libstdc++-v3/src/math_stubs_long_double.cc
6096 ---- gcc-4.4.1.orig/libstdc++-v3/src/math_stubs_long_double.cc 2009-09-25 08:54:49 +0200
6097 -+++ gcc-4.4.1/libstdc++-v3/src/math_stubs_long_double.cc 2009-09-24 17:11:12 +0200
6098 -@@ -28,6 +28,18 @@
6099 - // we use the following crude approximations. We keep saying that we'll do
6100 - // better later, but never do.
6101 -
6102 -+#ifdef fabsl
6103 -+#undef fabsl
6104 -+#endif
6105 -+
6106 -+#ifdef ceill
6107 -+#undef ceill
6108 -+#endif
6109 -+
6110 -+#ifdef floorl
6111 -+#undef floorl
6112 -+#endif
6113 -+
6114 - extern "C"
6115 - {
6116 - #ifndef _GLIBCXX_HAVE_FABSL
6117
6118 diff --git a/sys-devel/gcc/files/gcc-4.8-aix-extref.patch b/sys-devel/gcc/files/gcc-4.8-aix-extref.patch
6119 deleted file mode 100644
6120 index eef77389e5..0000000000
6121 --- a/sys-devel/gcc/files/gcc-4.8-aix-extref.patch
6122 +++ /dev/null
6123 @@ -1,102 +0,0 @@
6124 -commit 1079e475f284f9abce455f02065a7a3bac9a9b90
6125 -Author: dje <dje@138bc75d-0d04-0410-961f-82ee72b054a4>
6126 -Date: Mon Feb 16 15:33:09 2015 +0000
6127 -
6128 - 2015-02-16 Michael Haubenwallner <michael.haubenwallner@××××××××××××.com>
6129 - David Edelsohn <dje.gcc@×××××.com>
6130 -
6131 - PR target/65058
6132 - * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
6133 - mapping class to external variable or function reference.
6134 - * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
6135 - mapping class.
6136 -
6137 -# 2015-02-16 David Eelsohn <dje.gcc@×××××.com>
6138 -
6139 - PR target/53348
6140 - * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
6141 - ASM_WEAKEN_DECL if defined.
6142 -
6143 -
6144 -
6145 - git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220737 138bc75d-0d04-0410-961f-82ee72b054a4
6146 -
6147 -#diff --git a/gcc/ChangeLog b/gcc/ChangeLog
6148 -#index e049c99..04ac119 100644
6149 -#--- a/gcc/ChangeLog
6150 -#+++ b/gcc/ChangeLog
6151 -#@@ -1,3 +1,18 @@
6152 -+2015-02-16 Michael Haubenwallner <michael.haubenwallner@××××××××××××.com>
6153 -+ David Edelsohn <dje.gcc@×××××.com>
6154 -+
6155 -+ PR target/65058
6156 -+ * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
6157 -+ mapping class to external variable or function reference.
6158 -+ * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
6159 -+ mapping class.
6160 -+
6161 -+2015-02-16 David Eelsohn <dje.gcc@×××××.com>
6162 -+
6163 -+ PR target/53348
6164 -+ * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
6165 -+ ASM_WEAKEN_DECL if defined.
6166 -+
6167 - 2015-02-16 Richard Biener <rguenther@××××.de>
6168 -
6169 - PR lto/65015
6170 -diff --git a/gcc/config/rs6000/rs6000.c b/gcc/config/rs6000/rs6000.c
6171 -index 86ef0fe..e482547 100644
6172 ---- a/gcc/config/rs6000/rs6000.c
6173 -+++ b/gcc/config/rs6000/rs6000.c
6174 -@@ -26030,6 +26030,20 @@ rs6000_output_symbol_ref (FILE *file, rtx x)
6175 - section. */
6176 - const char *name = XSTR (x, 0);
6177 -
6178 -+ tree decl = SYMBOL_REF_DECL (x);
6179 -+ if (decl /* sync condition with assemble_external () */
6180 -+ && DECL_P (decl) && DECL_EXTERNAL (decl) && TREE_PUBLIC (decl)
6181 -+ && (TREE_CODE (decl) == VAR_DECL
6182 -+ || TREE_CODE (decl) == FUNCTION_DECL)
6183 -+ && name[strlen (name) - 1] != ']')
6184 -+ {
6185 -+ name = concat (name,
6186 -+ (TREE_CODE (decl) == FUNCTION_DECL
6187 -+ ? "[DS]" : "[UA]"),
6188 -+ NULL);
6189 -+ XSTR (x, 0) = name;
6190 -+ }
6191 -+
6192 - if (VTABLE_NAME_P (name))
6193 - {
6194 - RS6000_OUTPUT_BASENAME (file, name);
6195 -#@@ -30081,8 +30095,10 @@ rs6000_declare_alias (struct symtab_node *n, void *d)
6196 - RS6000_OUTPUT_BASENAME (data->file, buffer);
6197 - putc ('\n', data->file);
6198 - }
6199 -+#ifdef ASM_WEAKEN_DECL
6200 - else if (DECL_WEAK (n->decl) && !data->function_descriptor)
6201 - ASM_WEAKEN_DECL (data->file, n->decl, name, NULL);
6202 -+#endif
6203 - }
6204 - else
6205 - {
6206 -diff --git a/gcc/config/rs6000/xcoff.h b/gcc/config/rs6000/xcoff.h
6207 -index 6dc1207..db024fc 100644
6208 ---- a/gcc/config/rs6000/xcoff.h
6209 -+++ b/gcc/config/rs6000/xcoff.h
6210 -@@ -170,15 +170,6 @@
6211 - putc ('\n', FILE); \
6212 - fprintf(FILE, "\t.rename .%s,\".%s\"\n", buffer, NAME); \
6213 - } \
6214 -- if ((TREE_CODE (DECL) == VAR_DECL \
6215 -- || TREE_CODE (DECL) == FUNCTION_DECL) \
6216 -- && (NAME)[strlen (NAME) - 1] != ']') \
6217 -- { \
6218 -- XSTR (_symref, 0) = concat (XSTR (_symref, 0), \
6219 -- (TREE_CODE (DECL) == FUNCTION_DECL \
6220 -- ? "[DS]" : "[RW]"), \
6221 -- NULL); \
6222 -- } \
6223 - }
6224 -
6225 - /* This is how to output a reference to a user-level label named NAME.
6226
6227 diff --git a/sys-devel/gcc/files/gcc-4.8.2-linux-x86-on-amd64.patch b/sys-devel/gcc/files/gcc-4.8.2-linux-x86-on-amd64.patch
6228 deleted file mode 100644
6229 index 7d834d0bf1..0000000000
6230 --- a/sys-devel/gcc/files/gcc-4.8.2-linux-x86-on-amd64.patch
6231 +++ /dev/null
6232 @@ -1,34 +0,0 @@
6233 ---- gcc/config.gcc.orig 2009-04-17 13:58:41.000000000 +0200
6234 -+++ gcc/config.gcc 2009-09-22 15:38:53.614811935 +0200
6235 -@@ -1304,6 +1304,7 @@
6236 - esac
6237 - else
6238 - tm_file="${tm_file} i386/gnu-user-common.h i386/gnu-user.h i386/linux-common.h i386/linux.h"
6239 -+ tmake_file="${tmake_file} i386/t-linux32"
6240 - fi
6241 - ;;
6242 - i[34567]86-*-knetbsd*-gnu) tm_file="${tm_file} i386/linux.h knetbsd-gnu.h i386/knetbsd-gnu.h" ;;
6243 ---- gcc/config/i386/gnu-user.h.orig 2009-05-21 15:21:30.000000000 +0200
6244 -+++ gcc/config/i386/gnu-user.h 2009-09-22 15:33:39.158050728 +0200
6245 -@@ -114,6 +114,8 @@
6246 - %{mpc80:crtprec80.o%s} \
6247 - %{shared|pie:crtendS.o%s;:crtend.o%s} crtn.o%s"
6248 -
6249 -+#define MULTILIB_DEFAULTS { "m32" }
6250 -+
6251 - /* A C statement (sans semicolon) to output to the stdio stream
6252 - FILE the assembler definition of uninitialized global DECL named
6253 - NAME whose size is SIZE bytes and alignment is ALIGN bytes.
6254 ---- /dev/null 2009-09-10 15:59:29.820003140 +0200
6255 -+++ gcc/config/i386/t-linux32 2009-09-16 11:02:34.118502434 +0200
6256 -@@ -0,0 +1,10 @@
6257 -+# On Debian, Ubuntu and other derivative distributions, the 32bit libraries
6258 -+# are found in /lib32 and /usr/lib32, /lib64 and /usr/lib64 are symlinks to
6259 -+# /lib and /usr/lib, while other distributions install libraries into /lib64
6260 -+# and /usr/lib64. The LSB does not enforce the use of /lib64 and /usr/lib64,
6261 -+# it doesn't tell anything about the 32bit libraries on those systems. Set
6262 -+# MULTILIB_OSDIRNAMES according to what is found on the target.
6263 -+
6264 -+MULTILIB_OPTIONS = m32
6265 -+MULTILIB_DIRNAMES = .
6266 -+MULTILIB_OSDIRNAMES = $(if $(wildcard $(shell echo $(SYSTEM_HEADER_DIR))/../../usr/lib32),../lib32,)
6267
6268 diff --git a/sys-devel/gcc/files/gcc-4.8.4-aix-pthread-specs.patch b/sys-devel/gcc/files/gcc-4.8.4-aix-pthread-specs.patch
6269 deleted file mode 100644
6270 index b64224a424..0000000000
6271 --- a/sys-devel/gcc/files/gcc-4.8.4-aix-pthread-specs.patch
6272 +++ /dev/null
6273 @@ -1,47 +0,0 @@
6274 -From 5c8068b3cac9a04e8ddf942dcd8cef6202b2ed22 Mon Sep 17 00:00:00 2001
6275 -From: Michael Haubenwallner <michael.haubenwallner@××××××××××××.com>
6276 -Date: Tue, 3 Feb 2015 18:52:35 +0100
6277 -Subject: [PATCH 4/4] Let --with-specs=-pthread work even for the shared
6278 - libgcc.
6279 -
6280 ----
6281 - libgcc/config/rs6000/t-slibgcc-aix | 14 ++++----------
6282 - 1 file changed, 4 insertions(+), 10 deletions(-)
6283 -
6284 -diff --git a/libgcc/config/rs6000/t-slibgcc-aix b/libgcc/config/rs6000/t-slibgcc-aix
6285 -index f1f4748..ae78474 100644
6286 ---- a/libgcc/config/rs6000/t-slibgcc-aix
6287 -+++ b/libgcc/config/rs6000/t-slibgcc-aix
6288 -@@ -36,12 +36,9 @@ SHLIB_SOVERSION = 1
6289 - SHLIB_SONAME = @shlib_base_name@.so.$(SHLIB_SOVERSION)
6290 - SHLIB_LINK = \
6291 - if test svr4 != $(with_aix_soname) ; then \
6292 -- $(CC) $(LIBGCC2_CFLAGS) -shared -Wl,-bnortl -nodefaultlibs \
6293 -+ $(CC) $(LIBGCC2_CFLAGS) -shared -Wl,-bnortl -static-libgcc \
6294 - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/shr.o \
6295 -- @multilib_flags@ @shlib_objs@ -lc \
6296 -- `case @multilib_dir@ in \
6297 -- *pthread*) echo -L$(TARGET_SYSTEM_ROOT)/usr/lib/threads -lpthreads -lc_r $(TARGET_SYSTEM_ROOT)/usr/lib/libc.a ;; \
6298 -- *) echo -lc ;; esac` ; \
6299 -+ @multilib_flags@ @shlib_objs@ ; \
6300 - rm -f @multilib_dir@/tmp-@shlib_base_name@.a ; \
6301 - $(AR_CREATE_FOR_TARGET) @multilib_dir@/tmp-@shlib_base_name@.a \
6302 - @multilib_dir@/shr.o ; \
6303 -@@ -51,12 +48,9 @@ SHLIB_LINK = \
6304 - fi ; \
6305 - if test aix != $(with_aix_soname) ; then \
6306 - case @multilib_dir@ in *64*) shr='shr_64' ;; *) shr='shr' ;; esac ; \
6307 -- $(CC) $(LIBGCC2_CFLAGS) -shared -Wl,-G -nodefaultlibs \
6308 -+ $(CC) $(LIBGCC2_CFLAGS) -shared -Wl,-G -static-libgcc \
6309 - -Wl,-bE:@shlib_map_file@ -o @multilib_dir@/$$shr.o \
6310 -- @multilib_flags@ @shlib_objs@ -lc \
6311 -- `case @multilib_dir@ in \
6312 -- *pthread*) echo -L$(TARGET_SYSTEM_ROOT)/usr/lib/threads -lpthreads -lc_r $(TARGET_SYSTEM_ROOT)/usr/lib/libc.a ;; \
6313 -- *) echo -lc ;; esac` ; \
6314 -+ @multilib_flags@ @shlib_objs@ ; \
6315 - $(STRIP_FOR_TARGET) -X32_64 -e @multilib_dir@/$$shr.o ; \
6316 - { echo "\#! $(SHLIB_SONAME)($$shr.o)" ; \
6317 - case @multilib_dir@ in *64*) echo '\# 64' ;; *) echo '\# 32' ;; esac ; \
6318 ---
6319 -2.0.5
6320 -
6321
6322 diff --git a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-libgcc.patch.xz b/sys-devel/gcc/files/gcc-4.8.4-aix-soname-libgcc.patch.xz
6323 deleted file mode 100644
6324 index a93356a4af..0000000000
6325 Binary files a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-libgcc.patch.xz and /dev/null differ
6326
6327 diff --git a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-libtool.patch.xz b/sys-devel/gcc/files/gcc-4.8.4-aix-soname-libtool.patch.xz
6328 deleted file mode 100644
6329 index 9ca8c5cdb8..0000000000
6330 Binary files a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-libtool.patch.xz and /dev/null differ
6331
6332 diff --git a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-nm-weak.patch b/sys-devel/gcc/files/gcc-4.8.4-aix-soname-nm-weak.patch
6333 deleted file mode 100644
6334 index 04f1e2838b..0000000000
6335 --- a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-nm-weak.patch
6336 +++ /dev/null
6337 @@ -1,40 +0,0 @@
6338 -From 0ea81204518de942e047a51033dd77461d9f2f06 Mon Sep 17 00:00:00 2001
6339 -From: Michael Haubenwallner <michael.haubenwallner@××××××××××××.com>
6340 -Date: Thu, 5 Feb 2015 15:22:24 +0100
6341 -Subject: [PATCH] nm for AIX: avoid -B flag when there is -P
6342 -
6343 ----
6344 - gcc/exec-tool.in | 17 +++++++++++++++++
6345 - 1 file changed, 17 insertions(+)
6346 -
6347 -diff --git a/gcc/exec-tool.in b/gcc/exec-tool.in
6348 -index 6722ce5..5145ba7 100644
6349 ---- a/gcc/exec-tool.in
6350 -+++ b/gcc/exec-tool.in
6351 -@@ -49,6 +49,23 @@ case "$invoked" in
6352 - ;;
6353 - nm)
6354 - original=$ORIGINAL_NM_FOR_TARGET
6355 -+ # AIX-nm needs -B for BSD-style, but properly reports weak symbols with
6356 -+ # -P only (for --with-aix-soname=svr4). Both are mutually exclusive.
6357 -+ for arg in ${1+"$@"}; do
6358 -+ case $arg in
6359 -+ -*P*)
6360 -+ original=
6361 -+ for arg in $ORIGINAL_NM_FOR_TARGET; do
6362 -+ case $arg in
6363 -+ -*B*) continue ;; # skip -B
6364 -+ esac
6365 -+ original="$original${original:+ }$arg"
6366 -+ done
6367 -+ break ;;
6368 -+ -*) ;;
6369 -+ *) break ;; # no more switches
6370 -+ esac
6371 -+ done
6372 - prog=nm-new$exeext
6373 - dir=binutils
6374 - ;;
6375 ---
6376 -2.0.5
6377 -
6378
6379 diff --git a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-regen.patch.xz b/sys-devel/gcc/files/gcc-4.8.4-aix-soname-regen.patch.xz
6380 deleted file mode 100644
6381 index 53916f49cd..0000000000
6382 Binary files a/sys-devel/gcc/files/gcc-4.8.4-aix-soname-regen.patch.xz and /dev/null differ
6383
6384 diff --git a/sys-devel/gcc/files/gcc-4.8.4-lowmem-build.patch b/sys-devel/gcc/files/gcc-4.8.4-lowmem-build.patch
6385 deleted file mode 100644
6386 index 5b398ebd77..0000000000
6387 --- a/sys-devel/gcc/files/gcc-4.8.4-lowmem-build.patch
6388 +++ /dev/null
6389 @@ -1,24 +0,0 @@
6390 -diff --git a/gcc/Makefile.in b/gcc/Makefile.in
6391 -index de1f3b6..25f3587 100644
6392 ---- a/gcc/Makefile.in
6393 -+++ b/gcc/Makefile.in
6394 -@@ -1149,6 +1149,19 @@ C_COMMON_OBJS = c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o \
6395 - # We put the insn-*.o files first so that a parallel make will build
6396 - # them sooner, because they are large and otherwise tend to be the
6397 - # last objects to finish building.
6398 -+# Better do not build them in parallel at all to avoid exhausting memory.
6399 -+insn-attrtab.o: insn-automata.o
6400 -+insn-automata.o: insn-dfatab.o
6401 -+insn-dfatab.o: insn-emit.o
6402 -+insn-emit.o: insn-extract.o
6403 -+insn-extract.o: insn-latencytab.o
6404 -+insn-latencytab.o: insn-modes.o
6405 -+insn-modes.o: insn-opinit.o
6406 -+insn-opinit.o: insn-output.o
6407 -+insn-output.o: insn-peep.o
6408 -+insn-peep.o: insn-preds.o
6409 -+insn-preds.o: insn-recog.o
6410 -+insn-recog.o: insn-enums.o
6411 - OBJS = \
6412 - insn-attrtab.o \
6413 - insn-automata.o \
6414
6415 diff --git a/sys-devel/gcc/files/gcc-5.3.0-libc_name_p.patch b/sys-devel/gcc/files/gcc-5.3.0-libc_name_p.patch
6416 deleted file mode 100644
6417 index e87076b904..0000000000
6418 --- a/sys-devel/gcc/files/gcc-5.3.0-libc_name_p.patch
6419 +++ /dev/null
6420 @@ -1,111 +0,0 @@
6421 -https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=233572
6422 -
6423 ---- a/gcc/cp/Make-lang.in
6424 -+++ b/gcc/cp/Make-lang.in
6425 -@@ -111,7 +111,7 @@ else
6426 - # deleting the $(srcdir)/cp/cfns.h file.
6427 - $(srcdir)/cp/cfns.h:
6428 - endif
6429 -- gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L ANSI-C \
6430 -+ gperf -o -C -E -k '1-6,$$' -j1 -D -N 'libc_name_p' -L C++ \
6431 - $(srcdir)/cp/cfns.gperf --output-file $(srcdir)/cp/cfns.h
6432 -
6433 - #
6434 ---- a/gcc/cp/cfns.gperf
6435 -+++ b/gcc/cp/cfns.gperf
6436 -@@ -1,3 +1,5 @@
6437 -+%language=C++
6438 -+%define class-name libc_name
6439 - %{
6440 - /* Copyright (C) 2000-2015 Free Software Foundation, Inc.
6441 -
6442 -@@ -16,14 +18,6 @@ for more details.
6443 - You should have received a copy of the GNU General Public License
6444 - along with GCC; see the file COPYING3. If not see
6445 - <http://www.gnu.org/licenses/>. */
6446 --#ifdef __GNUC__
6447 --__inline
6448 --#endif
6449 --static unsigned int hash (const char *, unsigned int);
6450 --#ifdef __GNUC__
6451 --__inline
6452 --#endif
6453 --const char * libc_name_p (const char *, unsigned int);
6454 - %}
6455 - %%
6456 - # The standard C library functions, for feeding to gperf; the result is used
6457 ---- a/gcc/cp/cfns.h
6458 -+++ b/gcc/cp/cfns.h
6459 -@@ -28,7 +28,7 @@
6460 - #error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@×××.org>."
6461 - #endif
6462 -
6463 --#line 1 "cfns.gperf"
6464 -+#line 3 "cfns.gperf"
6465 -
6466 - /* Copyright (C) 2000-2015 Free Software Foundation, Inc.
6467 -
6468 -@@ -47,25 +47,18 @@ for more details.
6469 - You should have received a copy of the GNU General Public License
6470 - along with GCC; see the file COPYING3. If not see
6471 - <http://www.gnu.org/licenses/>. */
6472 --#ifdef __GNUC__
6473 --__inline
6474 --#endif
6475 --static unsigned int hash (const char *, unsigned int);
6476 --#ifdef __GNUC__
6477 --__inline
6478 --#endif
6479 --const char * libc_name_p (const char *, unsigned int);
6480 - /* maximum key range = 391, duplicates = 0 */
6481 -
6482 --#ifdef __GNUC__
6483 --__inline
6484 --#else
6485 --#ifdef __cplusplus
6486 --inline
6487 --#endif
6488 --#endif
6489 --static unsigned int
6490 --hash (register const char *str, register unsigned int len)
6491 -+class libc_name
6492 -+{
6493 -+private:
6494 -+ static inline unsigned int hash (const char *str, unsigned int len);
6495 -+public:
6496 -+ static const char *libc_name_p (const char *str, unsigned int len);
6497 -+};
6498 -+
6499 -+inline unsigned int
6500 -+libc_name::hash (register const char *str, register unsigned int len)
6501 - {
6502 - static const unsigned short asso_values[] =
6503 - {
6504 -@@ -122,14 +115,8 @@ hash (register const char *str, register
6505 - return hval + asso_values[(unsigned char)str[len - 1]];
6506 - }
6507 -
6508 --#ifdef __GNUC__
6509 --__inline
6510 --#ifdef __GNUC_STDC_INLINE__
6511 --__attribute__ ((__gnu_inline__))
6512 --#endif
6513 --#endif
6514 - const char *
6515 --libc_name_p (register const char *str, register unsigned int len)
6516 -+libc_name::libc_name_p (register const char *str, register unsigned int len)
6517 - {
6518 - enum
6519 - {
6520 ---- a/gcc/cp/except.c
6521 -+++ b/gcc/cp/except.c
6522 -@@ -1040,7 +1040,8 @@ nothrow_libfn_p (const_tree fn)
6523 - unless the system headers are playing rename tricks, and if
6524 - they are, we don't want to be confused by them. */
6525 - id = DECL_NAME (fn);
6526 -- return !!libc_name_p (IDENTIFIER_POINTER (id), IDENTIFIER_LENGTH (id));
6527 -+ return !!libc_name::libc_name_p (IDENTIFIER_POINTER (id),
6528 -+ IDENTIFIER_LENGTH (id));
6529 - }
6530 -
6531 - /* Returns nonzero if an exception of type FROM will be caught by a
6532
6533 diff --git a/sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch b/sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch
6534 deleted file mode 100644
6535 index a636187f40..0000000000
6536 --- a/sys-devel/gcc/files/gcc-7.3.0-powerpc-darwin.patch
6537 +++ /dev/null
6538 @@ -1,30 +0,0 @@
6539 -https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=257501
6540 -https://gcc.gnu.org/bugzilla/show_bug.cgi?id=84113
6541 -
6542 ---- branches/gcc-7-branch/gcc/config/rs6000/altivec.md 2018/02/08 18:39:43 257500
6543 -+++ branches/gcc-7-branch/gcc/config/rs6000/altivec.md 2018/02/08 18:48:37 257501
6544 -@@ -414,7 +414,6 @@
6545 - (define_insn "*restore_world"
6546 - [(match_parallel 0 "restore_world_operation"
6547 - [(return)
6548 -- (use (reg:SI LR_REGNO))
6549 - (use (match_operand:SI 1 "call_operand" "s"))
6550 - (clobber (match_operand:SI 2 "gpc_reg_operand" "=r"))])]
6551 - "TARGET_MACHO && (DEFAULT_ABI == ABI_DARWIN) && TARGET_32BIT"
6552 ---- branches/gcc-7-branch/gcc/config/rs6000/predicates.md 2018/02/08 18:39:43 257500
6553 -+++ branches/gcc-7-branch/gcc/config/rs6000/predicates.md 2018/02/08 18:48:37 257501
6554 -@@ -1468,13 +1468,12 @@
6555 - rtx elt;
6556 - int count = XVECLEN (op, 0);
6557 -
6558 -- if (count != 59)
6559 -+ if (count != 58)
6560 - return 0;
6561 -
6562 - index = 0;
6563 - if (GET_CODE (XVECEXP (op, 0, index++)) != RETURN
6564 - || GET_CODE (XVECEXP (op, 0, index++)) != USE
6565 -- || GET_CODE (XVECEXP (op, 0, index++)) != USE
6566 - || GET_CODE (XVECEXP (op, 0, index++)) != CLOBBER)
6567 - return 0;
6568 -
6569
6570 diff --git a/sys-devel/gcc/files/gcj-4.3.1-iconvlink.patch b/sys-devel/gcc/files/gcj-4.3.1-iconvlink.patch
6571 deleted file mode 100644
6572 index 8d71cf6131..0000000000
6573 --- a/sys-devel/gcc/files/gcj-4.3.1-iconvlink.patch
6574 +++ /dev/null
6575 @@ -1,17 +0,0 @@
6576 -http://gcc.gnu.org/bugzilla/show_bug.cgi?id=21206
6577 -comment #7
6578 -
6579 -Not a real nice solution, but at least it works for our non-glibc
6580 -platforms.
6581 -
6582 -
6583 ---- libjava/libgcj.spec.in
6584 -+++ libjava/libgcj.spec.in
6585 -@@ -7,6 +7,6 @@
6586 - *startfile: @THREADSTARTFILESPEC@ %(startfileorig)
6587 -
6588 - %rename lib liborig
6589 --*lib: @LD_START_STATIC_SPEC@ @LIBGCJ_SPEC@ @LD_FINISH_STATIC_SPEC@ -lm @LIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) @LIBSTDCXXSPEC@ %(liborig)
6590 -+*lib: @LD_START_STATIC_SPEC@ @LIBGCJ_SPEC@ @LD_FINISH_STATIC_SPEC@ -lm @LTLIBICONV@ @GCSPEC@ @THREADSPEC@ @ZLIBSPEC@ @SYSTEMSPEC@ %(libgcc) @LIBSTDCXXSPEC@ %(liborig)
6591 -
6592 - *jc1: @HASH_SYNC_SPEC@ @DIVIDESPEC@ @CHECKREFSPEC@ @JC1GCSPEC@ @EXCEPTIONSPEC@ @BACKTRACESPEC@ @IEEESPEC@ -fkeep-inline-functions
6593
6594 diff --git a/sys-devel/gcc/files/interix-3.5-stdint.h b/sys-devel/gcc/files/interix-3.5-stdint.h
6595 deleted file mode 100644
6596 index ee9289f69a..0000000000
6597 --- a/sys-devel/gcc/files/interix-3.5-stdint.h
6598 +++ /dev/null
6599 @@ -1,301 +0,0 @@
6600 -/*
6601 - * Copyright (c) 2002 Caldera International, Inc. All Rights Reserved.
6602 - *
6603 - * THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
6604 - * Caldera International, Inc.
6605 - *
6606 - * The copyright notice above does not evidence any actual or intended
6607 - * publication of such source code.
6608 - */
6609 -
6610 -#ifndef _STDINT_H
6611 -#define _STDINT_H
6612 -
6613 -#ifndef _SIZE_T_DEFINED
6614 -#if defined (lp64) || defined(_WIN64)
6615 -typedef unsigned __int64 size_t;
6616 -#else
6617 -typedef unsigned int size_t;
6618 -#endif
6619 -#define _SIZE_T_DEFINED
6620 -#define _SIZE_T
6621 -#endif/*_SIZE_T_DEFINED*/
6622 -
6623 -#ifndef _SSIZE_T_DEFINED
6624 -#if (defined(lp64) || defined(_WIN64))
6625 -typedef __int64 ssize_t;
6626 -#else
6627 -typedef int ssize_t;
6628 -#endif
6629 -#define _SSIZE_T_DEFINED
6630 -#endif/*_SIZE_T_DEFINED*/
6631 -
6632 -
6633 -#ifndef _INT8_T
6634 -#define _INT8_T
6635 -typedef signed char int8_t;
6636 -#endif
6637 -#ifndef _INT_LEAST8_T
6638 -#define _INT_LEAST8_T
6639 -typedef char int_least8_t;
6640 -#endif
6641 -#ifndef _INT_FAST8_T
6642 -#define _INT_FAST8_T
6643 -typedef int int_fast8_t;
6644 -#endif
6645 -
6646 -#ifndef _UINT8_T
6647 -#define _UINT8_T
6648 -typedef unsigned char uint8_t;
6649 -#endif
6650 -#ifndef _UINT_LEAST8_T
6651 -#define _UINT_LEAST8_T
6652 -typedef unsigned char uint_least8_t;
6653 -#endif
6654 -#ifndef _UINT_FAST8_T
6655 -#define _UINT_FAST8_T
6656 -typedef unsigned int uint_fast8_t;
6657 -#endif
6658 -
6659 -#ifndef _INT16_T
6660 -#define _INT16_T
6661 -typedef short int16_t;
6662 -#endif
6663 -#ifndef _INT_LEAST16_T
6664 -#define _INT_LEAST16_T
6665 -typedef short int_least16_t;
6666 -#endif
6667 -#ifndef _INT_FAST16_T
6668 -#define _INT_FAST16_T
6669 -typedef int int_fast16_t;
6670 -#endif
6671 -
6672 -#ifndef _UINT16_T
6673 -#define _UINT16_T
6674 -typedef unsigned short uint16_t;
6675 -#endif
6676 -#ifndef _UINT_LEAST16_T
6677 -#define _UINT_LEAST16_T
6678 -typedef unsigned short uint_least16_t;
6679 -#endif
6680 -#ifndef _UINT_FAST16_T
6681 -#define _UINT_FAST16_T
6682 -typedef unsigned int uint_fast16_t;
6683 -#endif
6684 -
6685 -#ifndef _INT32_T
6686 -#define _INT32_T
6687 -typedef int int32_t;
6688 -#endif
6689 -#ifndef _INT_LEAST32_T
6690 -#define _INT_LEAST32_T
6691 -typedef int int_least32_t;
6692 -#endif
6693 -#ifndef _INT_FAST32_T
6694 -#define _INT_FAST32_T
6695 -typedef int int_fast32_t;
6696 -#endif
6697 -
6698 -#ifndef _UINT32_T
6699 -#define _UINT32_T
6700 -typedef unsigned int uint32_t;
6701 -#endif
6702 -#ifndef _UINT_LEAST32_T
6703 -#define _UINT_LEAST32_T
6704 -typedef unsigned int uint_least32_t;
6705 -#endif
6706 -#ifndef _UINT_FAST32_T
6707 -#define _UINT_FAST32_T
6708 -typedef unsigned int uint_fast32_t;
6709 -#endif
6710 -
6711 -#if defined(lp64)
6712 -
6713 -#ifndef _INT64_T
6714 -#define _INT64_T
6715 -typedef long int64_t;
6716 -#endif
6717 -#ifndef _INT_LEAST64_T
6718 -#define _INT_LEAST64_T
6719 -typedef long int_least64_t;
6720 -#endif
6721 -#ifndef _INT_FAST64_T
6722 -#define _INT_FAST64_T
6723 -typedef long int_fast64_t;
6724 -#endif
6725 -
6726 -#ifndef _UINT64_T
6727 -#define _UINT64_T
6728 -typedef unsigned long uint64_t;
6729 -#endif
6730 -#ifndef _UINT_LEAST64_T
6731 -#define _UINT_LEAST64_T
6732 -typedef unsigned long uint_least64_t;
6733 -#endif
6734 -#ifndef _UINT_FAST64_T
6735 -#define _UINT_FAST64_T
6736 -typedef unsigned long uint_fast64_t;
6737 -#endif
6738 -
6739 -#else /*!#model(lp64)*/
6740 -
6741 -#ifndef _INT64_T
6742 -#define _INT64_T
6743 -typedef long long int64_t;
6744 -#endif
6745 -#ifndef _INT_LEAST64_T
6746 -#define _INT_LEAST64_T
6747 -typedef long long int_least64_t;
6748 -#endif
6749 -#ifndef _INT_FAST64_T
6750 -#define _INT_FAST64_T
6751 -typedef long long int_fast64_t;
6752 -#endif
6753 -
6754 -#ifndef _UINT64_T
6755 -#define _UINT64_T
6756 -typedef unsigned long long uint64_t;
6757 -#endif
6758 -#ifndef _UINT_LEAST64_T
6759 -#define _UINT_LEAST64_T
6760 -typedef unsigned long long uint_least64_t;
6761 -#endif
6762 -#ifndef _UINT_FAST64_T
6763 -#define _UINT_FAST64_T
6764 -typedef unsigned long long uint_fast64_t;
6765 -#endif
6766 -
6767 -#endif /*#model(lp64)*/
6768 -
6769 -#ifndef _INTPTR_T
6770 -#define _INTPTR_T
6771 -typedef ssize_t intptr_t;
6772 -#endif
6773 -
6774 -#ifndef _UINTPTR_T
6775 -#define _UINTPTR_T
6776 -typedef size_t uintptr_t;
6777 -#endif
6778 -
6779 -#ifndef _INTMAX_T
6780 -#define _INTMAX_T
6781 -#ifdef __GNUC__
6782 -typedef long long int intmax_t;
6783 -#else
6784 -typedef __int64 intmax_t;
6785 -#endif /*__GNUC__*/
6786 -#endif
6787 -
6788 -#ifndef _UINTMAX_T
6789 -#define _UINTMAX_T
6790 -#ifdef __GNUC__
6791 -typedef unsigned long long int uintmax_t;
6792 -#else
6793 -typedef unsigned __int64 uintmax_t;
6794 -#endif /*__GNUC__*/
6795 -#endif
6796 -
6797 -#if !defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)
6798 -
6799 -#define INT8_MAX 0x7f
6800 -#define INT16_MAX 0x7fff
6801 -#define INT32_MAX 0x7fffffff
6802 -#define INT64_MAX 0x7fffffffffffffff
6803 -
6804 -#define INT8_MIN (-INT8_MAX - 1)
6805 -#define INT16_MIN (-INT16_MAX - 1)
6806 -#define INT32_MIN (-INT32_MAX - 1)
6807 -#define INT64_MIN (-INT64_MAX - 1)
6808 -
6809 -#define UINT8_MAX 0xff
6810 -#define UINT16_MAX 0xffff
6811 -#define UINT32_MAX 0xffffffff
6812 -#define UINT64_MAX 0xffffffffffffffff
6813 -
6814 -#define INT_LEAST8_MIN INT8_MIN
6815 -#define INT_LEAST16_MIN INT16_MIN
6816 -#define INT_LEAST32_MIN INT32_MIN
6817 -#define INT_LEAST64_MIN INT64_MIN
6818 -
6819 -#define INT_LEAST8_MAX INT8_MAX
6820 -#define INT_LEAST16_MAX INT16_MAX
6821 -#define INT_LEAST32_MAX INT32_MAX
6822 -#define INT_LEAST64_MAX INT64_MAX
6823 -
6824 -#define UINT_LEAST8_MAX UINT8_MAX
6825 -#define UINT_LEAST16_MAX UINT16_MAX
6826 -#define UINT_LEAST32_MAX UINT32_MAX
6827 -#define UINT_LEAST64_MAX UINT64_MAX
6828 -
6829 -#define INT_FAST8_MIN INT32_MIN
6830 -#define INT_FAST16_MIN INT32_MIN
6831 -#define INT_FAST32_MIN INT32_MIN
6832 -#define INT_FAST64_MIN INT64_MIN
6833 -
6834 -#define INT_FAST8_MAX INT32_MAX
6835 -#define INT_FAST16_MAX INT32_MAX
6836 -#define INT_FAST32_MAX INT32_MAX
6837 -#define INT_FAST64_MAX INT64_MAX
6838 -
6839 -#define UINT_FAST8_MAX UINT32_MAX
6840 -#define UINT_FAST16_MAX UINT32_MAX
6841 -#define UINT_FAST32_MAX UINT32_MAX
6842 -#define UINT_FAST64_MAX UINT64_MAX
6843 -
6844 -#if defined(lp64)
6845 -
6846 -#define INTPTR_MIN INT64_MIN
6847 -#define INTPTR_MAX INT64_MAX
6848 -#define UINTPTR_MAX UINT64_MAX
6849 -
6850 -#define PTRDIFF_MIN INT64_MIN
6851 -#define PTRDIFF_MAX INT64_MAX
6852 -
6853 -#define SIZE_MAX INT64_MAX
6854 -
6855 -#else /*!#model(lp64)*/
6856 -
6857 -#define INTPTR_MIN INT32_MIN
6858 -#define INTPTR_MAX INT32_MAX
6859 -#define UINTPTR_MAX UINT32_MAX
6860 -
6861 -#define PTRDIFF_MIN INT32_MIN
6862 -#define PTRDIFF_MAX INT32_MAX
6863 -
6864 -#define SIZE_MAX INT32_MAX
6865 -
6866 -#endif /*#model(lp64)*/
6867 -
6868 -#define INTMAX_MIN INT64_MIN
6869 -#define INTMAX_MAX INT64_MAX
6870 -#define UINTMAX_MAX UINT64_MAX
6871 -
6872 -#define SIG_ATOMIC_MIN INT32_MIN
6873 -#define SIG_ATOMIC_MAX INT32_MAX
6874 -
6875 -#define WCHAR_MIN INT32_MIN
6876 -#define WCHAR_MAX INT32_MAX
6877 -
6878 -#define WINT_MIN INT32_MIN
6879 -#define WINT_MAX INT32_MAX
6880 -
6881 -#endif /*!defined(__cplusplus) || defined(__STDC_LIMIT_MACROS)*/
6882 -
6883 -#if !defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)
6884 -
6885 -#define INT8_C(v) v
6886 -#define INT16_C(v) v
6887 -#define INT32_C(v) v
6888 -#define INT64_C(v) v##LL
6889 -
6890 -#define UINT8_C(v) v##U
6891 -#define UINT16_C(v) v##U
6892 -#define UINT32_C(v) v##U
6893 -#define UINT64_C(v) v##ULL
6894 -
6895 -#define INTMAX_C(v) v##LL
6896 -#define UINTMAX_C(v) v##ULL
6897 -
6898 -#endif /*!defined(__cplusplus) || defined(__STDC_CONSTANT_MACROS)*/
6899 -
6900 -#endif /*_STDINT_H*/
6901
6902 diff --git a/sys-devel/gcc/files/mkinfodir b/sys-devel/gcc/files/mkinfodir
6903 deleted file mode 100755
6904 index a62840ee86..0000000000
6905 --- a/sys-devel/gcc/files/mkinfodir
6906 +++ /dev/null
6907 @@ -1,233 +0,0 @@
6908 -#!/bin/bash
6909 -# $Id: mkinfodir,v 1.1 2001/09/01 07:56:19 drobbins Exp $
6910 -# Generate the top-level Info node, given a directory of Info files
6911 -# and (optionally) a skeleton file. The output will be suitable for a
6912 -# top-level dir file. The skeleton file contains info topic names in the
6913 -# order they should appear in the output. There are three special
6914 -# lines that alter the behavior: a line consisting of just "--" causes
6915 -# the next line to be echoed verbatim to the output. A line
6916 -# containing just "%%" causes all the remaining filenames (wildcards
6917 -# allowed) in the rest of the file to be ignored. A line containing
6918 -# just "!!" exits the script when reached (unless preceded by a line
6919 -# containing just "--"). Once the script reaches the end of the
6920 -# skeleton file, it goes through the remaining files in the directory
6921 -# in order, putting their entries at the end. The script will use the
6922 -# ENTRY information in each info file if it exists. Otherwise it will
6923 -# make a minimal entry.
6924 -
6925 -# sent by Jeffrey Osier <jeffrey@××××××.com>, who thinks it came from
6926 -# zoo@×××××××××.com (david d `zoo' zuhn)
6927 -
6928 -# modified 7 April 1995 by Joe Harrington <jh@××××××××××××××××.gov> to
6929 -# take special flags
6930 -
6931 -INFODIR=$1
6932 -if [ $# = 2 ] ; then
6933 - SKELETON=$2
6934 -else
6935 - SKELETON=/dev/null
6936 -fi
6937 -
6938 -skip=
6939 -
6940 -if [ $# -gt 2 ] ; then
6941 - echo usage: $0 info-directory [ skeleton-file ] 1>&2
6942 - exit 1
6943 -elif [ -z "${INFODIR}" ] ; then
6944 - INFODIR="%%DEFAULT_INFO_DIR%%"
6945 -else
6946 - true
6947 -fi
6948 -
6949 -if [ ! -d ${INFODIR} ] ; then
6950 - echo "$0: first argument must specify a directory"
6951 - exit 1
6952 -fi
6953 -
6954 -### output the dir header
6955 -echo "-*- Text -*-"
6956 -echo "This file was generated automatically by $0."
6957 -echo "This version was generated on `date`"
6958 -echo "by `whoami`@`hostname` for `(cd ${INFODIR}; pwd)`"
6959 -
6960 -cat << moobler
6961 -\$Id: mkinfodir,v 1.1 2001/09/01 07:56:19 drobbins Exp $
6962 -This is the file .../info/dir, which contains the topmost node of the
6963 -Info hierarchy. The first time you invoke Info you start off
6964 -looking at that node, which is (dir)Top.
6965 -
6966 -File: dir Node: Top This is the top of the INFO tree
6967 -
6968 - This (the Directory node) gives a menu of major topics.
6969 - Typing "q" exits, "?" lists all Info commands, "d" returns here,
6970 - "h" gives a primer for first-timers,
6971 - "mEmacs<Return>" visits the Emacs topic, etc.
6972 -
6973 - In Emacs, you can click mouse button 2 on a menu item or cross reference
6974 - to select it.
6975 -
6976 -* Menu: The list of major topics begins on the next line.
6977 -
6978 -moobler
6979 -
6980 -### go through the list of files in the skeleton. If an info file
6981 -### exists, grab the ENTRY information from it. If an entry exists
6982 -### use it, otherwise create a minimal dir entry.
6983 -###
6984 -### Then remove that file from the list of existing files. If any
6985 -### additional files remain (ones that don't have a skeleton entry),
6986 -### then generate entries for those in the same way, putting the info for
6987 -### those at the end....
6988 -
6989 -infofiles=`(cd ${INFODIR}; /bin/ls | grep -v '\-[0-9]*\.gz$' | grep -v '\-[0-9]*$' | egrep -v '^dir$|^dir\.info$|^dir\.orig$')`
6990 -
6991 -# echoing gets clobbered by backquotes; we do it the hard way...
6992 -lines=`wc $SKELETON | awk '{print $1}'`
6993 -line=1
6994 -while [ $lines -ge $line ] ; do
6995 - # Read one line from the file. This is so that we can echo lines with
6996 - # whitespace and quoted characters in them.
6997 - fileline=`awk NR==$line $SKELETON`
6998 -
6999 - # flag fancy features
7000 - if [ ! -z "$echoline" ] ; then # echo line
7001 - echo "$fileline"
7002 - fileline=
7003 - echoline=
7004 - elif [ "${fileline}" = "--" ] ; then # should we echo the next line?
7005 - echoline=1
7006 - elif [ "${fileline}" = "%%" ] ; then # eliminate remaining files from dir?
7007 - skip=1
7008 - elif [ "${fileline}" = "!!" ] ; then # quit now
7009 - exit 0
7010 - fi
7011 -
7012 - # handle files if they exist
7013 - for file in $fileline"" ; do # expand wildcards ("" handles blank lines)
7014 -
7015 - fname=
7016 -
7017 - if [ -z "$echoline" -a ! -z "$file" ] ; then
7018 -
7019 - # Find the file to operate upon. Check both possible names.
7020 - infoname=`echo $file | sed 's/\.gz$//'`
7021 - infoname=`echo $infoname | sed 's/\.info$//'`
7022 - noext=
7023 - ext=
7024 - if [ -f ${INFODIR}/$infoname ] ; then
7025 - noext=$infoname
7026 - fi
7027 - if [ -f ${INFODIR}/${infoname}.info ] ; then
7028 - ext=${infoname}.info
7029 - fi
7030 - if [ -f ${INFODIR}/${infoname}.info.gz ] ; then
7031 - ext=${infoname}.info.gz
7032 - fi
7033 - # If it exists with both names take what was said in the file.
7034 - if [ ! -z "$ext" -a ! -z "$noext" ]; then
7035 - fname=$file
7036 - warn="### Warning: $ext and $noext both exist! Using ${file}. ###"
7037 - elif [ ! \( -z "$ext" -a -z "$noext" \) ]; then
7038 - # just take the name if it exists only once
7039 - fname=${noext}${ext}
7040 - fi
7041 -
7042 - # if we found something and aren't skipping, do the entry
7043 - if [ ! -z "$fname" ] ; then
7044 - if [ -z "$skip" ] ; then
7045 -
7046 - if [ ! -z "$warn" ] ; then # issue any warning
7047 - echo $warn
7048 - warn=
7049 - fi
7050 - if [ "${fname##*.}" = "gz" ] ; then
7051 - entry=`zcat ${INFODIR}/${fname} | sed -e '1,/START-INFO-DIR-ENTRY/d' \
7052 - -e '/END-INFO-DIR-ENTRY/,$d' `
7053 - else
7054 - entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
7055 - -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/$fname`
7056 - fi
7057 - if [ ! -z "${entry}" ] ; then
7058 - echo "${entry}"
7059 - else
7060 - echo "* ${infoname}: (${infoname})."
7061 - fi
7062 - fi
7063 -
7064 - # remove the name from the directory listing
7065 - infofiles=`echo "" ${infofiles} "" | sed -e "s/ ${fname} / /" -e "s/ / /g"`
7066 -
7067 - fi
7068 -
7069 - fi
7070 -
7071 - done
7072 -
7073 - line=`expr $line + 1`
7074 -done
7075 -
7076 -if [ -z "${infofiles}" ] ; then
7077 - exit 0
7078 -elif [ $lines -gt 0 ]; then
7079 - echo
7080 -fi
7081 -
7082 -# Sort remaining files by INFO-DIR-SECTION.
7083 -prevsect=
7084 -filesectdata=`(cd ${INFODIR}; fgrep INFO-DIR-SECTION /dev/null ${infofiles} | \
7085 - fgrep -v 'INFO-DIR-SECTION Miscellaneous' | \
7086 - sort -t: -k2 -k1 | tr ' ' '_')`
7087 -for sectdata in ${filesectdata}; do
7088 - file=`echo ${sectdata} | cut -d: -f1`
7089 - section=`sed -n -e 's/^INFO-DIR-SECTION //p' ${INFODIR}/${file}`
7090 - infofiles=`echo "" ${infofiles} "" | sed -e "s/ ${file} / /" -e "s/ / /g"`
7091 -
7092 - if [ "${prevsect}" != "${section}" ] ; then
7093 - if [ ! -z "${prevsect}" ] ; then
7094 - echo ""
7095 - fi
7096 - echo "${section}"
7097 - prevsect="${section}"
7098 - fi
7099 - infoname=`echo $file | sed 's/\.gz$//'`
7100 - infoname=`echo $infoname | sed 's/\.info$//'`
7101 - if [ "${file##*.}" = "gz" ] ; then
7102 - entry=`zcat ${INFODIR}/$file | sed -e '1,/START-INFO-DIR-ENTRY/d' \
7103 - -e '/END-INFO-DIR-ENTRY/,$d' `
7104 - else
7105 - entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
7106 - -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/$file`
7107 - fi
7108 - if [ ! -z "${entry}" ] ; then
7109 - echo "${entry}"
7110 - elif [ ! -d "${INFODIR}/${file}" ] ; then
7111 - echo "* ${infoname}: (${infoname})."
7112 - fi
7113 -done
7114 -
7115 -# Process miscellaneous files.
7116 -for file in ${infofiles}; do
7117 - if [ ! -z "${prevsect}" ] ; then
7118 - echo ""
7119 - echo "Miscellaneous"
7120 - prevsect=""
7121 - fi
7122 -
7123 - infoname=`echo $file | sed 's/\.gz$//'`
7124 - infoname=`echo $infoname | sed 's/\.info$//'`
7125 - if [ "${file##*.}" = "gz" ] ; then
7126 - entry=`zcat ${INFODIR}/${file} | sed -e '1,/START-INFO-DIR-ENTRY/d' \
7127 - -e '/END-INFO-DIR-ENTRY/,$d'`
7128 - else
7129 - entry=`sed -e '1,/START-INFO-DIR-ENTRY/d' \
7130 - -e '/END-INFO-DIR-ENTRY/,$d' ${INFODIR}/$file`
7131 - fi
7132 -
7133 -
7134 - if [ ! -z "${entry}" ] ; then
7135 - echo "${entry}"
7136 - elif [ ! -d "${INFODIR}/${file}" ] ; then
7137 - echo "* ${infoname}: (${infoname})."
7138 - fi
7139 -done
7140 -
7141
7142 diff --git a/sys-devel/gcc/files/pro-police-docs.patch b/sys-devel/gcc/files/pro-police-docs.patch
7143 deleted file mode 100644
7144 index 091ea44ef0..0000000000
7145 --- a/sys-devel/gcc/files/pro-police-docs.patch
7146 +++ /dev/null
7147 @@ -1,74 +0,0 @@
7148 -Index: gcc/doc/invoke.texi
7149 -===================================================================
7150 -RCS file: /cvsroot/gcc/gcc/gcc/doc/invoke.texi,v
7151 -retrieving revision 1.364
7152 -diff -c -3 -p -r1.364 invoke.texi
7153 -*** gcc/doc/invoke.texi 21 Nov 2003 11:42:58 -0000 1.364
7154 ---- gcc/doc/invoke.texi 22 Nov 2003 08:12:35 -0000
7155 -*************** in the following sections.
7156 -*** 228,234 ****
7157 - -Wno-multichar -Wnonnull -Wpacked -Wpadded @gol
7158 - -Wparentheses -Wpointer-arith -Wredundant-decls @gol
7159 - -Wreturn-type -Wsequence-point -Wshadow @gol
7160 -! -Wsign-compare -Wstrict-aliasing @gol
7161 - -Wswitch -Wswitch-default -Wswitch-enum @gol
7162 - -Wsystem-headers -Wtrigraphs -Wundef -Wuninitialized @gol
7163 - -Wunknown-pragmas -Wunreachable-code @gol
7164 ---- 228,234 ----
7165 - -Wno-multichar -Wnonnull -Wpacked -Wpadded @gol
7166 - -Wparentheses -Wpointer-arith -Wredundant-decls @gol
7167 - -Wreturn-type -Wsequence-point -Wshadow @gol
7168 -! -Wsign-compare -Wstack-protector -Wstrict-aliasing @gol
7169 - -Wswitch -Wswitch-default -Wswitch-enum @gol
7170 - -Wsystem-headers -Wtrigraphs -Wundef -Wuninitialized @gol
7171 - -Wunknown-pragmas -Wunreachable-code @gol
7172 -*************** in the following sections.
7173 -*** 681,686 ****
7174 ---- 681,687 ----
7175 - -fshort-double -fshort-wchar @gol
7176 - -fverbose-asm -fpack-struct -fstack-check @gol
7177 - -fstack-limit-register=@var{reg} -fstack-limit-symbol=@var{sym} @gol
7178 -+ -fstack-protector -fstack-protector-all @gol
7179 - -fargument-alias -fargument-noalias @gol
7180 - -fargument-noalias-global -fleading-underscore @gol
7181 - -ftls-model=@var{model} @gol
7182 -*************** effectively. Often, the problem is that
7183 -*** 3014,3019 ****
7184 ---- 3015,3024 ----
7185 - complex; GCC will refuse to optimize programs when the optimization
7186 - itself is likely to take inordinate amounts of time.
7187 -
7188 -+ @item -Wstack-protector
7189 -+ @opindex Wstack-protector
7190 -+ Warn when not issuing stack smashing protection for some reason
7191 -+
7192 - @item -Werror
7193 - @opindex Werror
7194 - Make all warnings into errors.
7195 -*************** and grows downwards, you can use the fla
7196 -*** 11474,11479 ****
7197 ---- 11479,11502 ----
7198 - @option{-fstack-limit-symbol=__stack_limit} and
7199 - @option{-Wl,--defsym,__stack_limit=0x7ffe0000} to enforce a stack limit
7200 - of 128KB@. Note that this may only work with the GNU linker.
7201 -+
7202 -+ @item -fstack-protector
7203 -+ @item -fstack-protector-all
7204 -+ @opindex fstack-protector
7205 -+ @opindex fstack-protector-all
7206 -+ @opindex fno-stack-protector
7207 -+ Generate code to protect an application from a stack smashing
7208 -+ attack. The features are (1) the insertion of random value next to the
7209 -+ frame pointer to detect the integrity of the stack, (2) the reordering
7210 -+ of local variables to place buffers after pointers to avoid the
7211 -+ corruption of pointers that could be used to further corrupt arbitrary
7212 -+ memory locations, (3) the copying of pointers in function arguments to
7213 -+ an area preceding local variable buffers to prevent the corruption of
7214 -+ pointers that could be used to further corrupt arbitrary memory
7215 -+ locations, and the (4) omission of instrumentation code from some
7216 -+ functions to decrease the performance overhead. If the integrity
7217 -+ would be broken, the program is aborted. If no-stack-protector is
7218 -+ specified, instrumentation codes are generated at every functions.
7219 -
7220 - @cindex aliasing of parameters
7221 - @cindex parameters, aliased
7222
7223 diff --git a/sys-devel/gcc/files/scan_libgcc_linked_ssp.sh b/sys-devel/gcc/files/scan_libgcc_linked_ssp.sh
7224 deleted file mode 100755
7225 index 35119e5d93..0000000000
7226 --- a/sys-devel/gcc/files/scan_libgcc_linked_ssp.sh
7227 +++ /dev/null
7228 @@ -1,42 +0,0 @@
7229 -#!/bin/bash
7230 -# Copyright 1999-2004 Gentoo Foundation
7231 -# Distributed under the terms of the GNU General Public License v2
7232 -# Author: Martin Schlemmer <azarah@g.o>
7233 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gcc/files/scan_libgcc_linked_ssp.sh,v 1.4 2007/05/05 05:13:15 vapier Exp $
7234 -
7235 -usage() {
7236 -cat << "USAGE_END"
7237 -Usage: can_libgcc_linked_ssp.sh
7238 -
7239 - This scans the system for files that contains the __guard symbol, that was
7240 - linked against libgcc.
7241 -
7242 -
7243 -USAGE_END
7244 -
7245 - exit 1
7246 -}
7247 -
7248 -if [ "$#" -ne 0 ]
7249 -then
7250 - usage
7251 -fi
7252 -
7253 -source /etc/profile || exit 1
7254 -source /etc/init.d/functions.sh || exit 1
7255 -
7256 -AWKDIR="$(portageq envvar PORTDIR)/sys-devel/gcc/files/awk"
7257 -
7258 -if [ ! -r "${AWKDIR}/scanforssp.awk" ]
7259 -then
7260 - eerror "${0##*/}: ${AWKDIR}/scanforssp.awk does not exist!"
7261 - exit 1
7262 -fi
7263 -
7264 -einfo "Scanning system for __guard@GCC symbols..."
7265 -/bin/gawk -f "${AWKDIR}/scanforssp.awk"
7266 -
7267 -exit $?
7268 -
7269 -
7270 -# vim:ts=4
7271
7272 diff --git a/sys-devel/gcc/files/solaris-i386-ld-emulation.patch b/sys-devel/gcc/files/solaris-i386-ld-emulation.patch
7273 deleted file mode 100644
7274 index e3e8b04b5c..0000000000
7275 --- a/sys-devel/gcc/files/solaris-i386-ld-emulation.patch
7276 +++ /dev/null
7277 @@ -1,36 +0,0 @@
7278 -Since GNU ld 2.21, targets *_sol2 exist that strictly stick to the
7279 -Solaris 2 ABI. GCC enables them when 2.21 or higher was found.
7280 -Unfortunately 2.22 requires the *_sol2 targets to be used leading to a
7281 -useless toolchain upon upgrade of binutils, when gcc wasn't compiled
7282 -with 2.21 or newer yet.
7283 -
7284 -On Solaris sparc, this problem is not so severe, since gcc won't pass an
7285 -explicit target when neither -m32 or -m64 were given. It lets binutils
7286 -decide, which's default target is fine. However, on i386, the specfile
7287 -always emits the target to the call to ld, because of the m64 && !m64.
7288 -Use m64 and m32 like the sparc specs instead, to also have ld figure out
7289 -the default target itself.
7290 -
7291 -This not only fixes the upgrade path (too late for most, unfortunately),
7292 -but also makes our toolchain a bit more resistant against switching
7293 -between versions.
7294 -
7295 ---- gcc/config/i386/sol2-10.h
7296 -+++ gcc/config/i386/sol2-10.h
7297 -@@ -131,14 +131,14 @@
7298 - #endif
7299 -
7300 - #define TARGET_LD_EMULATION "%{m64:-m " X86_64_EMULATION "}" \
7301 -- "%{!m64:-m " I386_EMULATION "} "
7302 -+ "%{m32:-m " I386_EMULATION "} "
7303 - #else
7304 - #define TARGET_LD_EMULATION ""
7305 - #endif
7306 -
7307 - #undef LINK_ARCH_SPEC
7308 - #define LINK_ARCH_SPEC TARGET_LD_EMULATION \
7309 -- "%{m64:" LINK_ARCH64_SPEC "}%{!m64:" LINK_ARCH32_SPEC "}"
7310 -+ "%{m64:" LINK_ARCH64_SPEC "}%{m32:" LINK_ARCH32_SPEC "}"
7311 -
7312 - /* We do not need to search a special directory for startup files. */
7313 - #undef MD_STARTFILE_PREFIX
7314
7315 diff --git a/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch b/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch
7316 deleted file mode 100644
7317 index f6d81040c5..0000000000
7318 --- a/sys-devel/gcc/files/stubs/gcc-3.3-htb-stub.patch
7319 +++ /dev/null
7320 @@ -1,59 +0,0 @@
7321 ---- gcc-3.3.6/gcc/c-opts.c
7322 -+++ gcc-3.3.6/gcc/c-opts.c
7323 -@@ -193,6 +193,8 @@ static void sanitize_cpp_opts PARAMS ((v
7324 - OPT("fall-virtual", CL_CXX, OPT_fall_virtual) \
7325 - OPT("falt-external-templates",CL_CXX, OPT_falt_external_templates) \
7326 - OPT("fasm", CL_ALL, OPT_fasm) \
7327 -+ OPT("fbc-strings-only", CL_ALL, OPT_fbc_strings_only) \
7328 -+ OPT("fbounds-checking", CL_ALL, OPT_fbounds_checking) \
7329 - OPT("fbuiltin", CL_ALL, OPT_fbuiltin) \
7330 - OPT("fbuiltin-", CL_ALL | CL_JOINED, OPT_fbuiltin_) \
7331 - OPT("fcheck-new", CL_CXX, OPT_fcheck_new) \
7332 -@@ -1037,6 +1039,11 @@ c_common_decode_option (argc, argv)
7333 - flag_no_asm = !on;
7334 - break;
7335 -
7336 -+ case OPT_fbounds_checking:
7337 -+ case OPT_fbc_strings_only:
7338 -+ warning ("htb stub: bounds checking is not supported");
7339 -+ break;
7340 -+
7341 - case OPT_fbuiltin:
7342 - flag_no_builtin = !on;
7343 - break;
7344 ---- gcc-3.3.6/gcc/cp/lang-options.h
7345 -+++ gcc-3.3.6/gcc/cp/lang-options.h
7346 -@@ -32,6 +32,8 @@ DEFINE_LANG_NAME ("C++")
7347 - { "-fno-alt-external-templates", "" },
7348 - { "-fansi-overloading", "" },
7349 - { "-fno-ansi-overloading", "" },
7350 -+ { "-fbounds-checking", "" },
7351 -+ { "-fno-bounds-checking", "" },
7352 - { "-fcheck-new",
7353 - N_("Check the return value of new") },
7354 - { "-fno-check-new", "" },
7355 -@@ -117,6 +119,9 @@ DEFINE_LANG_NAME ("C++")
7356 - { "-fxref",
7357 - N_("Emit cross referencing information") },
7358 - { "-fno-xref", "" },
7359 -+ { "-fbounds-checking",
7360 -+ N_("Generate array and pointer bounds checking code") },
7361 -+ { "-fno-bounds-checking", "" },
7362 -
7363 - { "-Wreturn-type",
7364 - N_("Warn about inconsistent return types") },
7365 ---- gcc-3.3.6/gcc/toplev.c
7366 -+++ gcc-3.3.6/gcc/toplev.c
7367 -@@ -1249,6 +1267,12 @@ documented_lang_options[] =
7368 - { "-fshort-wchar",
7369 - N_("Override the underlying type for wchar_t to `unsigned short'") },
7370 - { "-fno-short-wchar", "" },
7371 -+ { "-fbounds-checking",
7372 -+ N_("Generate array and pointer bounds checking code") },
7373 -+ { "-fno-bounds-checking", "" },
7374 -+ { "-fbc-strings-only",
7375 -+ N_("Restrict bounds checking to strings only") },
7376 -+ { "-fno-bc-strings-only", "" },
7377 -
7378 - { "-Wall",
7379 - N_("Enable most warning messages") },
7380
7381 diff --git a/sys-devel/gcc/files/stubs/gcc-3.3-ssp-stub.patch b/sys-devel/gcc/files/stubs/gcc-3.3-ssp-stub.patch
7382 deleted file mode 100644
7383 index ed996e7df4..0000000000
7384 --- a/sys-devel/gcc/files/stubs/gcc-3.3-ssp-stub.patch
7385 +++ /dev/null
7386 @@ -1,45 +0,0 @@
7387 ---- gcc-3.3.6/gcc/toplev.c
7388 -+++ gcc-3.3.6/gcc/toplev.c
7389 -@@ -904,6 +904,10 @@ int align_functions_log;
7390 - minimum function alignment. Zero means no alignment is forced. */
7391 - int force_align_functions_log;
7392 -
7393 -+int flag_propolice_protection = 0;
7394 -+int flag_stack_protection = 0;
7395 -+int warn_stack_protector = 0;
7396 -+
7397 - /* Table of supported debugging formats. */
7398 - static const struct
7399 - {
7400 -@@ -1188,6 +1197,10 @@ static const lang_independent_options f_
7401 - N_("Trap for signed overflow in addition / subtraction / multiplication") },
7402 - { "new-ra", &flag_new_regalloc, 1,
7403 - N_("Use graph coloring register allocation.") },
7404 -+ {"stack-protector", &flag_propolice_protection, 1,
7405 -+ N_("Enables stack protection") },
7406 -+ {"stack-protector-all", &flag_stack_protection, 1,
7407 -+ N_("Enables stack protection of every function") } ,
7408 - };
7409 -
7410 - /* Table of language-specific options. */
7411 -@@ -1547,7 +1560,9 @@ static const lang_independent_options W_
7412 - {"missing-noreturn", &warn_missing_noreturn, 1,
7413 - N_("Warn about functions which might be candidates for attribute noreturn") },
7414 - {"strict-aliasing", &warn_strict_aliasing, 1,
7415 -- N_ ("Warn about code which might break the strict aliasing rules") }
7416 -+ N_ ("Warn about code which might break the strict aliasing rules") },
7417 -+ {"stack-protector", &warn_stack_protector, 1,
7418 -+ N_("Warn when disabling stack protector for some reason")}
7419 - };
7420 -
7421 - void
7422 -@@ -5230,6 +5247,9 @@ process_options ()
7423 - /* The presence of IEEE signaling NaNs, implies all math can trap. */
7424 - if (flag_signaling_nans)
7425 - flag_trapping_math = 1;
7426 -+
7427 -+ if (flag_stack_protection || flag_propolice_protection)
7428 -+ warning ("ssp stub: stack protector is not supported");
7429 - }
7430 -
7431 - /* Initialize the compiler back end. */
7432
7433 diff --git a/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch b/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch
7434 deleted file mode 100644
7435 index 2be61a2401..0000000000
7436 --- a/sys-devel/gcc/files/stubs/gcc-3.4-htb-stub.patch
7437 +++ /dev/null
7438 @@ -1,32 +0,0 @@
7439 ---- gcc-3.4.4/gcc/c.opt
7440 -+++ gcc-3.4.4/gcc/c.opt
7441 -@@ -426,6 +426,14 @@ fasm
7442 - C ObjC C++ ObjC++
7443 - Recognize the \"asm\" keyword
7444 -
7445 -+fbounds-checking
7446 -+C
7447 -+Generate code to check bounds before indexing arrays
7448 -+
7449 -+fbc-strings-only
7450 -+C
7451 -+Restrict bounds checking to strings only
7452 -+
7453 - fbuiltin
7454 - C ObjC C++ ObjC++
7455 - Recognize built-in functions
7456 ---- gcc-3.4.4/gcc/c-opts.c
7457 -+++ gcc-3.4.4/gcc/c-opts.c
7458 -@@ -708,6 +708,12 @@ c_common_handle_option (size_t scode, co
7459 - flag_no_asm = !value;
7460 - break;
7461 -
7462 -+ case OPT_fbounds_checking:
7463 -+ case OPT_fbc_strings_only:
7464 -+ if (value)
7465 -+ warning ("htb stub: bounds checking is not supported");
7466 -+ break;
7467 -+
7468 - case OPT_fbuiltin:
7469 - flag_no_builtin = !value;
7470 - break;
7471
7472 diff --git a/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch b/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
7473 deleted file mode 100644
7474 index 3f620f30ca..0000000000
7475 --- a/sys-devel/gcc/files/stubs/gcc-3.4-ssp-stub.patch
7476 +++ /dev/null
7477 @@ -1,44 +0,0 @@
7478 ---- gcc-3.4.3/gcc/common.opt
7479 -+++ gcc-3.4.3/gcc/common.opt
7480 -@@ -152,6 +152,10 @@ Wunused-variable
7481 - Common
7482 - Warn when a variable is unused
7483 -
7484 -+Wstack-protector
7485 -+Common
7486 -+Warn when not issuing stack smashing protection for some reason
7487 -+
7488 - aux-info
7489 - Common Separate
7490 - -aux-info <file> Emit declaration information into <file>
7491 -@@ -743,6 +747,14 @@ fzero-initialized-in-bss
7492 - Common
7493 - Put zero initialized data in the bss section
7494 -
7495 -+fstack-protector
7496 -+Common
7497 -+Enables stack protection
7498 -+
7499 -+fstack-protector-all
7500 -+Common
7501 -+Enables stack protection of every function
7502 -+
7503 - g
7504 - Common JoinedOrMissing
7505 - Generate debug information in default format
7506 ---- gcc-3.4.3/gcc/opts.c
7507 -+++ gcc-3.4.3/gcc/opts.c
7508 -@@ -804,6 +807,13 @@ common_handle_option (size_t scode, cons
7509 - warn_unused_variable = value;
7510 - break;
7511 -
7512 -+ case OPT_fstack_protector:
7513 -+ case OPT_fstack_protector_all:
7514 -+ case OPT_Wstack_protector:
7515 -+ if (value)
7516 -+ warning ("ssp stub: stack protector is not supported");
7517 -+ break;
7518 -+
7519 - case OPT_aux_info:
7520 - case OPT_aux_info_:
7521 - aux_info_file_name = arg;
7522
7523 diff --git a/sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch b/sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch
7524 deleted file mode 100644
7525 index 4a515c56e2..0000000000
7526 --- a/sys-devel/gcc/files/stubs/gcc-4.0-htb-stub.patch
7527 +++ /dev/null
7528 @@ -1,32 +0,0 @@
7529 ---- gcc-4.0.0/gcc/c.opt
7530 -+++ gcc-4.0.0/gcc/c.opt
7531 -@@ -457,6 +457,14 @@ fasm
7532 - C ObjC C++ ObjC++
7533 - Recognize the \"asm\" keyword
7534 -
7535 -+fbounds-checking
7536 -+C
7537 -+Generate code to check bounds before indexing arrays
7538 -+
7539 -+fbc-strings-only
7540 -+C
7541 -+Restrict bounds checking to strings only
7542 -+
7543 - fbuiltin
7544 - C ObjC C++ ObjC++
7545 - Recognize built-in functions
7546 ---- gcc-4.0.0/gcc/c-opts.c
7547 -+++ gcc-4.0.0/gcc/c-opts.c
7548 -@@ -548,6 +549,12 @@ c_common_handle_option (size_t scode, co
7549 - flag_no_asm = !value;
7550 - break;
7551 -
7552 -+ case OPT_fbc_strings_only:
7553 -+ case OPT_fbounds_checking:
7554 -+ if (value)
7555 -+ warning ("htb stub: bounds checking is not supported");
7556 -+ break;
7557 -+
7558 - case OPT_fbuiltin:
7559 - flag_no_builtin = !value;
7560 - break;
7561
7562 diff --git a/sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch b/sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch
7563 deleted file mode 100644
7564 index 3f620f30ca..0000000000
7565 --- a/sys-devel/gcc/files/stubs/gcc-4.0-ssp-stub.patch
7566 +++ /dev/null
7567 @@ -1,44 +0,0 @@
7568 ---- gcc-3.4.3/gcc/common.opt
7569 -+++ gcc-3.4.3/gcc/common.opt
7570 -@@ -152,6 +152,10 @@ Wunused-variable
7571 - Common
7572 - Warn when a variable is unused
7573 -
7574 -+Wstack-protector
7575 -+Common
7576 -+Warn when not issuing stack smashing protection for some reason
7577 -+
7578 - aux-info
7579 - Common Separate
7580 - -aux-info <file> Emit declaration information into <file>
7581 -@@ -743,6 +747,14 @@ fzero-initialized-in-bss
7582 - Common
7583 - Put zero initialized data in the bss section
7584 -
7585 -+fstack-protector
7586 -+Common
7587 -+Enables stack protection
7588 -+
7589 -+fstack-protector-all
7590 -+Common
7591 -+Enables stack protection of every function
7592 -+
7593 - g
7594 - Common JoinedOrMissing
7595 - Generate debug information in default format
7596 ---- gcc-3.4.3/gcc/opts.c
7597 -+++ gcc-3.4.3/gcc/opts.c
7598 -@@ -804,6 +807,13 @@ common_handle_option (size_t scode, cons
7599 - warn_unused_variable = value;
7600 - break;
7601 -
7602 -+ case OPT_fstack_protector:
7603 -+ case OPT_fstack_protector_all:
7604 -+ case OPT_Wstack_protector:
7605 -+ if (value)
7606 -+ warning ("ssp stub: stack protector is not supported");
7607 -+ break;
7608 -+
7609 - case OPT_aux_info:
7610 - case OPT_aux_info_:
7611 - aux_info_file_name = arg;
7612
7613 diff --git a/sys-devel/gcc/gcc-5.4.0-r4.ebuild b/sys-devel/gcc/gcc-5.4.0-r4.ebuild
7614 index e98d8d8b50..22f5c2ae33 100644
7615 --- a/sys-devel/gcc/gcc-5.4.0-r4.ebuild
7616 +++ b/sys-devel/gcc/gcc-5.4.0-r4.ebuild
7617 @@ -54,12 +54,8 @@ src_prepare() {
7618
7619 use vanilla && return 0
7620
7621 - # make sure solaris-x64 doesn't misdetect tls support, bug #505446
7622 - #epatch "${FILESDIR}"/4.7.2/solaris-x64-tls-gnu-as.patch
7623 -
7624 # make sure 64-bits native targets don't screw up the linker paths
7625 epatch "${FILESDIR}"/no-libs-for-startfile.patch
7626 - epatch "${FILESDIR}"/${P}-libc_name_p.patch #631976
7627 if use prefix; then
7628 epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
7629 # try /usr/lib32 in 32bit profile on x86_64-linux (needs
7630
7631 diff --git a/sys-devel/gcc/gcc-6.4.0-r2.ebuild b/sys-devel/gcc/gcc-6.4.0-r2.ebuild
7632 deleted file mode 100644
7633 index cdf69fdfb8..0000000000
7634 --- a/sys-devel/gcc/gcc-6.4.0-r2.ebuild
7635 +++ /dev/null
7636 @@ -1,72 +0,0 @@
7637 -# Copyright 1999-2020 Gentoo Authors
7638 -# Distributed under the terms of the GNU General Public License v2
7639 -
7640 -EAPI="5"
7641 -
7642 -PATCH_VER="1.4"
7643 -UCLIBC_VER="1.0"
7644 -CYGWINPORTS_GITREV="a03d77536f40d1a6335b6d313a4e4a4dff38ce66" # gcc-6.4.0-3
7645 -
7646 -inherit eutils toolchain flag-o-matic
7647 -
7648 -KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
7649 -
7650 -RDEPEND=""
7651 -DEPEND="${RDEPEND}
7652 - !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )
7653 - kernel_linux? ( >=${CATEGORY}/binutils-2.20 )
7654 - kernel_Darwin? ( ${CATEGORY}/binutils-apple )"
7655 -
7656 -if [[ ${CATEGORY} != cross-* ]] ; then
7657 - PDEPEND="${PDEPEND} !prefix? ( elibc_glibc? ( >=sys-libs/glibc-2.13 ) )"
7658 -fi
7659 -
7660 -src_prepare() {
7661 - toolchain_src_prepare
7662 -
7663 - use vanilla && return 0
7664 -
7665 - # make sure 64-bits native targets don't screw up the linker paths
7666 - epatch "${FILESDIR}"/no-libs-for-startfile.patch
7667 - if use prefix; then
7668 - epatch "${FILESDIR}"/4.5.2/prefix-search-dirs.patch
7669 - # try /usr/lib32 in 32bit profile on x86_64-linux (needs
7670 - # --enable-multilib), but this does make sense in prefix only
7671 - epatch "${FILESDIR}"/${PN}-4.8.3-linux-x86-on-amd64.patch
7672 - fi
7673 -
7674 - # make it have correct install_names on Darwin
7675 - epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch
7676 -}
7677 -
7678 -src_configure() {
7679 - local myconf=()
7680 - case ${CTARGET}:" ${USE} " in
7681 - powerpc*-darwin*)
7682 - # bug #381179
7683 - filter-flags "-mcpu=*" "-mtune=*"
7684 - ;;
7685 - *-solaris*)
7686 - # todo: some magic for native vs. GNU linking?
7687 - myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile )
7688 - ;;
7689 - i[34567]86-*-linux*:*" prefix "*)
7690 - # to allow the linux-x86-on-amd64.patch become useful, we need
7691 - # to enable multilib, even if there is just one multilib option.
7692 - myconf+=( --enable-multilib )
7693 - if [[ ${CBUILD:-${CHOST}} == "${CHOST}" ]]; then
7694 - # we might be on x86_64-linux, but don't do cross-compile, so
7695 - # tell the host-compiler to really create 32bits (for stage1)
7696 - # (real x86-linux-gcc also accept -m32).
7697 - append-flags -m32
7698 - fi
7699 - ;;
7700 - esac
7701 -
7702 - # Since GCC 4.1.2 some non-posix (?) /bin/sh compatible code is used, at
7703 - # least on Solaris, and AIX /bin/sh is way too slow,
7704 - # so force it to use $BASH (that portage uses) - it can't be EPREFIX
7705 - # in case that doesn't exist yet
7706 - export CONFIG_SHELL="${CONFIG_SHELL:-${BASH}}"
7707 - toolchain_src_configure "${myconf[@]}"
7708 -}
7709
7710 diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml
7711 index 51f143604e..7b98f1a1c7 100644
7712 --- a/sys-devel/gcc/metadata.xml
7713 +++ b/sys-devel/gcc/metadata.xml
7714 @@ -20,7 +20,6 @@
7715 <flag name="libssp">Build SSP support into a dedicated library rather than use the
7716 code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag>
7717 <flag name="mpx">Enable support for Intel Memory Protection Extensions (MPX)</flag>
7718 - <flag name="mudflap">Add support for mudflap, a pointer use checking library</flag>
7719 <flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag>
7720 <flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag>
7721 <flag name="objc">Build support for the Objective C code language</flag>
7722 @@ -28,7 +27,6 @@
7723 <flag name="objc-gc">Build support for the Objective C code language Garbage
7724 Collector</flag>
7725 <flag name="pgo">Build GCC using Profile Guided Optimization (PGO)</flag>
7726 - <flag name="regression-test">Run the testsuite and install the results (requires FEATURES=test)</flag>
7727 <flag name="sanitize">Build support for various sanitizer functions (ASAN/TSAN/etc...)</flag>
7728 <flag name="ssp">Build packages with stack smashing protector on by default</flag>
7729 <flag name="systemtap">enable systemtap static probe points</flag>