1 |
commit: 5fe6decc07e5456ce9fd4c86ad1066eea10c146b |
2 |
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Dec 27 11:23:09 2020 +0000 |
4 |
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Dec 27 11:23:09 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=5fe6decc |
7 |
|
8 |
sys-devel/gcc: drop ~m68k-mint |
9 |
|
10 |
Package-Manager: Portage-3.0.12-prefix, Repoman-3.0.2 |
11 |
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org> |
12 |
|
13 |
sys-devel/gcc/Manifest | 1 - |
14 |
sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint2.patch | 33 - |
15 |
sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint3.patch | 211 ---- |
16 |
sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint2.patch | 30 - |
17 |
sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint3.patch | 14 - |
18 |
sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint1.patch | 335 ------- |
19 |
sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint2.patch | 1193 ---------------------- |
20 |
sys-devel/gcc/files/4.7.2/mint-unroll.patch | 13 - |
21 |
sys-devel/gcc/files/4.7.2/mint1.patch | 1220 ----------------------- |
22 |
sys-devel/gcc/files/4.7.2/mint2.patch | 44 - |
23 |
sys-devel/gcc/files/4.7.2/mint3.patch | 335 ------- |
24 |
sys-devel/gcc/files/4.7.2/pr52391.patch | 110 -- |
25 |
sys-devel/gcc/files/4.7.2/pr52714.patch | 75 -- |
26 |
sys-devel/gcc/files/4.7.2/pr52773.patch | 70 -- |
27 |
sys-devel/gcc/files/gcc-4.2.3-mint2.patch | 571 ----------- |
28 |
sys-devel/gcc/gcc-4.2.4-r2.ebuild | 9 +- |
29 |
sys-devel/gcc/gcc-4.7.3-r1.ebuild | 17 +- |
30 |
sys-devel/gcc/gcc-4.8.5-r1.ebuild | 17 +- |
31 |
sys-devel/gcc/gcc-4.9.4.ebuild | 17 +- |
32 |
sys-devel/gcc/gcc-5.4.0-r4.ebuild | 17 +- |
33 |
sys-devel/gcc/metadata.xml | 4 + |
34 |
21 files changed, 9 insertions(+), 4327 deletions(-) |
35 |
|
36 |
diff --git a/sys-devel/gcc/Manifest b/sys-devel/gcc/Manifest |
37 |
index a1d6aa55a6..c40ee6a03c 100644 |
38 |
--- a/sys-devel/gcc/Manifest |
39 |
+++ b/sys-devel/gcc/Manifest |
40 |
@@ -4,7 +4,6 @@ DIST gcc-10.1.0.tar.xz 74591240 BLAKE2B d64cf01beaaff7af9e7d5b1d5e6fdfb37cce5667 |
41 |
DIST gcc-4.1.2-patches-1.5.tar.bz2 53576 BLAKE2B 16dcbf8bac85c3e95a8526ffd504f298ac09fbd79d8ee9f633782ffcd177eb0de256dc8ff36d45dc40dd8582b712e2ea0cd3b2063e3205d51cc022ad7befa7cc SHA512 3c7c15f740ec80aaa6f9c1ad77daeb2a2527f1719fbcc5d96d956e1fe1f24da961b1b030cf2bb631f1a0cc970f6462823e9a78441c9fd6b57f3645b04cd6a362 |
42 |
DIST gcc-4.1.2-uclibc-patches-1.0.tar.bz2 20980 BLAKE2B cfc7dd4c7a0b1ed80c491d4ad56b05b05ff308fdbed2faa1b9f15b10c0f7834ee4ffcb0df1619f959f7a1a5f315305b550665c232404a8a3306e3e615539a0c8 SHA512 57789f4236a3085136afa83be3cef677bd813afd258d67bfdbecd2058f497cd459366d5515044c0208ab753946dc951dac6a3889752ca6dae836d837c22ce33b |
43 |
DIST gcc-4.1.2.tar.bz2 39707720 BLAKE2B 966b6a64c118456c7fb66eb2ad0dd84b1d53ad88dcbd146f446ef097a6975f5d6a7f1bcbbc4bfcd4e48b00eeb8054728e412db3d9818cff1f195e37859a4e510 SHA512 b97d3b72a3b0355611d5090b2c715b7a774f0e466a89326a0226c2809d12dfafb2d7c5a7af54bd5e00c135bbb6596f535e1a484740f7f1f691e8a57e6f0425cc |
44 |
-DIST gcc-4.2.3-mint.patch 786101 BLAKE2B 009b085bf883849b3ce6b9387a831348799a76676804b4e9eb572f167373dc8d2b53f8f0dcff22fccdcd2d68092ae92a701c4a521c84b8bedac613064070f60e SHA512 b12bc5c70c9cd6f9fa15f94132e972405f6693d001f4cbb5c902edba4e8a3de6bc1beb3746984fa5b1c268f5f904f6ffee82ac67ea6201cd7a48afe30257c1ce |
45 |
DIST gcc-4.2.4-patches-1.3.tar.bz2 24723 BLAKE2B 55b9d4f1ca80327f14fff35d6184e915502ea248bb2aae823e749c88a20c680b20ce3dada732c699b1ece9dbeb5a6bc7f5b610a074c924736bd9e5983de06c7d SHA512 fc1ad5debf0ba6a755758ff4e2e1b41f3ac753b4a9c600c1525ac99a8f204c511257ee57fa287ff8296fe563859c931f8d5ca252f85656dcf7436571c1c87a06 |
46 |
DIST gcc-4.2.4-uclibc-patches-1.0.tar.bz2 19167 BLAKE2B bf2bcc9ece9096cf7fda9999c56073774072fa03e5dbf389a617888b2269bc79a7cfb68a6e26da66dedce9f954a1766ed21bbdd907b747e9fb5ea3a0fbbb6474 SHA512 5545cfe6bfa7ab9a69a474cc051cc8744380077dcc193afefeb455e959e408a5e4dfd1adde5357886c7f598835400273ef80ad5c14976c0552b44f5cd48704ed |
47 |
DIST gcc-4.2.4.tar.bz2 44025458 BLAKE2B 1d9645298dbbb1aba7b2957acf5b9839bd702a85120aa82d4cada0e4ea68a1d633422d8fcedc405504768e2f932e4b9d1a70a86da0b8efa5fc923b786ebc259f SHA512 c6e3e4fce1d27d0c56ab24f4809367d9329b620b7c124e88de190f2ea2ae57b5e06d0bda85c5a74237a4f94ddba53dc91faea0611fff7b19ad720edc312cb0d9 |
48 |
|
49 |
diff --git a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint2.patch b/sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint2.patch |
50 |
deleted file mode 100644 |
51 |
index f17ae41a3e..0000000000 |
52 |
--- a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint2.patch |
53 |
+++ /dev/null |
54 |
@@ -1,33 +0,0 @@ |
55 |
-Alan Hourihane |
56 |
-http://bugs.gentoo.org/show_bug.cgi?id=268343 |
57 |
- |
58 |
---- libiberty/configure.ac.old 2008-10-08 21:54:20.000000000 +0100 |
59 |
-+++ libiberty/configure.ac 2008-10-08 21:55:07.000000000 +0100 |
60 |
-@@ -203,6 +203,7 @@ |
61 |
- frag= |
62 |
- case "${host}" in |
63 |
- *-*-cygwin*) ;; |
64 |
-+ *-*-mint*) ;; |
65 |
- alpha*-*-linux*) frag=mh-elfalphapic ;; |
66 |
- arm*-*-*) frag=mh-armpic ;; |
67 |
- hppa*-*-*) frag=mh-papic ;; |
68 |
---- libiberty/configure.old 2008-10-08 21:54:15.000000000 +0100 |
69 |
-+++ libiberty/configure 2008-10-08 21:54:54.000000000 +0100 |
70 |
-@@ -3715,6 +3715,7 @@ |
71 |
- frag= |
72 |
- case "${host}" in |
73 |
- *-*-cygwin*) ;; |
74 |
-+ *-*-mint*) ;; |
75 |
- alpha*-*-linux*) frag=mh-elfalphapic ;; |
76 |
- arm*-*-*) frag=mh-armpic ;; |
77 |
- hppa*-*-*) frag=mh-papic ;; |
78 |
---- gcc/Makefile.in.old 2008-10-08 22:04:03.000000000 +0100 |
79 |
-+++ gcc/Makefile.in 2008-10-08 22:04:29.000000000 +0100 |
80 |
-@@ -1567,6 +1567,7 @@ |
81 |
- cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS) |
82 |
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) cc1-checksum.o \ |
83 |
- $(BACKEND) $(LIBS) $(GMPLIBS) |
84 |
-+ stack -S 3 $@ |
85 |
- |
86 |
- # |
87 |
- # Build libgcc.a. |
88 |
|
89 |
diff --git a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint3.patch b/sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint3.patch |
90 |
deleted file mode 100644 |
91 |
index d8bfb2d7d8..0000000000 |
92 |
--- a/sys-devel/gcc/files/4.3.2/gcc-4.3.2-mint3.patch |
93 |
+++ /dev/null |
94 |
@@ -1,211 +0,0 @@ |
95 |
-Alan Hourihane |
96 |
-http://bugs.gentoo.org/show_bug.cgi?id=268343 |
97 |
- |
98 |
-diff -aurN gcc-4.2.3/libtool.m4 gcc-4.2.3.mint/libtool.m4 |
99 |
---- gcc-4.2.3/libtool.m4 Tue Apr 8 14:25:06 2008 |
100 |
-+++ gcc-4.2.3.mint/libtool.m4 Tue Apr 8 14:26:46 2008 |
101 |
-@@ -317,6 +317,12 @@ |
102 |
- lt_cv_sys_max_cmd_len=8192; |
103 |
- ;; |
104 |
- |
105 |
-+ mint*) |
106 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
107 |
-+ # healthy for this platform. Let's restrict it to 8192. |
108 |
-+ lt_cv_sys_max_cmd_len=8192; |
109 |
-+ ;; |
110 |
-+ |
111 |
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
112 |
- # This has been around since 386BSD, at least. Likely further. |
113 |
- if test -x /sbin/sysctl; then |
114 |
-diff -ur gcc-4.2.3/boehm-gc/configure gcc-4.2.3.mint/boehm-gc/configure |
115 |
---- gcc-4.2.3/boehm-gc/configure 2008-04-16 00:27:25.000000000 +0100 |
116 |
-+++ gcc-4.2.3.mint/boehm-gc/configure 2008-04-16 09:33:30.000000000 +0100 |
117 |
-@@ -4415,6 +4415,12 @@ |
118 |
- lt_cv_sys_max_cmd_len=8192; |
119 |
- ;; |
120 |
- |
121 |
-+ mint*) |
122 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
123 |
-+ # healthy for this platform. Let's restrict it to 8192. |
124 |
-+ lt_cv_sys_max_cmd_len=8192; |
125 |
-+ ;; |
126 |
-+ |
127 |
- amigaos*) |
128 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
129 |
- # So we just punt and use a minimum line length of 8192. |
130 |
-diff -ur gcc-4.2.3/libffi/configure gcc-4.2.3.mint/libffi/configure |
131 |
---- gcc-4.2.3/libffi/configure 2008-04-16 00:27:44.000000000 +0100 |
132 |
-+++ gcc-4.2.3.mint/libffi/configure 2008-04-16 09:34:32.000000000 +0100 |
133 |
-@@ -3552,6 +3552,12 @@ |
134 |
- lt_cv_sys_max_cmd_len=8192; |
135 |
- ;; |
136 |
- |
137 |
-+ mint*) |
138 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
139 |
-+ # healthy for this platform. Let's restrict it to 8192. |
140 |
-+ lt_cv_sys_max_cmd_len=8192; |
141 |
-+ ;; |
142 |
-+ |
143 |
- amigaos*) |
144 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
145 |
- # So we just punt and use a minimum line length of 8192. |
146 |
-diff -ur gcc-4.2.3/libgfortran/configure gcc-4.2.3.mint/libgfortran/configure |
147 |
---- gcc-4.2.3/libgfortran/configure 2008-04-16 00:35:02.000000000 +0100 |
148 |
-+++ gcc-4.2.3.mint/libgfortran/configure 2008-04-16 09:35:44.000000000 +0100 |
149 |
-@@ -3813,6 +3813,12 @@ |
150 |
- lt_cv_sys_max_cmd_len=8192; |
151 |
- ;; |
152 |
- |
153 |
-+ mint*) |
154 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
155 |
-+ # healthy for this platform. Let's restrict it to 8192. |
156 |
-+ lt_cv_sys_max_cmd_len=8192; |
157 |
-+ ;; |
158 |
-+ |
159 |
- amigaos*) |
160 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
161 |
- # So we just punt and use a minimum line length of 8192. |
162 |
-diff -ur gcc-4.2.3/libgomp/configure gcc-4.2.3.mint/libgomp/configure |
163 |
---- gcc-4.2.3/libgomp/configure 2008-04-16 00:27:54.000000000 +0100 |
164 |
-+++ gcc-4.2.3.mint/libgomp/configure 2008-04-16 09:35:20.000000000 +0100 |
165 |
-@@ -3985,6 +3985,12 @@ |
166 |
- lt_cv_sys_max_cmd_len=8192; |
167 |
- ;; |
168 |
- |
169 |
-+ mint*) |
170 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
171 |
-+ # healthy for this platform. Let's restrict it to 8192. |
172 |
-+ lt_cv_sys_max_cmd_len=8192; |
173 |
-+ ;; |
174 |
-+ |
175 |
- amigaos*) |
176 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
177 |
- # So we just punt and use a minimum line length of 8192. |
178 |
-diff -ur gcc-4.2.3/libjava/classpath/configure gcc-4.2.3.mint/libjava/classpath/configure |
179 |
---- gcc-4.2.3/libjava/classpath/configure 2008-04-16 00:25:19.000000000 +0100 |
180 |
-+++ gcc-4.2.3.mint/libjava/classpath/configure 2008-04-16 09:36:06.000000000 +0100 |
181 |
-@@ -5398,6 +5398,12 @@ |
182 |
- lt_cv_sys_max_cmd_len=8192; |
183 |
- ;; |
184 |
- |
185 |
-+ mint*) |
186 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
187 |
-+ # healthy for this platform. Let's restrict it to 8192. |
188 |
-+ lt_cv_sys_max_cmd_len=8192; |
189 |
-+ ;; |
190 |
-+ |
191 |
- amigaos*) |
192 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
193 |
- # So we just punt and use a minimum line length of 8192. |
194 |
-diff -ur gcc-4.2.3/libjava/configure gcc-4.2.3.mint/libjava/configure |
195 |
---- gcc-4.2.3/libjava/configure 2008-04-16 00:35:08.000000000 +0100 |
196 |
-+++ gcc-4.2.3.mint/libjava/configure 2008-04-16 09:36:32.000000000 +0100 |
197 |
-@@ -5535,6 +5535,12 @@ |
198 |
- lt_cv_sys_max_cmd_len=8192; |
199 |
- ;; |
200 |
- |
201 |
-+ mint*) |
202 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
203 |
-+ # healthy for this platform. Let's restrict it to 8192. |
204 |
-+ lt_cv_sys_max_cmd_len=8192; |
205 |
-+ ;; |
206 |
-+ |
207 |
- amigaos*) |
208 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
209 |
- # So we just punt and use a minimum line length of 8192. |
210 |
-diff -ur gcc-4.2.3/libjava/libltdl/configure gcc-4.2.3.mint/libjava/libltdl/configure |
211 |
---- gcc-4.2.3/libjava/libltdl/configure 2008-04-16 00:33:55.000000000 +0100 |
212 |
-+++ gcc-4.2.3.mint/libjava/libltdl/configure 2008-04-16 09:37:00.000000000 +0100 |
213 |
-@@ -5941,6 +5941,12 @@ |
214 |
- lt_cv_sys_max_cmd_len=8192; |
215 |
- ;; |
216 |
- |
217 |
-+ mint*) |
218 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
219 |
-+ # healthy for this platform. Let's restrict it to 8192. |
220 |
-+ lt_cv_sys_max_cmd_len=8192; |
221 |
-+ ;; |
222 |
-+ |
223 |
- amigaos*) |
224 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
225 |
- # So we just punt and use a minimum line length of 8192. |
226 |
-diff -ur gcc-4.2.3/libmudflap/configure gcc-4.2.3.mint/libmudflap/configure |
227 |
---- gcc-4.2.3/libmudflap/configure 2008-04-16 00:35:10.000000000 +0100 |
228 |
-+++ gcc-4.2.3.mint/libmudflap/configure 2008-04-16 09:34:13.000000000 +0100 |
229 |
-@@ -5484,6 +5484,12 @@ |
230 |
- lt_cv_sys_max_cmd_len=8192; |
231 |
- ;; |
232 |
- |
233 |
-+ mint*) |
234 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
235 |
-+ # healthy for this platform. Let's restrict it to 8192. |
236 |
-+ lt_cv_sys_max_cmd_len=8192; |
237 |
-+ ;; |
238 |
-+ |
239 |
- amigaos*) |
240 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
241 |
- # So we just punt and use a minimum line length of 8192. |
242 |
-diff -ur gcc-4.2.3/libobjc/configure gcc-4.2.3.mint/libobjc/configure |
243 |
---- gcc-4.2.3/libobjc/configure 2008-04-16 00:28:07.000000000 +0100 |
244 |
-+++ gcc-4.2.3.mint/libobjc/configure 2008-04-16 09:34:46.000000000 +0100 |
245 |
-@@ -3406,6 +3406,12 @@ |
246 |
- lt_cv_sys_max_cmd_len=8192; |
247 |
- ;; |
248 |
- |
249 |
-+ mint*) |
250 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
251 |
-+ # healthy for this platform. Let's restrict it to 8192. |
252 |
-+ lt_cv_sys_max_cmd_len=8192; |
253 |
-+ ;; |
254 |
-+ |
255 |
- amigaos*) |
256 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
257 |
- # So we just punt and use a minimum line length of 8192. |
258 |
-diff -ur gcc-4.2.3/libssp/configure gcc-4.2.3.mint/libssp/configure |
259 |
---- gcc-4.2.3/libssp/configure 2008-04-16 00:28:07.000000000 +0100 |
260 |
-+++ gcc-4.2.3.mint/libssp/configure 2008-04-16 09:33:49.000000000 +0100 |
261 |
-@@ -4571,6 +4571,12 @@ |
262 |
- lt_cv_sys_max_cmd_len=8192; |
263 |
- ;; |
264 |
- |
265 |
-+ mint*) |
266 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
267 |
-+ # healthy for this platform. Let's restrict it to 8192. |
268 |
-+ lt_cv_sys_max_cmd_len=8192; |
269 |
-+ ;; |
270 |
-+ |
271 |
- amigaos*) |
272 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
273 |
- # So we just punt and use a minimum line length of 8192. |
274 |
-diff -ur gcc-4.2.3/libstdc++-v3/configure gcc-4.2.3.mint/libstdc++-v3/configure |
275 |
---- gcc-4.2.3/libstdc++-v3/configure 2008-04-16 00:35:28.000000000 +0100 |
276 |
-+++ gcc-4.2.3.mint/libstdc++-v3/configure 2008-04-16 09:33:10.000000000 +0100 |
277 |
-@@ -4379,6 +4379,12 @@ |
278 |
- lt_cv_sys_max_cmd_len=8192; |
279 |
- ;; |
280 |
- |
281 |
-+ mint*) |
282 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
283 |
-+ # healthy for this platform. Let's restrict it to 8192. |
284 |
-+ lt_cv_sys_max_cmd_len=8192; |
285 |
-+ ;; |
286 |
-+ |
287 |
- amigaos*) |
288 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
289 |
- # So we just punt and use a minimum line length of 8192. |
290 |
-diff -ur gcc-4.2.3/zlib/configure gcc-4.2.3.mint/zlib/configure |
291 |
---- gcc-4.2.3/zlib/configure 2008-04-16 00:28:38.000000000 +0100 |
292 |
-+++ gcc-4.2.3.mint/zlib/configure 2008-04-16 09:35:02.000000000 +0100 |
293 |
-@@ -3521,6 +3521,12 @@ |
294 |
- lt_cv_sys_max_cmd_len=8192; |
295 |
- ;; |
296 |
- |
297 |
-+ mint*) |
298 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
299 |
-+ # healthy for this platform. Let's restrict it to 8192. |
300 |
-+ lt_cv_sys_max_cmd_len=8192; |
301 |
-+ ;; |
302 |
-+ |
303 |
- amigaos*) |
304 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
305 |
- # So we just punt and use a minimum line length of 8192. |
306 |
|
307 |
diff --git a/sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint2.patch b/sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint2.patch |
308 |
deleted file mode 100644 |
309 |
index b0eb34c775..0000000000 |
310 |
--- a/sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint2.patch |
311 |
+++ /dev/null |
312 |
@@ -1,30 +0,0 @@ |
313 |
---- libiberty/configure.old 2009-08-31 10:01:38.000000000 +0000 |
314 |
-+++ libiberty/configure 2009-08-31 10:01:29.000000000 +0000 |
315 |
-@@ -4104,6 +4104,7 @@ |
316 |
- if [ "${shared}" = "yes" ]; then |
317 |
- case "${host}" in |
318 |
- *-*-cygwin*) ;; |
319 |
-+ *-*-mint*) ;; |
320 |
- alpha*-*-linux*) PICFLAG=-fPIC ;; |
321 |
- arm*-*-*) PICFLAG=-fPIC ;; |
322 |
- hppa*-*-*) PICFLAG=-fPIC ;; |
323 |
---- libiberty/configure.ac.old 2009-08-31 10:02:12.000000000 +0000 |
324 |
-+++ libiberty/configure.ac 2009-08-30 19:10:10.000000000 +0000 |
325 |
-@@ -201,6 +201,7 @@ |
326 |
- if [[ "${shared}" = "yes" ]]; then |
327 |
- case "${host}" in |
328 |
- *-*-cygwin*) ;; |
329 |
-+ *-*-mint*) ;; |
330 |
- alpha*-*-linux*) PICFLAG=-fPIC ;; |
331 |
- arm*-*-*) PICFLAG=-fPIC ;; |
332 |
- hppa*-*-*) PICFLAG=-fPIC ;; |
333 |
---- gcc/Makefile.in.old 2009-08-31 10:03:27.000000000 +0000 |
334 |
-+++ gcc/Makefile.in 2009-08-30 19:10:11.000000000 +0000 |
335 |
-@@ -1653,6 +1653,7 @@ |
336 |
- cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS) |
337 |
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) cc1-checksum.o \ |
338 |
- $(BACKEND) $(LIBS) $(BACKENDLIBS) |
339 |
-+ stack -S 3 $@ |
340 |
- |
341 |
- # |
342 |
- # Build libgcc.a. |
343 |
|
344 |
diff --git a/sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint3.patch b/sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint3.patch |
345 |
deleted file mode 100644 |
346 |
index 37e169c8a9..0000000000 |
347 |
--- a/sys-devel/gcc/files/4.4.1/gcc-4.4.1-mint3.patch |
348 |
+++ /dev/null |
349 |
@@ -1,14 +0,0 @@ |
350 |
-diff -aurN gcc-4.4.1/gcc/configure gcc-4.4.1.mint/gcc/configure |
351 |
---- gcc-4.4.1/gcc/configure Tue Apr 8 14:25:06 2008 |
352 |
-+++ gcc-4.4.1.mint/gcc/configure Tue Apr 8 14:26:46 2008 |
353 |
-@@ -14578,6 +14578,10 @@ |
354 |
- lt_cv_sys_max_cmd_len=8192; |
355 |
- ;; |
356 |
- |
357 |
-+ mint*) |
358 |
-+ lt_cv_sys_max_cmd_len=8192; |
359 |
-+ ;; |
360 |
-+ |
361 |
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
362 |
- # This has been around since 386BSD, at least. Likely further. |
363 |
- if test -x /sbin/sysctl; then |
364 |
|
365 |
diff --git a/sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint1.patch b/sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint1.patch |
366 |
deleted file mode 100644 |
367 |
index 72f0ab1c86..0000000000 |
368 |
--- a/sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint1.patch |
369 |
+++ /dev/null |
370 |
@@ -1,335 +0,0 @@ |
371 |
-http://bugs.gentoo.org/show_bug.cgi?id=350822 |
372 |
- |
373 |
---- libstdc++-v3/libsupc++/guard.cc.old 2008-04-21 14:01:06.429023196 +0100 |
374 |
-+++ libstdc++-v3/libsupc++/guard.cc 2008-04-21 14:01:25.230287338 +0100 |
375 |
-@@ -30,6 +30,7 @@ |
376 |
- // Thread support written by Jason Merrill, Red Hat Inc. <jason@××××××.com> |
377 |
- |
378 |
- #include <bits/c++config.h> |
379 |
-+#include <cstdlib> |
380 |
- #include <cxxabi.h> |
381 |
- #include <exception> |
382 |
- #include <new> |
383 |
---- libstdc++-v3/src/codecvt.cc.old 2008-04-21 14:32:37.116117842 +0100 |
384 |
-+++ libstdc++-v3/src/codecvt.cc 2008-04-21 14:32:47.505045768 +0100 |
385 |
-@@ -27,6 +27,7 @@ |
386 |
- |
387 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
388 |
- |
389 |
-+#include <cstdlib> |
390 |
- #include <locale> |
391 |
- |
392 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
393 |
---- libstdc++-v3/src/complex_io.cc.old 2008-04-21 14:36:27.261023151 +0100 |
394 |
-+++ libstdc++-v3/src/complex_io.cc 2008-04-21 14:36:36.534232802 +0100 |
395 |
-@@ -27,6 +27,7 @@ |
396 |
- // invalidate any other reasons why the executable file might be covered by |
397 |
- // the GNU General Public License. |
398 |
- |
399 |
-+#include <cstdlib> |
400 |
- #include <complex> |
401 |
- |
402 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
403 |
---- libstdc++-v3/src/ctype.cc.old 2008-04-21 14:40:06.994312017 +0100 |
404 |
-+++ libstdc++-v3/src/ctype.cc 2008-04-21 14:40:18.218220665 +0100 |
405 |
-@@ -26,6 +26,7 @@ |
406 |
- // invalidate any other reasons why the executable file might be covered by |
407 |
- // the GNU General Public License. |
408 |
- |
409 |
-+#include <cstdlib> |
410 |
- #include <locale> |
411 |
- |
412 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
413 |
---- libstdc++-v3/src/globals_io.cc.old 2008-04-21 14:47:42.230023258 +0100 |
414 |
-+++ libstdc++-v3/src/globals_io.cc 2008-04-21 14:47:52.749297097 +0100 |
415 |
-@@ -27,6 +27,7 @@ |
416 |
- // the GNU General Public License. |
417 |
- |
418 |
- #include "bits/c++config.h" |
419 |
-+#include <cstdlib> |
420 |
- #include <fstream> |
421 |
- #include <istream> |
422 |
- #include <ostream> |
423 |
---- libstdc++-v3/src/ios.cc.old 2008-04-21 14:51:32.364023391 +0100 |
424 |
-+++ libstdc++-v3/src/ios.cc 2008-04-21 14:51:39.371196232 +0100 |
425 |
-@@ -32,6 +32,7 @@ |
426 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
427 |
- // |
428 |
- |
429 |
-+#include <cstdlib> |
430 |
- #include <ios> |
431 |
- #include <limits> |
432 |
- |
433 |
---- libstdc++-v3/src/ios_failure.cc.old 2008-04-21 14:53:10.759023042 +0100 |
434 |
-+++ libstdc++-v3/src/ios_failure.cc 2008-04-21 14:53:40.197127646 +0100 |
435 |
-@@ -32,6 +32,7 @@ |
436 |
- // ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure |
437 |
- // |
438 |
- |
439 |
-+#include <cstdlib> |
440 |
- #include <ios> |
441 |
- |
442 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
443 |
---- libstdc++-v3/src/ios_init.cc.old 2008-04-21 14:55:53.181023355 +0100 |
444 |
-+++ libstdc++-v3/src/ios_init.cc 2008-04-21 14:56:01.407485842 +0100 |
445 |
-@@ -32,6 +32,7 @@ |
446 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
447 |
- // |
448 |
- |
449 |
-+#include <cstdlib> |
450 |
- #include <ios> |
451 |
- #include <ostream> |
452 |
- #include <istream> |
453 |
---- libstdc++-v3/src/ios_locale.cc.old 2008-04-21 15:04:38.355183857 +0100 |
454 |
-+++ libstdc++-v3/src/ios_locale.cc 2008-04-21 15:04:47.456159205 +0100 |
455 |
-@@ -32,6 +32,7 @@ |
456 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
457 |
- // |
458 |
- |
459 |
-+#include <cstdlib> |
460 |
- #include <ios> |
461 |
- #include <locale> |
462 |
- |
463 |
---- libstdc++-v3/src/locale_facets.cc.old 2008-04-21 15:10:19.610023164 +0100 |
464 |
-+++ libstdc++-v3/src/locale_facets.cc 2008-04-21 15:10:26.952034403 +0100 |
465 |
-@@ -26,6 +26,7 @@ |
466 |
- // invalidate any other reasons why the executable file might be covered by |
467 |
- // the GNU General Public License. |
468 |
- |
469 |
-+#include <cstdlib> |
470 |
- #include <locale> |
471 |
- |
472 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
473 |
---- libstdc++-v3/src/strstream.cc.old 2008-04-21 15:17:36.006071207 +0100 |
474 |
-+++ libstdc++-v3/src/strstream.cc 2008-04-21 15:17:43.447641937 +0100 |
475 |
-@@ -46,6 +46,7 @@ |
476 |
- // MAY BE REMOVED in a future standard revision. You should use the |
477 |
- // header <sstream> instead. |
478 |
- |
479 |
-+#include <cstdlib> |
480 |
- #include <strstream> |
481 |
- #include <algorithm> |
482 |
- #include <new> |
483 |
---- libstdc++-v3/src/fstream-inst.cc.old 2008-04-21 15:25:14.168032671 +0100 |
484 |
-+++ libstdc++-v3/src/fstream-inst.cc 2008-04-21 15:25:24.605060960 +0100 |
485 |
-@@ -32,6 +32,7 @@ |
486 |
- // ISO C++ 14882: |
487 |
- // |
488 |
- |
489 |
-+#include <cstdlib> |
490 |
- #include <fstream> |
491 |
- |
492 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
493 |
---- libstdc++-v3/src/ios-inst.cc.old 2008-04-21 15:40:43.642023146 +0100 |
494 |
-+++ libstdc++-v3/src/ios-inst.cc 2008-04-21 15:40:51.723051414 +0100 |
495 |
-@@ -32,6 +32,7 @@ |
496 |
- // ISO C++ 14882: |
497 |
- // |
498 |
- |
499 |
-+#include <cstdlib> |
500 |
- #include <ios> |
501 |
- |
502 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
503 |
---- libstdc++-v3/src/iostream-inst.cc.old 2008-04-21 15:55:15.625023267 +0100 |
504 |
-+++ libstdc++-v3/src/iostream-inst.cc 2008-04-21 15:55:23.629058393 +0100 |
505 |
-@@ -32,6 +32,7 @@ |
506 |
- // ISO C++ 14882: |
507 |
- // |
508 |
- |
509 |
-+#include <cstdlib> |
510 |
- #include <iomanip> |
511 |
- |
512 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
513 |
---- libstdc++-v3/src/istream-inst.cc.old 2008-04-21 15:59:50.862024439 +0100 |
514 |
-+++ libstdc++-v3/src/istream-inst.cc 2008-04-21 15:59:59.603028397 +0100 |
515 |
-@@ -32,6 +32,7 @@ |
516 |
- // ISO C++ 14882: |
517 |
- // |
518 |
- |
519 |
-+#include <cstdlib> |
520 |
- #include <istream> |
521 |
- #include <iomanip> |
522 |
- |
523 |
---- libstdc++-v3/src/istream.cc.old 2008-04-21 16:03:55.949023206 +0100 |
524 |
-+++ libstdc++-v3/src/istream.cc 2008-04-21 16:04:03.746026447 +0100 |
525 |
-@@ -31,6 +31,7 @@ |
526 |
- // ISO C++ 14882: 27.6.1 Input streams |
527 |
- // |
528 |
- |
529 |
-+#include <cstdlib> |
530 |
- #include <istream> |
531 |
- |
532 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
533 |
---- libstdc++-v3/src/locale-inst.cc.old 2008-04-21 16:07:06.705023144 +0100 |
534 |
-+++ libstdc++-v3/src/locale-inst.cc 2008-04-21 16:07:14.922226343 +0100 |
535 |
-@@ -32,6 +32,7 @@ |
536 |
- // ISO C++ 14882: 22.1 Locales |
537 |
- // |
538 |
- |
539 |
-+#include <cstdlib> |
540 |
- #include <locale> |
541 |
- |
542 |
- // Instantiation configuration. |
543 |
---- libstdc++-v3/src/ostream-inst.cc.old 2008-04-21 16:19:19.443023243 +0100 |
544 |
-+++ libstdc++-v3/src/ostream-inst.cc 2008-04-21 16:19:26.505037357 +0100 |
545 |
-@@ -32,6 +32,7 @@ |
546 |
- // ISO C++ 14882: |
547 |
- // |
548 |
- |
549 |
-+#include <cstdlib> |
550 |
- #include <ostream> |
551 |
- #include <iomanip> |
552 |
- |
553 |
---- libstdc++-v3/src/sstream-inst.cc.old 2008-04-21 16:22:53.830023256 +0100 |
554 |
-+++ libstdc++-v3/src/sstream-inst.cc 2008-04-21 16:23:01.792239858 +0100 |
555 |
-@@ -32,6 +32,7 @@ |
556 |
- // ISO C++ 14882: |
557 |
- // |
558 |
- |
559 |
-+#include <cstdlib> |
560 |
- #include <sstream> |
561 |
- |
562 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
563 |
---- libstdc++-v3/src/streambuf-inst.cc.old 2008-04-21 16:27:18.648023102 +0100 |
564 |
-+++ libstdc++-v3/src/streambuf-inst.cc 2008-04-21 16:27:28.394022870 +0100 |
565 |
-@@ -32,6 +32,7 @@ |
566 |
- // ISO C++ 14882: |
567 |
- // |
568 |
- |
569 |
-+#include <cstdlib> |
570 |
- #include <ios> |
571 |
- #include <streambuf> |
572 |
- |
573 |
---- libstdc++-v3/src/streambuf.cc.old 2008-04-21 16:32:11.191078470 +0100 |
574 |
-+++ libstdc++-v3/src/streambuf.cc 2008-04-21 16:32:20.434047649 +0100 |
575 |
-@@ -31,6 +31,7 @@ |
576 |
- // ISO C++ 14882: 27.5 Stream buffers |
577 |
- // |
578 |
- |
579 |
-+#include <cstdlib> |
580 |
- #include <streambuf> |
581 |
- |
582 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
583 |
---- libstdc++-v3/config/locale/generic/codecvt_members.cc.old 2008-04-21 16:40:52.235023128 +0100 |
584 |
-+++ libstdc++-v3/config/locale/generic/codecvt_members.cc 2008-04-21 16:41:01.248427209 +0100 |
585 |
-@@ -33,6 +33,7 @@ |
586 |
- |
587 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
588 |
- |
589 |
-+#include <cstdlib> |
590 |
- #include <locale> |
591 |
- |
592 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
593 |
---- libstdc++-v3/config/locale/generic/collate_members.cc.old 2008-04-21 16:42:19.265348380 +0100 |
594 |
-+++ libstdc++-v3/config/locale/generic/collate_members.cc 2008-04-21 16:42:25.552040967 +0100 |
595 |
-@@ -33,6 +33,7 @@ |
596 |
- |
597 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
598 |
- |
599 |
-+#include <cstdlib> |
600 |
- #include <locale> |
601 |
- |
602 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
603 |
---- libstdc++-v3/config/locale/generic/ctype_members.cc.old 2008-04-21 16:49:06.726023078 +0100 |
604 |
-+++ libstdc++-v3/config/locale/generic/ctype_members.cc 2008-04-21 16:49:18.212045558 +0100 |
605 |
-@@ -33,6 +33,7 @@ |
606 |
- |
607 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
608 |
- |
609 |
-+#include <cstdlib> |
610 |
- #include <locale> |
611 |
- |
612 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
613 |
---- libstdc++-v3/config/locale/generic/messages_members.cc.old 2008-04-21 16:51:46.237348712 +0100 |
614 |
-+++ libstdc++-v3/config/locale/generic/messages_members.cc 2008-04-21 16:51:55.015221637 +0100 |
615 |
-@@ -33,6 +33,7 @@ |
616 |
- |
617 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
618 |
- |
619 |
-+#include <cstdlib> |
620 |
- #include <locale> |
621 |
- |
622 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
623 |
---- libstdc++-v3/config/locale/generic/monetary_members.cc.old 2008-04-21 16:53:14.893023165 +0100 |
624 |
-+++ libstdc++-v3/config/locale/generic/monetary_members.cc 2008-04-21 16:53:22.350043513 +0100 |
625 |
-@@ -33,6 +33,7 @@ |
626 |
- |
627 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
628 |
- |
629 |
-+#include <cstdlib> |
630 |
- #include <locale> |
631 |
- |
632 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
633 |
---- libstdc++-v3/config/locale/generic/numeric_members.cc.old 2008-04-21 16:54:11.077212480 +0100 |
634 |
-+++ libstdc++-v3/config/locale/generic/numeric_members.cc 2008-04-21 16:53:32.618266080 +0100 |
635 |
-@@ -33,6 +33,7 @@ |
636 |
- |
637 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
638 |
- |
639 |
-+#include <cstdlib> |
640 |
- #include <locale> |
641 |
- |
642 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
643 |
---- libstdc++-v3/config/locale/generic/time_members.cc.old 2008-04-21 16:54:00.835099080 +0100 |
644 |
-+++ libstdc++-v3/config/locale/generic/time_members.cc 2008-04-21 16:53:41.260024731 +0100 |
645 |
-@@ -34,6 +34,7 @@ |
646 |
- |
647 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
648 |
- |
649 |
-+#include <cstdlib> |
650 |
- #include <locale> |
651 |
- |
652 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
653 |
---- libstdc++-v3/config/io/basic_file_stdio.cc.old 2008-04-21 17:00:09.629307442 +0100 |
654 |
-+++ libstdc++-v3/config/io/basic_file_stdio.cc 2008-04-21 16:59:58.512314844 +0100 |
655 |
-@@ -32,6 +32,7 @@ |
656 |
- // ISO C++ 14882: 27.8 File-based streams |
657 |
- // |
658 |
- |
659 |
-+#include <cstdlib> |
660 |
- #include <bits/basic_file.h> |
661 |
- #include <fcntl.h> |
662 |
- #include <errno.h> |
663 |
---- gcc/cp/g++spec.c.old 2008-06-05 11:12:02.252475943 +0100 |
664 |
-+++ gcc/cp/g++spec.c 2008-06-05 11:12:49.557473133 +0100 |
665 |
-@@ -356,6 +356,12 @@ |
666 |
- } |
667 |
- #endif |
668 |
- } |
669 |
-+#ifdef __MINT__ |
670 |
-+ arglist[j] = "-lpthread"; |
671 |
-+ if (arglist[j][0] != '-' || arglist[j][1] == 'l') |
672 |
-+ added_libraries++; |
673 |
-+ j++; |
674 |
-+#endif |
675 |
- if (saw_math) |
676 |
- arglist[j++] = saw_math; |
677 |
- else if (library > 0 && need_math) |
678 |
---- libstdc++-v3/include/c_global/cstdlib.old 2008-06-05 11:15:10.644432810 +0100 |
679 |
-+++ libstdc++-v3/include/c_global/cstdlib 2008-06-05 11:15:43.703707876 +0100 |
680 |
-@@ -97,7 +97,11 @@ |
681 |
- #undef strtod |
682 |
- #undef strtol |
683 |
- #undef strtoul |
684 |
-+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE) |
685 |
-+/* don't undefine system as we're using libpthread */ |
686 |
-+#else |
687 |
- #undef system |
688 |
-+#endif |
689 |
- #undef wcstombs |
690 |
- #undef wctomb |
691 |
- |
692 |
---- libstdc++-v3/include/c_std/cstdlib.old 2008-06-05 11:15:10.644432810 +0100 |
693 |
-+++ libstdc++-v3/include/c_std/cstdlib 2008-06-05 11:15:43.703707876 +0100 |
694 |
-@@ -97,7 +97,11 @@ |
695 |
- #undef strtod |
696 |
- #undef strtol |
697 |
- #undef strtoul |
698 |
-+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE) |
699 |
-+/* don't undefine system as we're using libpthread */ |
700 |
-+#else |
701 |
- #undef system |
702 |
-+#endif |
703 |
- #undef wcstombs |
704 |
- #undef wctomb |
705 |
- |
706 |
|
707 |
diff --git a/sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint2.patch b/sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint2.patch |
708 |
deleted file mode 100644 |
709 |
index 30f0a3c0ea..0000000000 |
710 |
--- a/sys-devel/gcc/files/4.5.2/gcc-4.5.2-mint2.patch |
711 |
+++ /dev/null |
712 |
@@ -1,1193 +0,0 @@ |
713 |
---- gcc-4.5.2/config-ml.in 2008-05-14 19:15:51.000000000 +0200 |
714 |
-+++ gcc-4.5.2/config-ml.in 2011-02-06 17:09:47.453125000 +0100 |
715 |
-@@ -351,6 +351,23 @@ |
716 |
- esac |
717 |
- done |
718 |
- fi |
719 |
-+ case "${host}" in |
720 |
-+ *-*-mint*) |
721 |
-+ case "${srcdir}" in |
722 |
-+ */libgcc ) : ;; |
723 |
-+ *) |
724 |
-+ old_multidirs="${multidirs}" |
725 |
-+ multidirs="" |
726 |
-+ for x in ${old_multidirs}; do |
727 |
-+ case "$x" in |
728 |
-+ *mshort ) : ;; |
729 |
-+ *) multidirs="${multidirs} ${x}" ;; |
730 |
-+ esac |
731 |
-+ done |
732 |
-+ ;; |
733 |
-+ esac |
734 |
-+ ;; |
735 |
-+ esac |
736 |
- ;; |
737 |
- mips*-*-*) |
738 |
- if [ x$enable_single_float = xno ] |
739 |
---- gcc-4.5.2/configure 2010-10-06 12:29:55.000000000 +0200 |
740 |
-+++ gcc-4.5.2/configure 2011-02-06 17:09:48.671875000 +0100 |
741 |
-@@ -3198,6 +3198,9 @@ |
742 |
- *-*-freebsd*) |
743 |
- # Enable libmudflap by default in FreeBSD. |
744 |
- ;; |
745 |
-+ *-*-mint*) |
746 |
-+ # Enable libmudflap by default in MiNT. |
747 |
-+ ;; |
748 |
- *) |
749 |
- # Disable it by default everywhere else. |
750 |
- noconfigdirs="$noconfigdirs target-libmudflap" |
751 |
-@@ -3570,6 +3573,9 @@ |
752 |
- m68k-*-coff*) |
753 |
- noconfigdirs="$noconfigdirs ${libgcj}" |
754 |
- ;; |
755 |
-+ m68k-*-mint*) |
756 |
-+ noconfigdirs="$noconfigdirs target-libiberty ${libgcj}" |
757 |
-+ ;; |
758 |
- m68*-*-* | fido-*-*) |
759 |
- libgloss_dir=m68k |
760 |
- ;; |
761 |
---- gcc-4.5.2/configure.ac 2010-10-06 12:29:55.000000000 +0200 |
762 |
-+++ gcc-4.5.2/configure.ac 2011-02-06 17:09:48.906250000 +0100 |
763 |
-@@ -435,6 +435,9 @@ |
764 |
- *-*-freebsd*) |
765 |
- # Enable libmudflap by default in FreeBSD. |
766 |
- ;; |
767 |
-+ *-*-mint*) |
768 |
-+ # Enable libmudflap by default in MiNT. |
769 |
-+ ;; |
770 |
- *) |
771 |
- # Disable it by default everywhere else. |
772 |
- noconfigdirs="$noconfigdirs target-libmudflap" |
773 |
-@@ -807,6 +810,9 @@ |
774 |
- m68k-*-coff*) |
775 |
- noconfigdirs="$noconfigdirs ${libgcj}" |
776 |
- ;; |
777 |
-+ m68k-*-mint*) |
778 |
-+ noconfigdirs="$noconfigdirs target-libiberty ${libgcj}" |
779 |
-+ ;; |
780 |
- m68*-*-* | fido-*-*) |
781 |
- libgloss_dir=m68k |
782 |
- ;; |
783 |
---- gcc-4.5.2/gcc/config/m68k/lb1sf68.asm 2009-10-02 13:20:51.000000000 +0200 |
784 |
-+++ gcc-4.5.2/gcc/config/m68k/lb1sf68.asm 2011-02-06 17:09:48.921875000 +0100 |
785 |
-@@ -666,7 +666,9 @@ |
786 |
- .globl SYM (__negdf2) |
787 |
- .globl SYM (__cmpdf2) |
788 |
- .globl SYM (__cmpdf2_internal) |
789 |
-+#ifdef __ELF__ |
790 |
- .hidden SYM (__cmpdf2_internal) |
791 |
-+#endif |
792 |
- |
793 |
- .text |
794 |
- .even |
795 |
-@@ -2581,7 +2583,9 @@ |
796 |
- .globl SYM (__negsf2) |
797 |
- .globl SYM (__cmpsf2) |
798 |
- .globl SYM (__cmpsf2_internal) |
799 |
-+#ifdef __ELF__ |
800 |
- .hidden SYM (__cmpsf2_internal) |
801 |
-+#endif |
802 |
- |
803 |
- | These are common routines to return and signal exceptions. |
804 |
- |
805 |
---- gcc-4.5.2/gcc/config/m68k/m68k.h 2009-09-22 17:49:54.000000000 +0200 |
806 |
-+++ gcc-4.5.2/gcc/config/m68k/m68k.h 2011-02-06 17:09:48.937500000 +0100 |
807 |
-@@ -138,7 +138,10 @@ |
808 |
- } \ |
809 |
- \ |
810 |
- if (TARGET_68881) \ |
811 |
-- builtin_define ("__HAVE_68881__"); \ |
812 |
-+ { \ |
813 |
-+ builtin_define ("__HAVE_68881__"); \ |
814 |
-+ builtin_define ("__M68881__"); /* Non-standard */ \ |
815 |
-+ } \ |
816 |
- \ |
817 |
- if (TARGET_COLDFIRE) \ |
818 |
- { \ |
819 |
---- gcc-4.5.2/gcc/config/m68k/math-68881.h 2004-02-09 01:48:13.000000000 +0100 |
820 |
-+++ gcc-4.5.2/gcc/config/m68k/math-68881.h 2011-02-06 18:36:22.546875000 +0100 |
821 |
-@@ -44,6 +44,16 @@ |
822 |
- |
823 |
- #include <errno.h> |
824 |
- |
825 |
-+/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 |
826 |
-+ inline semantics, unless -fgnu89-inline is used. */ |
827 |
-+#ifdef __cplusplus |
828 |
-+# define __MATH_68881_INLINE inline |
829 |
-+#elif defined __GNUC_STDC_INLINE__ |
830 |
-+# define __MATH_68881_INLINE extern __inline __attribute__ ((__gnu_inline__)) |
831 |
-+#else |
832 |
-+# define __MATH_68881_INLINE extern __inline |
833 |
-+#endif |
834 |
-+ |
835 |
- #undef HUGE_VAL |
836 |
- #ifdef __sun__ |
837 |
- /* The Sun assembler fails to handle the hex constant in the usual defn. */ |
838 |
-@@ -64,7 +74,7 @@ |
839 |
- }) |
840 |
- #endif |
841 |
- |
842 |
--__inline extern double |
843 |
-+__MATH_68881_INLINE double |
844 |
- sin (double x) |
845 |
- { |
846 |
- double value; |
847 |
-@@ -75,7 +85,7 @@ |
848 |
- return value; |
849 |
- } |
850 |
- |
851 |
--__inline extern double |
852 |
-+__MATH_68881_INLINE double |
853 |
- cos (double x) |
854 |
- { |
855 |
- double value; |
856 |
-@@ -86,7 +96,7 @@ |
857 |
- return value; |
858 |
- } |
859 |
- |
860 |
--__inline extern double |
861 |
-+__MATH_68881_INLINE double |
862 |
- tan (double x) |
863 |
- { |
864 |
- double value; |
865 |
-@@ -97,7 +107,7 @@ |
866 |
- return value; |
867 |
- } |
868 |
- |
869 |
--__inline extern double |
870 |
-+__MATH_68881_INLINE double |
871 |
- asin (double x) |
872 |
- { |
873 |
- double value; |
874 |
-@@ -108,7 +118,7 @@ |
875 |
- return value; |
876 |
- } |
877 |
- |
878 |
--__inline extern double |
879 |
-+__MATH_68881_INLINE double |
880 |
- acos (double x) |
881 |
- { |
882 |
- double value; |
883 |
-@@ -119,7 +129,7 @@ |
884 |
- return value; |
885 |
- } |
886 |
- |
887 |
--__inline extern double |
888 |
-+__MATH_68881_INLINE double |
889 |
- atan (double x) |
890 |
- { |
891 |
- double value; |
892 |
-@@ -130,7 +140,7 @@ |
893 |
- return value; |
894 |
- } |
895 |
- |
896 |
--__inline extern double |
897 |
-+__MATH_68881_INLINE double |
898 |
- atan2 (double y, double x) |
899 |
- { |
900 |
- double pi, pi_over_2; |
901 |
-@@ -187,7 +197,7 @@ |
902 |
- } |
903 |
- } |
904 |
- |
905 |
--__inline extern double |
906 |
-+__MATH_68881_INLINE double |
907 |
- sinh (double x) |
908 |
- { |
909 |
- double value; |
910 |
-@@ -198,7 +208,7 @@ |
911 |
- return value; |
912 |
- } |
913 |
- |
914 |
--__inline extern double |
915 |
-+__MATH_68881_INLINE double |
916 |
- cosh (double x) |
917 |
- { |
918 |
- double value; |
919 |
-@@ -209,7 +219,7 @@ |
920 |
- return value; |
921 |
- } |
922 |
- |
923 |
--__inline extern double |
924 |
-+__MATH_68881_INLINE double |
925 |
- tanh (double x) |
926 |
- { |
927 |
- double value; |
928 |
-@@ -220,7 +230,7 @@ |
929 |
- return value; |
930 |
- } |
931 |
- |
932 |
--__inline extern double |
933 |
-+__MATH_68881_INLINE double |
934 |
- atanh (double x) |
935 |
- { |
936 |
- double value; |
937 |
-@@ -231,7 +241,7 @@ |
938 |
- return value; |
939 |
- } |
940 |
- |
941 |
--__inline extern double |
942 |
-+__MATH_68881_INLINE double |
943 |
- exp (double x) |
944 |
- { |
945 |
- double value; |
946 |
-@@ -242,7 +252,7 @@ |
947 |
- return value; |
948 |
- } |
949 |
- |
950 |
--__inline extern double |
951 |
-+__MATH_68881_INLINE double |
952 |
- expm1 (double x) |
953 |
- { |
954 |
- double value; |
955 |
-@@ -253,7 +263,7 @@ |
956 |
- return value; |
957 |
- } |
958 |
- |
959 |
--__inline extern double |
960 |
-+__MATH_68881_INLINE double |
961 |
- log (double x) |
962 |
- { |
963 |
- double value; |
964 |
-@@ -264,7 +274,7 @@ |
965 |
- return value; |
966 |
- } |
967 |
- |
968 |
--__inline extern double |
969 |
-+__MATH_68881_INLINE double |
970 |
- log1p (double x) |
971 |
- { |
972 |
- double value; |
973 |
-@@ -275,7 +285,7 @@ |
974 |
- return value; |
975 |
- } |
976 |
- |
977 |
--__inline extern double |
978 |
-+__MATH_68881_INLINE double |
979 |
- log10 (double x) |
980 |
- { |
981 |
- double value; |
982 |
-@@ -286,7 +296,7 @@ |
983 |
- return value; |
984 |
- } |
985 |
- |
986 |
--__inline extern double |
987 |
-+__MATH_68881_INLINE double |
988 |
- sqrt (double x) |
989 |
- { |
990 |
- double value; |
991 |
-@@ -297,13 +307,13 @@ |
992 |
- return value; |
993 |
- } |
994 |
- |
995 |
--__inline extern double |
996 |
-+__MATH_68881_INLINE double |
997 |
- hypot (double x, double y) |
998 |
- { |
999 |
- return sqrt (x*x + y*y); |
1000 |
- } |
1001 |
- |
1002 |
--__inline extern double |
1003 |
-+__MATH_68881_INLINE double |
1004 |
- pow (double x, double y) |
1005 |
- { |
1006 |
- if (x > 0) |
1007 |
-@@ -352,7 +362,7 @@ |
1008 |
- } |
1009 |
- } |
1010 |
- |
1011 |
--__inline extern double |
1012 |
-+__MATH_68881_INLINE double |
1013 |
- fabs (double x) |
1014 |
- { |
1015 |
- double value; |
1016 |
-@@ -363,7 +373,7 @@ |
1017 |
- return value; |
1018 |
- } |
1019 |
- |
1020 |
--__inline extern double |
1021 |
-+__MATH_68881_INLINE double |
1022 |
- ceil (double x) |
1023 |
- { |
1024 |
- int rounding_mode, round_up; |
1025 |
-@@ -385,7 +395,7 @@ |
1026 |
- return value; |
1027 |
- } |
1028 |
- |
1029 |
--__inline extern double |
1030 |
-+__MATH_68881_INLINE double |
1031 |
- floor (double x) |
1032 |
- { |
1033 |
- int rounding_mode, round_down; |
1034 |
-@@ -408,7 +418,7 @@ |
1035 |
- return value; |
1036 |
- } |
1037 |
- |
1038 |
--__inline extern double |
1039 |
-+__MATH_68881_INLINE double |
1040 |
- rint (double x) |
1041 |
- { |
1042 |
- int rounding_mode, round_nearest; |
1043 |
-@@ -430,7 +440,7 @@ |
1044 |
- return value; |
1045 |
- } |
1046 |
- |
1047 |
--__inline extern double |
1048 |
-+__MATH_68881_INLINE double |
1049 |
- fmod (double x, double y) |
1050 |
- { |
1051 |
- double value; |
1052 |
-@@ -442,7 +452,7 @@ |
1053 |
- return value; |
1054 |
- } |
1055 |
- |
1056 |
--__inline extern double |
1057 |
-+__MATH_68881_INLINE double |
1058 |
- drem (double x, double y) |
1059 |
- { |
1060 |
- double value; |
1061 |
-@@ -454,7 +464,7 @@ |
1062 |
- return value; |
1063 |
- } |
1064 |
- |
1065 |
--__inline extern double |
1066 |
-+__MATH_68881_INLINE double |
1067 |
- scalb (double x, int n) |
1068 |
- { |
1069 |
- double value; |
1070 |
-@@ -466,7 +476,7 @@ |
1071 |
- return value; |
1072 |
- } |
1073 |
- |
1074 |
--__inline extern double |
1075 |
-+__MATH_68881_INLINE double |
1076 |
- logb (double x) |
1077 |
- { |
1078 |
- double exponent; |
1079 |
-@@ -477,7 +487,7 @@ |
1080 |
- return exponent; |
1081 |
- } |
1082 |
- |
1083 |
--__inline extern double |
1084 |
-+__MATH_68881_INLINE double |
1085 |
- ldexp (double x, int n) |
1086 |
- { |
1087 |
- double value; |
1088 |
-@@ -489,7 +499,7 @@ |
1089 |
- return value; |
1090 |
- } |
1091 |
- |
1092 |
--__inline extern double |
1093 |
-+__MATH_68881_INLINE double |
1094 |
- frexp (double x, int *exp) |
1095 |
- { |
1096 |
- double float_exponent; |
1097 |
-@@ -514,7 +524,7 @@ |
1098 |
- return mantissa; |
1099 |
- } |
1100 |
- |
1101 |
--__inline extern double |
1102 |
-+__MATH_68881_INLINE double |
1103 |
- modf (double x, double *ip) |
1104 |
- { |
1105 |
- double temp; |
1106 |
---- gcc-4.5.2/gcc/config/m68k/mint.h 1970-01-01 01:00:00.000000000 +0100 |
1107 |
-+++ gcc-4.5.2/gcc/config/m68k/mint.h 2011-02-06 17:54:02.000000000 +0100 |
1108 |
-@@ -0,0 +1,176 @@ |
1109 |
-+/* Definitions of target machine for GNU compiler. |
1110 |
-+ Atari ST TOS/MiNT. |
1111 |
-+ Copyright (C) 1994, 1995, 2007, 2008, 2009, 2010, 2011 |
1112 |
-+ Free Software Foundation, Inc. |
1113 |
-+ |
1114 |
-+This file is part of GCC. |
1115 |
-+ |
1116 |
-+GCC is free software; you can redistribute it and/or modify |
1117 |
-+it under the terms of the GNU General Public License as published by |
1118 |
-+the Free Software Foundation; either version 3, or (at your option) |
1119 |
-+any later version. |
1120 |
-+ |
1121 |
-+GCC is distributed in the hope that it will be useful, |
1122 |
-+but WITHOUT ANY WARRANTY; without even the implied warranty of |
1123 |
-+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1124 |
-+GNU General Public License for more details. |
1125 |
-+ |
1126 |
-+You should have received a copy of the GNU General Public License |
1127 |
-+along with GCC; see the file COPYING3. If not see |
1128 |
-+<http://www.gnu.org/licenses/>. */ |
1129 |
-+ |
1130 |
-+/* Here are four prefixes that are used by asm_fprintf to |
1131 |
-+ facilitate customization for alternate assembler syntaxes. |
1132 |
-+ Machines with no likelihood of an alternate syntax need not |
1133 |
-+ define these and need not use asm_fprintf. */ |
1134 |
-+ |
1135 |
-+/* The prefix for register names. Note that REGISTER_NAMES |
1136 |
-+ is supposed to include this prefix. Also note that this is NOT an |
1137 |
-+ fprintf format string, it is a literal string */ |
1138 |
-+ |
1139 |
-+#undef REGISTER_PREFIX |
1140 |
-+#define REGISTER_PREFIX "%" |
1141 |
-+ |
1142 |
-+/* The prefix for local (compiler generated) labels. |
1143 |
-+ These labels will not appear in the symbol table. */ |
1144 |
-+ |
1145 |
-+#undef LOCAL_LABEL_PREFIX |
1146 |
-+#define LOCAL_LABEL_PREFIX "." |
1147 |
-+ |
1148 |
-+#undef ASM_COMMENT_START |
1149 |
-+#define ASM_COMMENT_START "|" |
1150 |
-+ |
1151 |
-+#undef WCHAR_TYPE |
1152 |
-+#define WCHAR_TYPE "short unsigned int" |
1153 |
-+ |
1154 |
-+#undef WCHAR_TYPE_SIZE |
1155 |
-+#define WCHAR_TYPE_SIZE SHORT_TYPE_SIZE |
1156 |
-+ |
1157 |
-+#undef TARGET_OS_CPP_BUILTINS |
1158 |
-+#define TARGET_OS_CPP_BUILTINS() \ |
1159 |
-+ do \ |
1160 |
-+ { \ |
1161 |
-+ builtin_define ("__MINT__"); \ |
1162 |
-+ builtin_define_std ("atarist"); \ |
1163 |
-+ builtin_assert ("machine=atari"); \ |
1164 |
-+ builtin_assert ("system=mint"); \ |
1165 |
-+ } \ |
1166 |
-+ while (0) |
1167 |
-+ |
1168 |
-+/* The following defines are nonstandard |
1169 |
-+ and are kept only for compatibility |
1170 |
-+ with older versions of GCC for MiNT. */ |
1171 |
-+ |
1172 |
-+#undef CPP_SPEC |
1173 |
-+#define CPP_SPEC \ |
1174 |
-+ "%{m68000:-D__M68000__} " \ |
1175 |
-+ "%{mc68020:-D__M68020__} " \ |
1176 |
-+ "%{m68020:-D__M68020__} " \ |
1177 |
-+ "%{m68030:-D__M68020__} " \ |
1178 |
-+ "%{m68040:-D__M68020__} " \ |
1179 |
-+ "%{m68060:-D__M68020__} " \ |
1180 |
-+ "%{m68020-40:-D__M68020__} " \ |
1181 |
-+ "%{m68020-60:-D__M68020__} " \ |
1182 |
-+ "%{!m680*:%{!mc680*:-D__M68000__}} " \ |
1183 |
-+ "%{mshort:-D__MSHORT__}" |
1184 |
-+ |
1185 |
-+#define STARTFILE_SPEC "%{pg|p|profile:gcrt0.o%s;:crt0.o%s}" |
1186 |
-+#define LIB_SPEC "-lc" |
1187 |
-+ |
1188 |
-+/* Every structure or union's size must be a multiple of 2 bytes. */ |
1189 |
-+#define STRUCTURE_SIZE_BOUNDARY 16 |
1190 |
-+ |
1191 |
-+/* The -g option generates stabs debug information. */ |
1192 |
-+#define DBX_DEBUGGING_INFO 1 |
1193 |
-+ |
1194 |
-+/* This is the assembler directive to equate two values. */ |
1195 |
-+#undef SET_ASM_OP |
1196 |
-+#define SET_ASM_OP "\t.set\t" |
1197 |
-+ |
1198 |
-+/* This is how we tell the assembler that a symbol is weak. */ |
1199 |
-+#undef ASM_WEAKEN_LABEL |
1200 |
-+#define ASM_WEAKEN_LABEL(FILE,NAME) \ |
1201 |
-+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ |
1202 |
-+ fputc ('\n', FILE); } while (0) |
1203 |
-+ |
1204 |
-+/* Don't default to pcc-struct-return, because gcc is the only compiler, and |
1205 |
-+ we want to retain compatibility with older gcc versions. */ |
1206 |
-+#define DEFAULT_PCC_STRUCT_RETURN 0 |
1207 |
-+ |
1208 |
-+/* The system headers are C++-aware. */ |
1209 |
-+#define NO_IMPLICIT_EXTERN_C |
1210 |
-+ |
1211 |
-+/* By default, the vtable entries are void pointers, the so the alignment |
1212 |
-+ is the same as pointer alignment. The value of this macro specifies |
1213 |
-+ the alignment of the vtable entry in bits. It should be defined only |
1214 |
-+ when special alignment is necessary. |
1215 |
-+ |
1216 |
-+ MiNT: The default value of 32 is too much and unsupported by a.out-mintprg. |
1217 |
-+*/ |
1218 |
-+#define TARGET_VTABLE_ENTRY_ALIGN 16 |
1219 |
-+ |
1220 |
-+/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that |
1221 |
-+ the rest of the DWARF 2 frame unwind support is also provided. |
1222 |
-+ |
1223 |
-+ MiNT: DWARF 2 frame unwind is not supported by a.out-mint. |
1224 |
-+*/ |
1225 |
-+#define DWARF2_UNWIND_INFO 0 |
1226 |
-+ |
1227 |
-+/* config/m68k.md has an explicit reference to the program counter, |
1228 |
-+ prefix this by the register prefix. */ |
1229 |
-+ |
1230 |
-+#define ASM_RETURN_CASE_JUMP \ |
1231 |
-+ do { \ |
1232 |
-+ if (TARGET_COLDFIRE) \ |
1233 |
-+ { \ |
1234 |
-+ if (ADDRESS_REG_P (operands[0])) \ |
1235 |
-+ return "jmp %%pc@(2,%0:l)"; \ |
1236 |
-+ else \ |
1237 |
-+ return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \ |
1238 |
-+ } \ |
1239 |
-+ else \ |
1240 |
-+ return "jmp %%pc@(2,%0:w)"; \ |
1241 |
-+ } while (0) |
1242 |
-+ |
1243 |
-+/* The ADDR_DIFF_VEC must exactly follow the previous instruction. */ |
1244 |
-+ |
1245 |
-+#undef ADDR_VEC_ALIGN |
1246 |
-+#define ADDR_VEC_ALIGN(ADDR_VEC) 0 |
1247 |
-+ |
1248 |
-+/* If defined, a C expression whose value is a string containing the |
1249 |
-+ assembler operation to identify the following data as uninitialized global |
1250 |
-+ data. */ |
1251 |
-+ |
1252 |
-+#define BSS_SECTION_ASM_OP "\t.bss" |
1253 |
-+ |
1254 |
-+/* A C statement (sans semicolon) to output to the stdio stream |
1255 |
-+ FILE the assembler definition of uninitialized global DECL named |
1256 |
-+ NAME whose size is SIZE bytes and alignment is ALIGN bytes. |
1257 |
-+ Try to use asm_output_aligned_bss to implement this macro. */ |
1258 |
-+ |
1259 |
-+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ |
1260 |
-+ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) |
1261 |
-+ |
1262 |
-+/* Disable -fpic and -fPIC since bsr.l _label@PLTPC |
1263 |
-+ is unsupported by the assembler. */ |
1264 |
-+ |
1265 |
-+#undef SUBTARGET_OVERRIDE_OPTIONS |
1266 |
-+#define SUBTARGET_OVERRIDE_OPTIONS \ |
1267 |
-+do { \ |
1268 |
-+ if (flag_pic && !TARGET_PCREL) \ |
1269 |
-+ error ("-f%s is not supported on this target", \ |
1270 |
-+ (flag_pic > 1) ? "PIC" : "pic"); \ |
1271 |
-+} while (0) |
1272 |
-+ |
1273 |
-+ |
1274 |
-+/* Workaround for GCC bug #35067 about multiple thunks. */ |
1275 |
-+ |
1276 |
-+#undef MAKE_DECL_ONE_ONLY |
1277 |
-+#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) |
1278 |
-+ |
1279 |
-+/* Avoid requiring -static with -fmudflap like in config/bfin/uclinux.h */ |
1280 |
-+#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \ |
1281 |
-+ --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\ |
1282 |
-+ --wrap=mmap --wrap=munmap --wrap=alloca\ |
1283 |
-+ %{fmudflapth: --wrap=pthread_create\ |
1284 |
-+}} %{fmudflap|fmudflapth: --wrap=main}" |
1285 |
---- gcc-4.5.2/gcc/config/m68k/t-mint 1970-01-01 01:00:00.000000000 +0100 |
1286 |
-+++ gcc-4.5.2/gcc/config/m68k/t-mint 2011-02-06 17:09:48.968750000 +0100 |
1287 |
-@@ -0,0 +1,41 @@ |
1288 |
-+# |
1289 |
-+# Use multiple libraries |
1290 |
-+# |
1291 |
-+ |
1292 |
-+MULTILIB_OPTIONS = m68020-60/mcpu=5475 mshort |
1293 |
-+ |
1294 |
-+MULTILIB_DIRNAMES = m68020-60 m5475 mshort |
1295 |
-+ |
1296 |
-+MULTILIB_MATCHES = \ |
1297 |
-+ m68020-60=m68881 \ |
1298 |
-+ m68020-60=m68020 \ |
1299 |
-+ m68020-60=m68020-40 \ |
1300 |
-+ m68020-60=mc68020 \ |
1301 |
-+ m68020-60=m68030 \ |
1302 |
-+ m68020-60=m68040 \ |
1303 |
-+ m68020-60=m68060 \ |
1304 |
-+ m68020-60=mcpu?68020 \ |
1305 |
-+ m68020-60=mcpu?68030 \ |
1306 |
-+ m68020-60=mcpu?68040 \ |
1307 |
-+ m68020-60=mcpu?68060 \ |
1308 |
-+ m68020-60=march?68020 \ |
1309 |
-+ m68020-60=march?68030 \ |
1310 |
-+ m68020-60=march?68040 \ |
1311 |
-+ m68020-60=march?68060 \ |
1312 |
-+ mcpu?5475=mcfv4e \ |
1313 |
-+ mcpu?5475=mcpu?5470 \ |
1314 |
-+ mcpu?5475=mcpu?5471 \ |
1315 |
-+ mcpu?5475=mcpu?5472 \ |
1316 |
-+ mcpu?5475=mcpu?5473 \ |
1317 |
-+ mcpu?5475=mcpu?5474 \ |
1318 |
-+ mcpu?5475=mcpu?547x \ |
1319 |
-+ mcpu?5475=mcpu?5480 \ |
1320 |
-+ mcpu?5475=mcpu?5481 \ |
1321 |
-+ mcpu?5475=mcpu?5482 \ |
1322 |
-+ mcpu?5475=mcpu?5483 \ |
1323 |
-+ mcpu?5475=mcpu?5484 \ |
1324 |
-+ mcpu?5475=mcpu?5485 \ |
1325 |
-+ mcpu?5475=mcpu?548x |
1326 |
-+ |
1327 |
-+LIBGCC = stmp-multilib |
1328 |
-+INSTALL_LIBGCC = install-multilib |
1329 |
---- gcc-4.5.2/gcc/config.gcc 2010-10-09 11:35:53.000000000 +0200 |
1330 |
-+++ gcc-4.5.2/gcc/config.gcc 2011-02-06 17:09:48.984375000 +0100 |
1331 |
-@@ -1663,6 +1663,15 @@ |
1332 |
- tmake_file="$tmake_file m68k/t-slibgcc-elf-ver" |
1333 |
- fi |
1334 |
- ;; |
1335 |
-+m68k-*-mint*) |
1336 |
-+ default_m68k_cpu=68000 |
1337 |
-+ default_cf_cpu=5475 |
1338 |
-+ tm_file="${tm_file} m68k/mint.h" |
1339 |
-+ tm_defines="${tm_defines} MOTOROLA=1" |
1340 |
-+ tmake_file="m68k/t-floatlib m68k/t-mint" |
1341 |
-+ gas=yes |
1342 |
-+ gnu_ld=yes |
1343 |
-+ ;; |
1344 |
- m68k-*-rtems*) |
1345 |
- default_m68k_cpu=68020 |
1346 |
- default_cf_cpu=5206 |
1347 |
---- gcc-4.5.2/libdecnumber/decNumberLocal.h 2009-04-09 17:00:19.000000000 +0200 |
1348 |
-+++ gcc-4.5.2/libdecnumber/decNumberLocal.h 2011-02-06 17:09:49.015625000 +0100 |
1349 |
-@@ -188,7 +188,7 @@ |
1350 |
- #if (DECNUMMAXE != DEC_MAX_EMAX) |
1351 |
- #error Maximum exponent mismatch |
1352 |
- #endif |
1353 |
-- #if (DECNUMMINE != DEC_MIN_EMIN) |
1354 |
-+ #if !(DECNUMMINE == DEC_MIN_EMIN) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ |
1355 |
- #error Minimum exponent mismatch |
1356 |
- #endif |
1357 |
- |
1358 |
---- gcc-4.5.2/libgcc/config.host 2010-09-12 05:27:09.000000000 +0200 |
1359 |
-+++ gcc-4.5.2/libgcc/config.host 2011-02-06 17:09:49.031250000 +0100 |
1360 |
-@@ -391,6 +391,8 @@ |
1361 |
- # with ELF format using glibc 2 |
1362 |
- # aka the GNU/Linux C library 6. |
1363 |
- ;; |
1364 |
-+m68k-*-mint*) |
1365 |
-+ ;; |
1366 |
- m68k-*-rtems*) |
1367 |
- ;; |
1368 |
- mcore-*-elf) |
1369 |
---- gcc-4.5.2/libiberty/hex.c 2007-01-31 21:05:50.000000000 +0100 |
1370 |
-+++ gcc-4.5.2/libiberty/hex.c 2011-02-06 17:09:49.046875000 +0100 |
1371 |
-@@ -24,7 +24,7 @@ |
1372 |
- #include "libiberty.h" |
1373 |
- #include "safe-ctype.h" /* for HOST_CHARSET_ASCII */ |
1374 |
- |
1375 |
--#if EOF != -1 |
1376 |
-+#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ |
1377 |
- #error "hex.c requires EOF == -1" |
1378 |
- #endif |
1379 |
- |
1380 |
---- gcc-4.5.2/libiberty/safe-ctype.c 2005-05-10 17:33:18.000000000 +0200 |
1381 |
-+++ gcc-4.5.2/libiberty/safe-ctype.c 2011-02-06 17:09:49.062500000 +0100 |
1382 |
-@@ -119,7 +119,7 @@ |
1383 |
- #include <safe-ctype.h> |
1384 |
- #include <stdio.h> /* for EOF */ |
1385 |
- |
1386 |
--#if EOF != -1 |
1387 |
-+#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ |
1388 |
- #error "<safe-ctype.h> requires EOF == -1" |
1389 |
- #endif |
1390 |
- |
1391 |
---- gcc-4.5.2/libmudflap/mf-hooks2.c 2009-04-09 17:00:19.000000000 +0200 |
1392 |
-+++ gcc-4.5.2/libmudflap/mf-hooks2.c 2011-02-06 17:09:49.093750000 +0100 |
1393 |
-@@ -1668,6 +1668,8 @@ |
1394 |
- } |
1395 |
- |
1396 |
- |
1397 |
-+#ifdef HAVE_DLFCN_H |
1398 |
-+ |
1399 |
- WRAPPER2(void *, dlopen, const char *path, int flags) |
1400 |
- { |
1401 |
- void *p; |
1402 |
-@@ -1735,6 +1737,8 @@ |
1403 |
- return p; |
1404 |
- } |
1405 |
- |
1406 |
-+#endif /* HAVE_DLFCN_H */ |
1407 |
-+ |
1408 |
- |
1409 |
- #if defined (HAVE_SYS_IPC_H) && defined (HAVE_SYS_SEM_H) && defined (HAVE_SYS_SHM_H) |
1410 |
- |
1411 |
---- gcc-4.5.2/libmudflap/mf-runtime.h 2009-04-09 17:00:19.000000000 +0200 |
1412 |
-+++ gcc-4.5.2/libmudflap/mf-runtime.h 2011-02-06 17:09:49.109375000 +0100 |
1413 |
-@@ -97,6 +97,7 @@ |
1414 |
- instrumented modules are meant to be affected. */ |
1415 |
- |
1416 |
- #ifdef _MUDFLAP |
1417 |
-+#ifndef __USER_LABEL_PREFIX__ |
1418 |
- #pragma redefine_extname memcpy __mfwrap_memcpy |
1419 |
- #pragma redefine_extname memmove __mfwrap_memmove |
1420 |
- #pragma redefine_extname memset __mfwrap_memset |
1421 |
-@@ -230,6 +231,141 @@ |
1422 |
- #pragma redefine_extname getprotoent __mfwrap_getprotoent |
1423 |
- #pragma redefine_extname getprotobyname __mfwrap_getprotobyname |
1424 |
- #pragma redefine_extname getprotobynumber __mfwrap_getprotobynumber |
1425 |
-+#else |
1426 |
-+#pragma redefine_extname memcpy ___mfwrap_memcpy |
1427 |
-+#pragma redefine_extname memmove ___mfwrap_memmove |
1428 |
-+#pragma redefine_extname memset ___mfwrap_memset |
1429 |
-+#pragma redefine_extname memcmp ___mfwrap_memcmp |
1430 |
-+#pragma redefine_extname memchr ___mfwrap_memchr |
1431 |
-+#pragma redefine_extname memrchr ___mfwrap_memrchr |
1432 |
-+#pragma redefine_extname strcpy ___mfwrap_strcpy |
1433 |
-+#pragma redefine_extname strncpy ___mfwrap_strncpy |
1434 |
-+#pragma redefine_extname strcat ___mfwrap_strcat |
1435 |
-+#pragma redefine_extname strncat ___mfwrap_strncat |
1436 |
-+#pragma redefine_extname strcmp ___mfwrap_strcmp |
1437 |
-+#pragma redefine_extname strcasecmp ___mfwrap_strcasecmp |
1438 |
-+#pragma redefine_extname strncmp ___mfwrap_strncmp |
1439 |
-+#pragma redefine_extname strncasecmp ___mfwrap_strncasecmp |
1440 |
-+#pragma redefine_extname strdup ___mfwrap_strdup |
1441 |
-+#pragma redefine_extname strndup ___mfwrap_strndup |
1442 |
-+#pragma redefine_extname strchr ___mfwrap_strchr |
1443 |
-+#pragma redefine_extname strrchr ___mfwrap_strrchr |
1444 |
-+#pragma redefine_extname strstr ___mfwrap_strstr |
1445 |
-+#pragma redefine_extname memmem ___mfwrap_memmem |
1446 |
-+#pragma redefine_extname strlen ___mfwrap_strlen |
1447 |
-+#pragma redefine_extname strnlen ___mfwrap_strnlen |
1448 |
-+#pragma redefine_extname bzero ___mfwrap_bzero |
1449 |
-+#pragma redefine_extname bcopy ___mfwrap_bcopy |
1450 |
-+#pragma redefine_extname bcmp ___mfwrap_bcmp |
1451 |
-+#pragma redefine_extname index ___mfwrap_index |
1452 |
-+#pragma redefine_extname rindex ___mfwrap_rindex |
1453 |
-+#pragma redefine_extname asctime ___mfwrap_asctime |
1454 |
-+#pragma redefine_extname ctime ___mfwrap_ctime |
1455 |
-+#pragma redefine_extname gmtime ___mfwrap_gmtime |
1456 |
-+#pragma redefine_extname localtime ___mfwrap_localtime |
1457 |
-+#pragma redefine_extname time ___mfwrap_time |
1458 |
-+#pragma redefine_extname strerror ___mfwrap_strerror |
1459 |
-+#pragma redefine_extname fopen ___mfwrap_fopen |
1460 |
-+#pragma redefine_extname fdopen ___mfwrap_fdopen |
1461 |
-+#pragma redefine_extname freopen ___mfwrap_freopen |
1462 |
-+#pragma redefine_extname fclose ___mfwrap_fclose |
1463 |
-+#pragma redefine_extname fread ___mfwrap_fread |
1464 |
-+#pragma redefine_extname fwrite ___mfwrap_fwrite |
1465 |
-+#pragma redefine_extname fgetc ___mfwrap_fgetc |
1466 |
-+#pragma redefine_extname fgets ___mfwrap_fgets |
1467 |
-+#pragma redefine_extname getc ___mfwrap_getc |
1468 |
-+#pragma redefine_extname gets ___mfwrap_gets |
1469 |
-+#pragma redefine_extname ungetc ___mfwrap_ungetc |
1470 |
-+#pragma redefine_extname fputc ___mfwrap_fputc |
1471 |
-+#pragma redefine_extname fputs ___mfwrap_fputs |
1472 |
-+#pragma redefine_extname putc ___mfwrap_putc |
1473 |
-+#pragma redefine_extname puts ___mfwrap_puts |
1474 |
-+#pragma redefine_extname clearerr ___mfwrap_clearerr |
1475 |
-+#pragma redefine_extname feof ___mfwrap_feof |
1476 |
-+#pragma redefine_extname ferror ___mfwrap_ferror |
1477 |
-+#pragma redefine_extname fileno ___mfwrap_fileno |
1478 |
-+#pragma redefine_extname printf ___mfwrap_printf |
1479 |
-+#pragma redefine_extname fprintf ___mfwrap_fprintf |
1480 |
-+#pragma redefine_extname sprintf ___mfwrap_sprintf |
1481 |
-+#pragma redefine_extname snprintf ___mfwrap_snprintf |
1482 |
-+#pragma redefine_extname vprintf ___mfwrap_vprintf |
1483 |
-+#pragma redefine_extname vfprintf ___mfwrap_vfprintf |
1484 |
-+#pragma redefine_extname vsprintf ___mfwrap_vsprintf |
1485 |
-+#pragma redefine_extname vsnprintf ___mfwrap_vsnprintf |
1486 |
-+#pragma redefine_extname access ___mfwrap_access |
1487 |
-+#pragma redefine_extname remove ___mfwrap_remove |
1488 |
-+#pragma redefine_extname fflush ___mfwrap_fflush |
1489 |
-+#pragma redefine_extname fseek ___mfwrap_fseek |
1490 |
-+#pragma redefine_extname ftell ___mfwrap_ftell |
1491 |
-+#pragma redefine_extname rewind ___mfwrap_rewind |
1492 |
-+#pragma redefine_extname fgetpos ___mfwrap_fgetpos |
1493 |
-+#pragma redefine_extname fsetpos ___mfwrap_fsetpos |
1494 |
-+#pragma redefine_extname stat ___mfwrap_stat |
1495 |
-+#pragma redefine_extname fstat ___mfwrap_fstat |
1496 |
-+#pragma redefine_extname lstat ___mfwrap_lstat |
1497 |
-+#pragma redefine_extname mkfifo ___mfwrap_mkfifo |
1498 |
-+#pragma redefine_extname setvbuf ___mfwrap_setvbuf |
1499 |
-+#pragma redefine_extname setbuf ___mfwrap_setbuf |
1500 |
-+#pragma redefine_extname setbuffer ___mfwrap_setbuffer |
1501 |
-+#pragma redefine_extname setlinebuf ___mfwrap_setlinebuf |
1502 |
-+#pragma redefine_extname opendir ___mfwrap_opendir |
1503 |
-+#pragma redefine_extname closedir ___mfwrap_closedir |
1504 |
-+#pragma redefine_extname readdir ___mfwrap_readdir |
1505 |
-+#pragma redefine_extname recv ___mfwrap_recv |
1506 |
-+#pragma redefine_extname recvfrom ___mfwrap_recvfrom |
1507 |
-+#pragma redefine_extname recvmsg ___mfwrap_recvmsg |
1508 |
-+#pragma redefine_extname send ___mfwrap_send |
1509 |
-+#pragma redefine_extname sendto ___mfwrap_sendto |
1510 |
-+#pragma redefine_extname sendmsg ___mfwrap_sendmsg |
1511 |
-+#pragma redefine_extname setsockopt ___mfwrap_setsockopt |
1512 |
-+#pragma redefine_extname getsockopt ___mfwrap_getsockopt |
1513 |
-+#pragma redefine_extname accept ___mfwrap_accept |
1514 |
-+#pragma redefine_extname bind ___mfwrap_bind |
1515 |
-+#pragma redefine_extname connect ___mfwrap_connect |
1516 |
-+#pragma redefine_extname gethostname ___mfwrap_gethostname |
1517 |
-+#pragma redefine_extname sethostname ___mfwrap_sethostname |
1518 |
-+#pragma redefine_extname gethostbyname ___mfwrap_gethostbyname |
1519 |
-+#pragma redefine_extname wait ___mfwrap_wait |
1520 |
-+#pragma redefine_extname waitpid ___mfwrap_waitpid |
1521 |
-+#pragma redefine_extname popen ___mfwrap_popen |
1522 |
-+#pragma redefine_extname pclose ___mfwrap_pclose |
1523 |
-+#pragma redefine_extname execve ___mfwrap_execve |
1524 |
-+#pragma redefine_extname execv ___mfwrap_execv |
1525 |
-+#pragma redefine_extname execvp ___mfwrap_execvp |
1526 |
-+#pragma redefine_extname system ___mfwrap_system |
1527 |
-+#pragma redefine_extname dlopen ___mfwrap_dlopen |
1528 |
-+#pragma redefine_extname dlerror ___mfwrap_dlerror |
1529 |
-+#pragma redefine_extname dlsym ___mfwrap_dlsym |
1530 |
-+#pragma redefine_extname dlclose ___mfwrap_dlclose |
1531 |
-+#pragma redefine_extname fopen64 ___mfwrap_fopen64 |
1532 |
-+#pragma redefine_extname freopen64 ___mfwrap_freopen64 |
1533 |
-+#pragma redefine_extname stat64 ___mfwrap_stat64 |
1534 |
-+#pragma redefine_extname fseeko64 ___mfwrap_fseeko64 |
1535 |
-+#pragma redefine_extname ftello64 ___mfwrap_ftello64 |
1536 |
-+#pragma redefine_extname semop ___mfwrap_semop |
1537 |
-+#pragma redefine_extname semctl ___mfwrap_semctl |
1538 |
-+#pragma redefine_extname shmctl ___mfwrap_shmctl |
1539 |
-+#pragma redefine_extname shmat ___mfwrap_shmat |
1540 |
-+#pragma redefine_extname shmdt ___mfwrap_shmdt |
1541 |
-+#pragma redefine_extname __ctype_b_loc ___mfwrap___ctype_b_loc |
1542 |
-+#pragma redefine_extname __ctype_toupper_loc ___mfwrap___ctype_toupper_loc |
1543 |
-+#pragma redefine_extname __ctype_tolower_loc ___mfwrap___ctype_tolower_loc |
1544 |
-+#pragma redefine_extname getlogin ___mfwrap_getlogin |
1545 |
-+#pragma redefine_extname cuserid ___mfwrap_cuserid |
1546 |
-+#pragma redefine_extname getpwnam ___mfwrap_getpwnam |
1547 |
-+#pragma redefine_extname getpwuid ___mfwrap_getpwuid |
1548 |
-+#pragma redefine_extname getgrnam ___mfwrap_getgrnam |
1549 |
-+#pragma redefine_extname getgrgid ___mfwrap_getgrgid |
1550 |
-+#pragma redefine_extname getservent ___mfwrap_getservent |
1551 |
-+#pragma redefine_extname getservbyname ___mfwrap_getservbyname |
1552 |
-+#pragma redefine_extname getservbyport ___mfwrap_getservbyport |
1553 |
-+#pragma redefine_extname gai_strerror ___mfwrap_gai_strerror |
1554 |
-+#pragma redefine_extname getmntent ___mfwrap_getmntent |
1555 |
-+#pragma redefine_extname inet_ntoa ___mfwrap_inet_ntoa |
1556 |
-+#pragma redefine_extname getprotoent ___mfwrap_getprotoent |
1557 |
-+#pragma redefine_extname getprotobyname ___mfwrap_getprotobyname |
1558 |
-+#pragma redefine_extname getprotobynumber ___mfwrap_getprotobynumber |
1559 |
-+#endif |
1560 |
- |
1561 |
- /* Disable glibc macros. */ |
1562 |
- #define __NO_STRING_INLINES |
1563 |
---- gcc-4.5.2/libssp/ssp.c 2009-04-13 12:37:17.000000000 +0200 |
1564 |
-+++ gcc-4.5.2/libssp/ssp.c 2011-02-06 17:09:49.125000000 +0100 |
1565 |
-@@ -63,6 +63,9 @@ |
1566 |
- #ifdef HAVE_SYSLOG_H |
1567 |
- # include <syslog.h> |
1568 |
- #endif |
1569 |
-+#ifdef __MINT__ |
1570 |
-+#include <mint/osbind.h> |
1571 |
-+#endif |
1572 |
- |
1573 |
- void *__stack_chk_guard = 0; |
1574 |
- |
1575 |
-@@ -98,6 +101,9 @@ |
1576 |
- { |
1577 |
- #ifdef __GNU_LIBRARY__ |
1578 |
- extern char * __progname; |
1579 |
-+#elif defined (__MINT__) |
1580 |
-+ extern char * program_invocation_short_name; |
1581 |
-+ #define __progname program_invocation_short_name |
1582 |
- #else |
1583 |
- static const char __progname[] = ""; |
1584 |
- #endif |
1585 |
-@@ -139,6 +145,9 @@ |
1586 |
- syslog (LOG_CRIT, msg3); |
1587 |
- #endif /* HAVE_SYSLOG_H */ |
1588 |
- |
1589 |
-+#ifdef __MINT__ |
1590 |
-+ Pterm(127); |
1591 |
-+#else |
1592 |
- /* Try very hard to exit. Note that signals may be blocked preventing |
1593 |
- the first two options from working. The use of volatile is here to |
1594 |
- prevent optimizers from "knowing" that __builtin_trap is called first, |
1595 |
-@@ -160,6 +169,7 @@ |
1596 |
- break; |
1597 |
- } |
1598 |
- } |
1599 |
-+#endif |
1600 |
- } |
1601 |
- |
1602 |
- void |
1603 |
---- gcc-4.5.2/libstdc++-v3/config/os/mint/ctype_base.h 1970-01-01 01:00:00.000000000 +0100 |
1604 |
-+++ gcc-4.5.2/libstdc++-v3/config/os/mint/ctype_base.h 2011-02-06 17:09:49.156250000 +0100 |
1605 |
-@@ -0,0 +1,55 @@ |
1606 |
-+// Locale support -*- C++ -*- |
1607 |
-+ |
1608 |
-+// Copyright (C) 1997, 1998, 1999, 2003, 2009 Free Software Foundation, Inc. |
1609 |
-+// |
1610 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
1611 |
-+// software; you can redistribute it and/or modify it under the |
1612 |
-+// terms of the GNU General Public License as published by the |
1613 |
-+// Free Software Foundation; either version 3, or (at your option) |
1614 |
-+// any later version. |
1615 |
-+ |
1616 |
-+// This library is distributed in the hope that it will be useful, |
1617 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
1618 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1619 |
-+// GNU General Public License for more details. |
1620 |
-+ |
1621 |
-+// Under Section 7 of GPL version 3, you are granted additional |
1622 |
-+// permissions described in the GCC Runtime Library Exception, version |
1623 |
-+// 3.1, as published by the Free Software Foundation. |
1624 |
-+ |
1625 |
-+// You should have received a copy of the GNU General Public License and |
1626 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
1627 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
1628 |
-+// <http://www.gnu.org/licenses/>. |
1629 |
-+ |
1630 |
-+// |
1631 |
-+// ISO C++ 14882: 22.1 Locales |
1632 |
-+// |
1633 |
-+ |
1634 |
-+// Mint C types, taken from mintlib-0.57.3/include/ctype.h |
1635 |
-+ |
1636 |
-+_GLIBCXX_BEGIN_NAMESPACE(std) |
1637 |
-+ |
1638 |
-+ /// @brief Base class for ctype. |
1639 |
-+ struct ctype_base |
1640 |
-+ { |
1641 |
-+ // Non-standard typedefs. |
1642 |
-+ typedef const int* __to_type; |
1643 |
-+ |
1644 |
-+ // NB: Offsets into ctype<char>::_M_table force a particular size |
1645 |
-+ // on the mask type. Because of this, we don't use an enum. |
1646 |
-+ typedef unsigned int mask; |
1647 |
-+ static const mask upper = _CTu; |
1648 |
-+ static const mask lower = _CTl; |
1649 |
-+ static const mask alpha = _CTu | _CTl; |
1650 |
-+ static const mask digit = _CTd; |
1651 |
-+ static const mask xdigit = _CTx; |
1652 |
-+ static const mask space = _CTs; |
1653 |
-+ static const mask print = _CTP; |
1654 |
-+ static const mask graph = _CTg; |
1655 |
-+ static const mask cntrl = _CTc; |
1656 |
-+ static const mask punct = _CTp; |
1657 |
-+ static const mask alnum = _CTd | _CTu | _CTl ; |
1658 |
-+ }; |
1659 |
-+ |
1660 |
-+_GLIBCXX_END_NAMESPACE |
1661 |
---- gcc-4.5.2/libstdc++-v3/config/os/mint/ctype_inline.h 1970-01-01 01:00:00.000000000 +0100 |
1662 |
-+++ gcc-4.5.2/libstdc++-v3/config/os/mint/ctype_inline.h 2011-02-06 17:09:49.171875000 +0100 |
1663 |
-@@ -0,0 +1,73 @@ |
1664 |
-+// Locale support -*- C++ -*- |
1665 |
-+ |
1666 |
-+// Copyright (C) 2000, 2003, 2009 Free Software Foundation, Inc. |
1667 |
-+// |
1668 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
1669 |
-+// software; you can redistribute it and/or modify it under the |
1670 |
-+// terms of the GNU General Public License as published by the |
1671 |
-+// Free Software Foundation; either version 3, or (at your option) |
1672 |
-+// any later version. |
1673 |
-+ |
1674 |
-+// This library is distributed in the hope that it will be useful, |
1675 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
1676 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1677 |
-+// GNU General Public License for more details. |
1678 |
-+ |
1679 |
-+// Under Section 7 of GPL version 3, you are granted additional |
1680 |
-+// permissions described in the GCC Runtime Library Exception, version |
1681 |
-+// 3.1, as published by the Free Software Foundation. |
1682 |
-+ |
1683 |
-+// You should have received a copy of the GNU General Public License and |
1684 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
1685 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
1686 |
-+// <http://www.gnu.org/licenses/>. |
1687 |
-+ |
1688 |
-+/** @file ctype_inline.h |
1689 |
-+ * This is an internal header file, included by other library headers. |
1690 |
-+ * You should not attempt to use it directly. |
1691 |
-+ */ |
1692 |
-+ |
1693 |
-+// |
1694 |
-+// ISO C++ 14882: 22.1 Locales |
1695 |
-+// |
1696 |
-+ |
1697 |
-+// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) |
1698 |
-+// functions go in ctype.cc |
1699 |
-+ |
1700 |
-+// Mint C types, taken from mintlib-0.57.3/include/ctype.h |
1701 |
-+ |
1702 |
-+_GLIBCXX_BEGIN_NAMESPACE(std) |
1703 |
-+ |
1704 |
-+ bool |
1705 |
-+ ctype<char>:: |
1706 |
-+ is(mask __m, char __c) const |
1707 |
-+ { return _ctype[(unsigned char)((__c) + 1)] & __m; } |
1708 |
-+ |
1709 |
-+ const char* |
1710 |
-+ ctype<char>:: |
1711 |
-+ is(const char* __low, const char* __high, mask* __vec) const |
1712 |
-+ { |
1713 |
-+ while (__low < __high) |
1714 |
-+ *__vec++ = _ctype[(*__low++) + 1] ; |
1715 |
-+ return __high; |
1716 |
-+ } |
1717 |
-+ |
1718 |
-+ const char* |
1719 |
-+ ctype<char>:: |
1720 |
-+ scan_is(mask __m, const char* __low, const char* __high) const |
1721 |
-+ { |
1722 |
-+ while (__low < __high && !this->is(__m, *__low)) |
1723 |
-+ ++__low; |
1724 |
-+ return __low; |
1725 |
-+ } |
1726 |
-+ |
1727 |
-+ const char* |
1728 |
-+ ctype<char>:: |
1729 |
-+ scan_not(mask __m, const char* __low, const char* __high) const |
1730 |
-+ { |
1731 |
-+ while (__low < __high && this->is(__m, *__low) != 0) |
1732 |
-+ ++__low; |
1733 |
-+ return __low; |
1734 |
-+ } |
1735 |
-+ |
1736 |
-+_GLIBCXX_END_NAMESPACE |
1737 |
---- gcc-4.5.2/libstdc++-v3/config/os/mint/ctype_noninline.h 1970-01-01 01:00:00.000000000 +0100 |
1738 |
-+++ gcc-4.5.2/libstdc++-v3/config/os/mint/ctype_noninline.h 2011-02-06 17:09:49.187500000 +0100 |
1739 |
-@@ -0,0 +1,92 @@ |
1740 |
-+// Locale support -*- C++ -*- |
1741 |
-+ |
1742 |
-+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2009 |
1743 |
-+// Free Software Foundation, Inc. |
1744 |
-+// |
1745 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
1746 |
-+// software; you can redistribute it and/or modify it under the |
1747 |
-+// terms of the GNU General Public License as published by the |
1748 |
-+// Free Software Foundation; either version 3, or (at your option) |
1749 |
-+// any later version. |
1750 |
-+ |
1751 |
-+// This library is distributed in the hope that it will be useful, |
1752 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
1753 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1754 |
-+// GNU General Public License for more details. |
1755 |
-+ |
1756 |
-+// Under Section 7 of GPL version 3, you are granted additional |
1757 |
-+// permissions described in the GCC Runtime Library Exception, version |
1758 |
-+// 3.1, as published by the Free Software Foundation. |
1759 |
-+ |
1760 |
-+// You should have received a copy of the GNU General Public License and |
1761 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
1762 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
1763 |
-+// <http://www.gnu.org/licenses/>. |
1764 |
-+ |
1765 |
-+/** @file ctype_noninline.h |
1766 |
-+ * This is an internal header file, included by other library headers. |
1767 |
-+ * You should not attempt to use it directly. |
1768 |
-+ */ |
1769 |
-+ |
1770 |
-+// |
1771 |
-+// ISO C++ 14882: 22.1 Locales |
1772 |
-+// |
1773 |
-+ |
1774 |
-+// Information as gleaned from /usr/include/ctype.h |
1775 |
-+ |
1776 |
-+ const ctype_base::mask* |
1777 |
-+ ctype<char>::classic_table() throw() |
1778 |
-+ { return 0; } |
1779 |
-+ |
1780 |
-+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del, |
1781 |
-+ size_t __refs) |
1782 |
-+ : facet(__refs), _M_del(__table != 0 && __del), |
1783 |
-+ _M_toupper(NULL), _M_tolower(NULL), |
1784 |
-+ _M_table(__table ? __table : classic_table()) |
1785 |
-+ { |
1786 |
-+ memset(_M_widen, 0, sizeof(_M_widen)); |
1787 |
-+ _M_widen_ok = 0; |
1788 |
-+ memset(_M_narrow, 0, sizeof(_M_narrow)); |
1789 |
-+ _M_narrow_ok = 0; |
1790 |
-+ } |
1791 |
-+ |
1792 |
-+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) |
1793 |
-+ : facet(__refs), _M_del(__table != 0 && __del), |
1794 |
-+ _M_toupper(NULL), _M_tolower(NULL), |
1795 |
-+ _M_table(__table ? __table : classic_table()) |
1796 |
-+ { |
1797 |
-+ memset(_M_widen, 0, sizeof(_M_widen)); |
1798 |
-+ _M_widen_ok = 0; |
1799 |
-+ memset(_M_narrow, 0, sizeof(_M_narrow)); |
1800 |
-+ _M_narrow_ok = 0; |
1801 |
-+ } |
1802 |
-+ |
1803 |
-+ char |
1804 |
-+ ctype<char>::do_toupper(char __c) const |
1805 |
-+ { return ::toupper((int) __c); } |
1806 |
-+ |
1807 |
-+ const char* |
1808 |
-+ ctype<char>::do_toupper(char* __low, const char* __high) const |
1809 |
-+ { |
1810 |
-+ while (__low < __high) |
1811 |
-+ { |
1812 |
-+ *__low = ::toupper((int) *__low); |
1813 |
-+ ++__low; |
1814 |
-+ } |
1815 |
-+ return __high; |
1816 |
-+ } |
1817 |
-+ |
1818 |
-+ char |
1819 |
-+ ctype<char>::do_tolower(char __c) const |
1820 |
-+ { return ::tolower((int) __c); } |
1821 |
-+ |
1822 |
-+ const char* |
1823 |
-+ ctype<char>::do_tolower(char* __low, const char* __high) const |
1824 |
-+ { |
1825 |
-+ while (__low < __high) |
1826 |
-+ { |
1827 |
-+ *__low = ::tolower((int) *__low); |
1828 |
-+ ++__low; |
1829 |
-+ } |
1830 |
-+ return __high; |
1831 |
-+ } |
1832 |
---- gcc-4.5.2/libstdc++-v3/config/os/mint/os_defines.h 1970-01-01 01:00:00.000000000 +0100 |
1833 |
-+++ gcc-4.5.2/libstdc++-v3/config/os/mint/os_defines.h 2011-02-06 17:09:49.203125000 +0100 |
1834 |
-@@ -0,0 +1,36 @@ |
1835 |
-+// Specific definitions for MiNT -*- C++ -*- |
1836 |
-+ |
1837 |
-+// Copyright (C) 2000, 2009 Free Software Foundation, Inc. |
1838 |
-+// |
1839 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
1840 |
-+// software; you can redistribute it and/or modify it under the |
1841 |
-+// terms of the GNU General Public License as published by the |
1842 |
-+// Free Software Foundation; either version 3, or (at your option) |
1843 |
-+// any later version. |
1844 |
-+ |
1845 |
-+// This library is distributed in the hope that it will be useful, |
1846 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
1847 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
1848 |
-+// GNU General Public License for more details. |
1849 |
-+ |
1850 |
-+// Under Section 7 of GPL version 3, you are granted additional |
1851 |
-+// permissions described in the GCC Runtime Library Exception, version |
1852 |
-+// 3.1, as published by the Free Software Foundation. |
1853 |
-+ |
1854 |
-+// You should have received a copy of the GNU General Public License and |
1855 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
1856 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
1857 |
-+// <http://www.gnu.org/licenses/>. |
1858 |
-+ |
1859 |
-+/** @file os_defines.h |
1860 |
-+ * This is an internal header file, included by other library headers. |
1861 |
-+ * You should not attempt to use it directly. |
1862 |
-+ */ |
1863 |
-+ |
1864 |
-+#ifndef _GLIBCXX_OS_DEFINES |
1865 |
-+#define _GLIBCXX_OS_DEFINES 1 |
1866 |
-+ |
1867 |
-+// System-specific #define, typedefs, corrections, etc, go here. This |
1868 |
-+// file will come before all others. |
1869 |
-+ |
1870 |
-+#endif |
1871 |
---- gcc-4.5.2/libstdc++-v3/configure 2010-08-27 20:25:00.000000000 +0200 |
1872 |
-+++ gcc-4.5.2/libstdc++-v3/configure 2011-02-06 17:09:50.171875000 +0100 |
1873 |
-@@ -44576,7 +44576,7 @@ |
1874 |
- ;; |
1875 |
- esac |
1876 |
- ;; |
1877 |
-- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) |
1878 |
-+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*) |
1879 |
- |
1880 |
- # All these tests are for C++; save the language and the compiler flags. |
1881 |
- # The CXXFLAGS thing is suspicious, but based on similar bits previously |
1882 |
---- gcc-4.5.2/libstdc++-v3/configure.host 2010-12-03 13:46:12.000000000 +0100 |
1883 |
-+++ gcc-4.5.2/libstdc++-v3/configure.host 2011-02-06 17:09:50.453125000 +0100 |
1884 |
-@@ -261,6 +261,10 @@ |
1885 |
- error_constants_dir="os/mingw32" |
1886 |
- OPT_LDFLAGS="${OPT_LDFLAGS} -no-undefined -bindir \$(bindir)" |
1887 |
- ;; |
1888 |
-+ mint*) |
1889 |
-+ SECTION_FLAGS="${SECTION_FLAGS} -D_GNU_SOURCE" |
1890 |
-+ os_include_dir="os/mint" |
1891 |
-+ ;; |
1892 |
- netbsd*) |
1893 |
- os_include_dir="os/bsd/netbsd" |
1894 |
- ;; |
1895 |
---- gcc-4.5.2/libstdc++-v3/crossconfig.m4 2009-06-02 21:15:03.000000000 +0200 |
1896 |
-+++ gcc-4.5.2/libstdc++-v3/crossconfig.m4 2011-02-06 17:09:50.484375000 +0100 |
1897 |
-@@ -141,7 +141,7 @@ |
1898 |
- ;; |
1899 |
- esac |
1900 |
- ;; |
1901 |
-- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) |
1902 |
-+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*) |
1903 |
- GLIBCXX_CHECK_COMPILER_FEATURES |
1904 |
- GLIBCXX_CHECK_LINKER_FEATURES |
1905 |
- GLIBCXX_CHECK_MATH_SUPPORT |
1906 |
|
1907 |
diff --git a/sys-devel/gcc/files/4.7.2/mint-unroll.patch b/sys-devel/gcc/files/4.7.2/mint-unroll.patch |
1908 |
deleted file mode 100644 |
1909 |
index ab22052939..0000000000 |
1910 |
--- a/sys-devel/gcc/files/4.7.2/mint-unroll.patch |
1911 |
+++ /dev/null |
1912 |
@@ -1,13 +0,0 @@ |
1913 |
---- libgfortran/Makefile.in.old 2013-04-09 11:07:19.000000000 +0100 |
1914 |
-+++ libgfortran/Makefile.in 2013-04-09 11:08:10.000000000 +0100 |
1915 |
-@@ -5889,9 +5889,7 @@ |
1916 |
- @LIBGFOR_USE_SYMVER_SUN_TRUE@@LIBGFOR_USE_SYMVER_TRUE@ > $@ || (rm -f $@ ; exit 1) |
1917 |
- |
1918 |
- # Turn on vectorization and loop unrolling for matmul. |
1919 |
--$(patsubst %.c,%.lo,$(notdir $(i_matmul_c))): AM_CFLAGS += -ftree-vectorize -funroll-loops |
1920 |
--# Logical matmul doesn't vectorize. |
1921 |
--$(patsubst %.c,%.lo,$(notdir $(i_matmull_c))): AM_CFLAGS += -funroll-loops |
1922 |
-+$(patsubst %.c,%.lo,$(notdir $(i_matmul_c))): AM_CFLAGS += -ftree-vectorize |
1923 |
- |
1924 |
- # Add the -fallow-leading-underscore option when needed |
1925 |
- $(patsubst %.F90,%.lo,$(patsubst %.f90,%.lo,$(notdir $(gfor_specific_src)))): AM_FCFLAGS += -fallow-leading-underscore |
1926 |
|
1927 |
diff --git a/sys-devel/gcc/files/4.7.2/mint1.patch b/sys-devel/gcc/files/4.7.2/mint1.patch |
1928 |
deleted file mode 100644 |
1929 |
index 737f9b44ee..0000000000 |
1930 |
--- a/sys-devel/gcc/files/4.7.2/mint1.patch |
1931 |
+++ /dev/null |
1932 |
@@ -1,1220 +0,0 @@ |
1933 |
-diff -aurN gcc-4.6.3/config-ml.in gcc-4.6.3-mint-20120503/config-ml.in |
1934 |
---- gcc-4.6.3/config-ml.in 2010-11-19 21:25:49.000000000 +0100 |
1935 |
-+++ gcc-4.6.3-mint-20120503/config-ml.in 2012-05-03 18:23:00.890625000 +0200 |
1936 |
-@@ -351,6 +351,23 @@ |
1937 |
- esac |
1938 |
- done |
1939 |
- fi |
1940 |
-+ case "${host}" in |
1941 |
-+ *-*-mint*) |
1942 |
-+ case "${srcdir}" in |
1943 |
-+ */libgcc ) : ;; |
1944 |
-+ *) |
1945 |
-+ old_multidirs="${multidirs}" |
1946 |
-+ multidirs="" |
1947 |
-+ for x in ${old_multidirs}; do |
1948 |
-+ case "$x" in |
1949 |
-+ *mshort ) : ;; |
1950 |
-+ *) multidirs="${multidirs} ${x}" ;; |
1951 |
-+ esac |
1952 |
-+ done |
1953 |
-+ ;; |
1954 |
-+ esac |
1955 |
-+ ;; |
1956 |
-+ esac |
1957 |
- ;; |
1958 |
- mips*-*-*) |
1959 |
- if [ x$enable_single_float = xno ] |
1960 |
-diff -aurN gcc-4.6.3/configure gcc-4.6.3-mint-20120503/configure |
1961 |
---- gcc-4.6.3/configure 2011-12-18 11:03:44.000000000 +0100 |
1962 |
-+++ gcc-4.6.3-mint-20120503/configure 2012-05-03 18:23:00.937500000 +0200 |
1963 |
-@@ -3077,6 +3077,9 @@ |
1964 |
- *-*-freebsd*) |
1965 |
- # Enable libmudflap by default in FreeBSD. |
1966 |
- ;; |
1967 |
-+ *-*-mint*) |
1968 |
-+ # Enable libmudflap by default in MiNT. |
1969 |
-+ ;; |
1970 |
- *) |
1971 |
- # Disable it by default everywhere else. |
1972 |
- noconfigdirs="$noconfigdirs target-libmudflap" |
1973 |
-@@ -3449,6 +3452,9 @@ |
1974 |
- m68k-*-coff*) |
1975 |
- noconfigdirs="$noconfigdirs ${libgcj}" |
1976 |
- ;; |
1977 |
-+ m68k-*-mint*) |
1978 |
-+ noconfigdirs="$noconfigdirs target-libiberty ${libgcj}" |
1979 |
-+ ;; |
1980 |
- m68*-*-* | fido-*-*) |
1981 |
- libgloss_dir=m68k |
1982 |
- ;; |
1983 |
-diff -aurN gcc-4.6.3/configure.ac gcc-4.6.3-mint-20120503/configure.ac |
1984 |
---- gcc-4.6.3/configure.ac 2011-11-18 12:45:44.000000000 +0100 |
1985 |
-+++ gcc-4.6.3-mint-20120503/configure.ac 2012-05-03 18:23:00.937500000 +0200 |
1986 |
-@@ -523,6 +523,9 @@ |
1987 |
- *-*-freebsd*) |
1988 |
- # Enable libmudflap by default in FreeBSD. |
1989 |
- ;; |
1990 |
-+ *-*-mint*) |
1991 |
-+ # Enable libmudflap by default in MiNT. |
1992 |
-+ ;; |
1993 |
- *) |
1994 |
- # Disable it by default everywhere else. |
1995 |
- noconfigdirs="$noconfigdirs target-libmudflap" |
1996 |
-@@ -895,6 +898,9 @@ |
1997 |
- m68k-*-coff*) |
1998 |
- noconfigdirs="$noconfigdirs ${libgcj}" |
1999 |
- ;; |
2000 |
-+ m68k-*-mint*) |
2001 |
-+ noconfigdirs="$noconfigdirs target-libiberty ${libgcj}" |
2002 |
-+ ;; |
2003 |
- m68*-*-* | fido-*-*) |
2004 |
- libgloss_dir=m68k |
2005 |
- ;; |
2006 |
-diff -aurN gcc-4.6.3/libgcc/config/m68k/lb1sf68.S gcc-4.6.3-mint-20120503/libgcc/config/m68k/lb1sf68.S |
2007 |
---- gcc-4.6.3/libgcc/config/m68k/lb1sf68.S 2009-10-02 13:20:51.000000000 +0200 |
2008 |
-+++ gcc-4.6.3-mint-20120503/libgcc/config/m68k/lb1sf68.S 2012-05-03 18:23:00.953125000 +0200 |
2009 |
-@@ -666,7 +666,9 @@ |
2010 |
- .globl SYM (__negdf2) |
2011 |
- .globl SYM (__cmpdf2) |
2012 |
- .globl SYM (__cmpdf2_internal) |
2013 |
-+#ifdef __ELF__ |
2014 |
- .hidden SYM (__cmpdf2_internal) |
2015 |
-+#endif |
2016 |
- |
2017 |
- .text |
2018 |
- .even |
2019 |
-@@ -2581,7 +2583,9 @@ |
2020 |
- .globl SYM (__negsf2) |
2021 |
- .globl SYM (__cmpsf2) |
2022 |
- .globl SYM (__cmpsf2_internal) |
2023 |
-+#ifdef __ELF__ |
2024 |
- .hidden SYM (__cmpsf2_internal) |
2025 |
-+#endif |
2026 |
- |
2027 |
- | These are common routines to return and signal exceptions. |
2028 |
- |
2029 |
-diff -aurN gcc-4.6.3/gcc/config/m68k/m68k.h gcc-4.6.3-mint-20120503/gcc/config/m68k/m68k.h |
2030 |
---- gcc-4.6.3/gcc/config/m68k/m68k.h 2010-11-22 02:57:50.000000000 +0100 |
2031 |
-+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/m68k.h 2012-05-03 18:23:00.953125000 +0200 |
2032 |
-@@ -138,7 +138,10 @@ |
2033 |
- } \ |
2034 |
- \ |
2035 |
- if (TARGET_68881) \ |
2036 |
-- builtin_define ("__HAVE_68881__"); \ |
2037 |
-+ { \ |
2038 |
-+ builtin_define ("__HAVE_68881__"); \ |
2039 |
-+ builtin_define ("__M68881__"); /* Non-standard */ \ |
2040 |
-+ } \ |
2041 |
- \ |
2042 |
- if (TARGET_COLDFIRE) \ |
2043 |
- { \ |
2044 |
-diff -aurN gcc-4.6.3/gcc/config/m68k/math-68881.h gcc-4.6.3-mint-20120503/gcc/config/m68k/math-68881.h |
2045 |
---- gcc-4.6.3/gcc/config/m68k/math-68881.h 2004-02-09 01:48:13.000000000 +0100 |
2046 |
-+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/math-68881.h 2012-05-03 18:23:00.953125000 +0200 |
2047 |
-@@ -44,6 +44,16 @@ |
2048 |
- |
2049 |
- #include <errno.h> |
2050 |
- |
2051 |
-+/* GCC 4.3 and above with -std=c99 or -std=gnu99 implements ISO C99 |
2052 |
-+ inline semantics, unless -fgnu89-inline is used. */ |
2053 |
-+#ifdef __cplusplus |
2054 |
-+# define __MATH_68881_INLINE inline |
2055 |
-+#elif defined __GNUC_STDC_INLINE__ |
2056 |
-+# define __MATH_68881_INLINE extern __inline __attribute__ ((__gnu_inline__)) |
2057 |
-+#else |
2058 |
-+# define __MATH_68881_INLINE extern __inline |
2059 |
-+#endif |
2060 |
-+ |
2061 |
- #undef HUGE_VAL |
2062 |
- #ifdef __sun__ |
2063 |
- /* The Sun assembler fails to handle the hex constant in the usual defn. */ |
2064 |
-@@ -64,7 +74,7 @@ |
2065 |
- }) |
2066 |
- #endif |
2067 |
- |
2068 |
--__inline extern double |
2069 |
-+__MATH_68881_INLINE double |
2070 |
- sin (double x) |
2071 |
- { |
2072 |
- double value; |
2073 |
-@@ -75,7 +85,7 @@ |
2074 |
- return value; |
2075 |
- } |
2076 |
- |
2077 |
--__inline extern double |
2078 |
-+__MATH_68881_INLINE double |
2079 |
- cos (double x) |
2080 |
- { |
2081 |
- double value; |
2082 |
-@@ -86,7 +96,7 @@ |
2083 |
- return value; |
2084 |
- } |
2085 |
- |
2086 |
--__inline extern double |
2087 |
-+__MATH_68881_INLINE double |
2088 |
- tan (double x) |
2089 |
- { |
2090 |
- double value; |
2091 |
-@@ -97,7 +107,7 @@ |
2092 |
- return value; |
2093 |
- } |
2094 |
- |
2095 |
--__inline extern double |
2096 |
-+__MATH_68881_INLINE double |
2097 |
- asin (double x) |
2098 |
- { |
2099 |
- double value; |
2100 |
-@@ -108,7 +118,7 @@ |
2101 |
- return value; |
2102 |
- } |
2103 |
- |
2104 |
--__inline extern double |
2105 |
-+__MATH_68881_INLINE double |
2106 |
- acos (double x) |
2107 |
- { |
2108 |
- double value; |
2109 |
-@@ -119,7 +129,7 @@ |
2110 |
- return value; |
2111 |
- } |
2112 |
- |
2113 |
--__inline extern double |
2114 |
-+__MATH_68881_INLINE double |
2115 |
- atan (double x) |
2116 |
- { |
2117 |
- double value; |
2118 |
-@@ -130,7 +140,7 @@ |
2119 |
- return value; |
2120 |
- } |
2121 |
- |
2122 |
--__inline extern double |
2123 |
-+__MATH_68881_INLINE double |
2124 |
- atan2 (double y, double x) |
2125 |
- { |
2126 |
- double pi, pi_over_2; |
2127 |
-@@ -187,7 +197,7 @@ |
2128 |
- } |
2129 |
- } |
2130 |
- |
2131 |
--__inline extern double |
2132 |
-+__MATH_68881_INLINE double |
2133 |
- sinh (double x) |
2134 |
- { |
2135 |
- double value; |
2136 |
-@@ -198,7 +208,7 @@ |
2137 |
- return value; |
2138 |
- } |
2139 |
- |
2140 |
--__inline extern double |
2141 |
-+__MATH_68881_INLINE double |
2142 |
- cosh (double x) |
2143 |
- { |
2144 |
- double value; |
2145 |
-@@ -209,7 +219,7 @@ |
2146 |
- return value; |
2147 |
- } |
2148 |
- |
2149 |
--__inline extern double |
2150 |
-+__MATH_68881_INLINE double |
2151 |
- tanh (double x) |
2152 |
- { |
2153 |
- double value; |
2154 |
-@@ -220,7 +230,7 @@ |
2155 |
- return value; |
2156 |
- } |
2157 |
- |
2158 |
--__inline extern double |
2159 |
-+__MATH_68881_INLINE double |
2160 |
- atanh (double x) |
2161 |
- { |
2162 |
- double value; |
2163 |
-@@ -231,7 +241,7 @@ |
2164 |
- return value; |
2165 |
- } |
2166 |
- |
2167 |
--__inline extern double |
2168 |
-+__MATH_68881_INLINE double |
2169 |
- exp (double x) |
2170 |
- { |
2171 |
- double value; |
2172 |
-@@ -242,7 +252,7 @@ |
2173 |
- return value; |
2174 |
- } |
2175 |
- |
2176 |
--__inline extern double |
2177 |
-+__MATH_68881_INLINE double |
2178 |
- expm1 (double x) |
2179 |
- { |
2180 |
- double value; |
2181 |
-@@ -253,7 +263,7 @@ |
2182 |
- return value; |
2183 |
- } |
2184 |
- |
2185 |
--__inline extern double |
2186 |
-+__MATH_68881_INLINE double |
2187 |
- log (double x) |
2188 |
- { |
2189 |
- double value; |
2190 |
-@@ -264,7 +274,7 @@ |
2191 |
- return value; |
2192 |
- } |
2193 |
- |
2194 |
--__inline extern double |
2195 |
-+__MATH_68881_INLINE double |
2196 |
- log1p (double x) |
2197 |
- { |
2198 |
- double value; |
2199 |
-@@ -275,7 +285,7 @@ |
2200 |
- return value; |
2201 |
- } |
2202 |
- |
2203 |
--__inline extern double |
2204 |
-+__MATH_68881_INLINE double |
2205 |
- log10 (double x) |
2206 |
- { |
2207 |
- double value; |
2208 |
-@@ -286,7 +296,7 @@ |
2209 |
- return value; |
2210 |
- } |
2211 |
- |
2212 |
--__inline extern double |
2213 |
-+__MATH_68881_INLINE double |
2214 |
- sqrt (double x) |
2215 |
- { |
2216 |
- double value; |
2217 |
-@@ -297,13 +307,13 @@ |
2218 |
- return value; |
2219 |
- } |
2220 |
- |
2221 |
--__inline extern double |
2222 |
-+__MATH_68881_INLINE double |
2223 |
- hypot (double x, double y) |
2224 |
- { |
2225 |
- return sqrt (x*x + y*y); |
2226 |
- } |
2227 |
- |
2228 |
--__inline extern double |
2229 |
-+__MATH_68881_INLINE double |
2230 |
- pow (double x, double y) |
2231 |
- { |
2232 |
- if (x > 0) |
2233 |
-@@ -352,7 +362,7 @@ |
2234 |
- } |
2235 |
- } |
2236 |
- |
2237 |
--__inline extern double |
2238 |
-+__MATH_68881_INLINE double |
2239 |
- fabs (double x) |
2240 |
- { |
2241 |
- double value; |
2242 |
-@@ -363,7 +373,7 @@ |
2243 |
- return value; |
2244 |
- } |
2245 |
- |
2246 |
--__inline extern double |
2247 |
-+__MATH_68881_INLINE double |
2248 |
- ceil (double x) |
2249 |
- { |
2250 |
- int rounding_mode, round_up; |
2251 |
-@@ -385,7 +395,7 @@ |
2252 |
- return value; |
2253 |
- } |
2254 |
- |
2255 |
--__inline extern double |
2256 |
-+__MATH_68881_INLINE double |
2257 |
- floor (double x) |
2258 |
- { |
2259 |
- int rounding_mode, round_down; |
2260 |
-@@ -408,7 +418,7 @@ |
2261 |
- return value; |
2262 |
- } |
2263 |
- |
2264 |
--__inline extern double |
2265 |
-+__MATH_68881_INLINE double |
2266 |
- rint (double x) |
2267 |
- { |
2268 |
- int rounding_mode, round_nearest; |
2269 |
-@@ -430,7 +440,7 @@ |
2270 |
- return value; |
2271 |
- } |
2272 |
- |
2273 |
--__inline extern double |
2274 |
-+__MATH_68881_INLINE double |
2275 |
- fmod (double x, double y) |
2276 |
- { |
2277 |
- double value; |
2278 |
-@@ -442,7 +452,7 @@ |
2279 |
- return value; |
2280 |
- } |
2281 |
- |
2282 |
--__inline extern double |
2283 |
-+__MATH_68881_INLINE double |
2284 |
- drem (double x, double y) |
2285 |
- { |
2286 |
- double value; |
2287 |
-@@ -454,7 +464,7 @@ |
2288 |
- return value; |
2289 |
- } |
2290 |
- |
2291 |
--__inline extern double |
2292 |
-+__MATH_68881_INLINE double |
2293 |
- scalb (double x, int n) |
2294 |
- { |
2295 |
- double value; |
2296 |
-@@ -466,7 +476,7 @@ |
2297 |
- return value; |
2298 |
- } |
2299 |
- |
2300 |
--__inline extern double |
2301 |
-+__MATH_68881_INLINE double |
2302 |
- logb (double x) |
2303 |
- { |
2304 |
- double exponent; |
2305 |
-@@ -477,7 +487,7 @@ |
2306 |
- return exponent; |
2307 |
- } |
2308 |
- |
2309 |
--__inline extern double |
2310 |
-+__MATH_68881_INLINE double |
2311 |
- ldexp (double x, int n) |
2312 |
- { |
2313 |
- double value; |
2314 |
-@@ -489,7 +499,7 @@ |
2315 |
- return value; |
2316 |
- } |
2317 |
- |
2318 |
--__inline extern double |
2319 |
-+__MATH_68881_INLINE double |
2320 |
- frexp (double x, int *exp) |
2321 |
- { |
2322 |
- double float_exponent; |
2323 |
-@@ -514,7 +524,7 @@ |
2324 |
- return mantissa; |
2325 |
- } |
2326 |
- |
2327 |
--__inline extern double |
2328 |
-+__MATH_68881_INLINE double |
2329 |
- modf (double x, double *ip) |
2330 |
- { |
2331 |
- double temp; |
2332 |
-diff -aurN gcc-4.6.3/gcc/config/m68k/mint.h gcc-4.6.3-mint-20120503/gcc/config/m68k/mint.h |
2333 |
---- gcc-4.6.3/gcc/config/m68k/mint.h 1970-01-01 01:00:00.000000000 +0100 |
2334 |
-+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/mint.h 2012-05-03 18:23:00.968750000 +0200 |
2335 |
-@@ -0,0 +1,178 @@ |
2336 |
-+/* Definitions of target machine for GNU compiler. |
2337 |
-+ Atari ST TOS/MiNT. |
2338 |
-+ Copyright (C) 1994, 1995, 2007, 2008, 2009, 2010, 2011 |
2339 |
-+ Free Software Foundation, Inc. |
2340 |
-+ |
2341 |
-+This file is part of GCC. |
2342 |
-+ |
2343 |
-+GCC is free software; you can redistribute it and/or modify |
2344 |
-+it under the terms of the GNU General Public License as published by |
2345 |
-+the Free Software Foundation; either version 3, or (at your option) |
2346 |
-+any later version. |
2347 |
-+ |
2348 |
-+GCC is distributed in the hope that it will be useful, |
2349 |
-+but WITHOUT ANY WARRANTY; without even the implied warranty of |
2350 |
-+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2351 |
-+GNU General Public License for more details. |
2352 |
-+ |
2353 |
-+You should have received a copy of the GNU General Public License |
2354 |
-+along with GCC; see the file COPYING3. If not see |
2355 |
-+<http://www.gnu.org/licenses/>. */ |
2356 |
-+ |
2357 |
-+/* Here are four prefixes that are used by asm_fprintf to |
2358 |
-+ facilitate customization for alternate assembler syntaxes. |
2359 |
-+ Machines with no likelihood of an alternate syntax need not |
2360 |
-+ define these and need not use asm_fprintf. */ |
2361 |
-+ |
2362 |
-+/* The prefix for register names. Note that REGISTER_NAMES |
2363 |
-+ is supposed to include this prefix. Also note that this is NOT an |
2364 |
-+ fprintf format string, it is a literal string */ |
2365 |
-+ |
2366 |
-+#undef REGISTER_PREFIX |
2367 |
-+#define REGISTER_PREFIX "%" |
2368 |
-+ |
2369 |
-+/* The prefix for local (compiler generated) labels. |
2370 |
-+ These labels will not appear in the symbol table. */ |
2371 |
-+ |
2372 |
-+#undef LOCAL_LABEL_PREFIX |
2373 |
-+#define LOCAL_LABEL_PREFIX "." |
2374 |
-+ |
2375 |
-+#undef ASM_COMMENT_START |
2376 |
-+#define ASM_COMMENT_START "|" |
2377 |
-+ |
2378 |
-+#undef WCHAR_TYPE |
2379 |
-+#define WCHAR_TYPE "short unsigned int" |
2380 |
-+ |
2381 |
-+#undef WCHAR_TYPE_SIZE |
2382 |
-+#define WCHAR_TYPE_SIZE SHORT_TYPE_SIZE |
2383 |
-+ |
2384 |
-+#undef TARGET_OS_CPP_BUILTINS |
2385 |
-+#define TARGET_OS_CPP_BUILTINS() \ |
2386 |
-+ do \ |
2387 |
-+ { \ |
2388 |
-+ builtin_define ("__MINT__"); \ |
2389 |
-+ builtin_define_std ("atarist"); \ |
2390 |
-+ builtin_assert ("machine=atari"); \ |
2391 |
-+ builtin_assert ("system=mint"); \ |
2392 |
-+ } \ |
2393 |
-+ while (0) |
2394 |
-+ |
2395 |
-+/* The following defines are nonstandard |
2396 |
-+ and are kept only for compatibility |
2397 |
-+ with older versions of GCC for MiNT. */ |
2398 |
-+ |
2399 |
-+#undef CPP_SPEC |
2400 |
-+#define CPP_SPEC \ |
2401 |
-+ "%{m68000:-D__M68000__} " \ |
2402 |
-+ "%{mc68020:-D__M68020__} " \ |
2403 |
-+ "%{m68020:-D__M68020__} " \ |
2404 |
-+ "%{m68030:-D__M68020__} " \ |
2405 |
-+ "%{m68040:-D__M68020__} " \ |
2406 |
-+ "%{m68060:-D__M68020__} " \ |
2407 |
-+ "%{m68020-40:-D__M68020__} " \ |
2408 |
-+ "%{m68020-60:-D__M68020__} " \ |
2409 |
-+ "%{!m680*:%{!mc680*:-D__M68000__}} " \ |
2410 |
-+ "%{mshort:-D__MSHORT__}" |
2411 |
-+ |
2412 |
-+#define STARTFILE_SPEC "%{pg|p|profile:gcrt0.o%s;:crt0.o%s}" |
2413 |
-+#define LIB_SPEC "-lc" |
2414 |
-+ |
2415 |
-+/* Every structure or union's size must be a multiple of 2 bytes. */ |
2416 |
-+#define STRUCTURE_SIZE_BOUNDARY 16 |
2417 |
-+ |
2418 |
-+/* The -g option generates stabs debug information. */ |
2419 |
-+#define DBX_DEBUGGING_INFO 1 |
2420 |
-+ |
2421 |
-+/* This is the assembler directive to equate two values. */ |
2422 |
-+#undef SET_ASM_OP |
2423 |
-+#define SET_ASM_OP "\t.set\t" |
2424 |
-+ |
2425 |
-+/* This is how we tell the assembler that a symbol is weak. */ |
2426 |
-+#undef ASM_WEAKEN_LABEL |
2427 |
-+#define ASM_WEAKEN_LABEL(FILE,NAME) \ |
2428 |
-+ do { fputs ("\t.weak\t", FILE); assemble_name (FILE, NAME); \ |
2429 |
-+ fputc ('\n', FILE); } while (0) |
2430 |
-+ |
2431 |
-+/* Don't default to pcc-struct-return, because gcc is the only compiler, and |
2432 |
-+ we want to retain compatibility with older gcc versions. */ |
2433 |
-+#define DEFAULT_PCC_STRUCT_RETURN 0 |
2434 |
-+ |
2435 |
-+/* The system headers are C++-aware. */ |
2436 |
-+#define NO_IMPLICIT_EXTERN_C |
2437 |
-+ |
2438 |
-+/* By default, the vtable entries are void pointers, the so the alignment |
2439 |
-+ is the same as pointer alignment. The value of this macro specifies |
2440 |
-+ the alignment of the vtable entry in bits. It should be defined only |
2441 |
-+ when special alignment is necessary. |
2442 |
-+ |
2443 |
-+ MiNT: The default value of 32 is too much and unsupported by a.out-mintprg. |
2444 |
-+*/ |
2445 |
-+#define TARGET_VTABLE_ENTRY_ALIGN 16 |
2446 |
-+ |
2447 |
-+/* If we have a definition of INCOMING_RETURN_ADDR_RTX, assume that |
2448 |
-+ the rest of the DWARF 2 frame unwind support is also provided. |
2449 |
-+ |
2450 |
-+ MiNT: DWARF 2 frame unwind is not supported by a.out-mint. |
2451 |
-+*/ |
2452 |
-+#define DWARF2_UNWIND_INFO 0 |
2453 |
-+ |
2454 |
-+/* config/m68k.md has an explicit reference to the program counter, |
2455 |
-+ prefix this by the register prefix. */ |
2456 |
-+ |
2457 |
-+#define ASM_RETURN_CASE_JUMP \ |
2458 |
-+ do { \ |
2459 |
-+ if (TARGET_COLDFIRE) \ |
2460 |
-+ { \ |
2461 |
-+ if (ADDRESS_REG_P (operands[0])) \ |
2462 |
-+ return "jmp %%pc@(2,%0:l)"; \ |
2463 |
-+ else \ |
2464 |
-+ return "ext%.l %0\n\tjmp %%pc@(2,%0:l)"; \ |
2465 |
-+ } \ |
2466 |
-+ else \ |
2467 |
-+ return "jmp %%pc@(2,%0:w)"; \ |
2468 |
-+ } while (0) |
2469 |
-+ |
2470 |
-+/* The ADDR_DIFF_VEC must exactly follow the previous instruction. */ |
2471 |
-+ |
2472 |
-+#undef ADDR_VEC_ALIGN |
2473 |
-+#define ADDR_VEC_ALIGN(ADDR_VEC) 0 |
2474 |
-+ |
2475 |
-+/* If defined, a C expression whose value is a string containing the |
2476 |
-+ assembler operation to identify the following data as uninitialized global |
2477 |
-+ data. */ |
2478 |
-+ |
2479 |
-+#define BSS_SECTION_ASM_OP "\t.bss" |
2480 |
-+ |
2481 |
-+/* A C statement (sans semicolon) to output to the stdio stream |
2482 |
-+ FILE the assembler definition of uninitialized global DECL named |
2483 |
-+ NAME whose size is SIZE bytes and alignment is ALIGN bytes. |
2484 |
-+ Try to use asm_output_aligned_bss to implement this macro. */ |
2485 |
-+ |
2486 |
-+#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \ |
2487 |
-+ asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN) |
2488 |
-+ |
2489 |
-+/* Disable -fpic and -fPIC since bsr.l _label@PLTPC |
2490 |
-+ is unsupported by the assembler. */ |
2491 |
-+ |
2492 |
-+#undef SUBTARGET_OVERRIDE_OPTIONS |
2493 |
-+#define SUBTARGET_OVERRIDE_OPTIONS \ |
2494 |
-+do { \ |
2495 |
-+ if (flag_pic && !TARGET_PCREL) \ |
2496 |
-+ error ("-f%s is not supported on this target", \ |
2497 |
-+ (flag_pic > 1) ? "PIC" : "pic"); \ |
2498 |
-+} while (0) |
2499 |
-+ |
2500 |
-+ |
2501 |
-+/* Workaround for GCC bug #35067 about multiple thunks. */ |
2502 |
-+ |
2503 |
-+#undef MAKE_DECL_ONE_ONLY |
2504 |
-+#define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1) |
2505 |
-+ |
2506 |
-+/* Avoid requiring -static with -fmudflap like in config/bfin/uclinux.h */ |
2507 |
-+#define MFWRAP_SPEC " %{fmudflap|fmudflapth: \ |
2508 |
-+ --wrap=malloc --wrap=free --wrap=calloc --wrap=realloc\ |
2509 |
-+ --wrap=mmap --wrap=munmap --wrap=alloca\ |
2510 |
-+ %{fmudflapth: --wrap=pthread_create\ |
2511 |
-+}} %{fmudflap|fmudflapth: --wrap=main}" |
2512 |
-+ |
2513 |
-+#define TARGET_HAVE_NAMED_SECTIONS false |
2514 |
-diff -aurN gcc-4.6.3/gcc/config/m68k/t-mint gcc-4.6.3-mint-20120503/gcc/config/m68k/t-mint |
2515 |
---- gcc-4.6.3/gcc/config/m68k/t-mint 1970-01-01 01:00:00.000000000 +0100 |
2516 |
-+++ gcc-4.6.3-mint-20120503/gcc/config/m68k/t-mint 2012-05-03 18:23:00.968750000 +0200 |
2517 |
-@@ -0,0 +1,27 @@ |
2518 |
-+# |
2519 |
-+# Use multiple libraries |
2520 |
-+# |
2521 |
-+ |
2522 |
-+MULTILIB_OPTIONS = m68020-60 mshort |
2523 |
-+ |
2524 |
-+MULTILIB_DIRNAMES = m68020-60 mshort |
2525 |
-+ |
2526 |
-+MULTILIB_MATCHES = \ |
2527 |
-+ m68020-60=m68881 \ |
2528 |
-+ m68020-60=m68020 \ |
2529 |
-+ m68020-60=m68020-40 \ |
2530 |
-+ m68020-60=mc68020 \ |
2531 |
-+ m68020-60=m68030 \ |
2532 |
-+ m68020-60=m68040 \ |
2533 |
-+ m68020-60=m68060 \ |
2534 |
-+ m68020-60=mcpu?68020 \ |
2535 |
-+ m68020-60=mcpu?68030 \ |
2536 |
-+ m68020-60=mcpu?68040 \ |
2537 |
-+ m68020-60=mcpu?68060 \ |
2538 |
-+ m68020-60=march?68020 \ |
2539 |
-+ m68020-60=march?68030 \ |
2540 |
-+ m68020-60=march?68040 \ |
2541 |
-+ m68020-60=march?68060 |
2542 |
-+ |
2543 |
-+LIBGCC = stmp-multilib |
2544 |
-+INSTALL_LIBGCC = install-multilib |
2545 |
-diff -aurN gcc-4.6.3/gcc/config.gcc gcc-4.6.3-mint-20120503/gcc/config.gcc |
2546 |
---- gcc-4.6.3/gcc/config.gcc 2011-07-22 18:44:50.000000000 +0200 |
2547 |
-+++ gcc-4.6.3-mint-20120503/gcc/config.gcc 2012-05-03 18:23:00.968750000 +0200 |
2548 |
-@@ -1805,6 +1805,15 @@ |
2549 |
- tmake_file="$tmake_file m68k/t-slibgcc-elf-ver" |
2550 |
- fi |
2551 |
- ;; |
2552 |
-+m68k-*-mint*) |
2553 |
-+ default_m68k_cpu=68000 |
2554 |
-+ default_cf_cpu=5475 |
2555 |
-+ tm_file="${tm_file} m68k/mint.h" |
2556 |
-+ tm_defines="${tm_defines} MOTOROLA=1" |
2557 |
-+ tmake_file="m68k/t-floatlib m68k/t-mint" |
2558 |
-+ gas=yes |
2559 |
-+ gnu_ld=yes |
2560 |
-+ ;; |
2561 |
- m68k-*-rtems*) |
2562 |
- default_m68k_cpu=68020 |
2563 |
- default_cf_cpu=5206 |
2564 |
-diff -aurN gcc-4.6.3/libdecnumber/decNumberLocal.h gcc-4.6.3-mint-20120503/libdecnumber/decNumberLocal.h |
2565 |
---- gcc-4.6.3/libdecnumber/decNumberLocal.h 2009-04-09 17:00:19.000000000 +0200 |
2566 |
-+++ gcc-4.6.3-mint-20120503/libdecnumber/decNumberLocal.h 2012-05-03 18:23:00.984375000 +0200 |
2567 |
-@@ -188,7 +188,7 @@ |
2568 |
- #if (DECNUMMAXE != DEC_MAX_EMAX) |
2569 |
- #error Maximum exponent mismatch |
2570 |
- #endif |
2571 |
-- #if (DECNUMMINE != DEC_MIN_EMIN) |
2572 |
-+ #if !(DECNUMMINE == DEC_MIN_EMIN) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ |
2573 |
- #error Minimum exponent mismatch |
2574 |
- #endif |
2575 |
- |
2576 |
-diff -aurN gcc-4.6.3/libgcc/config.host gcc-4.6.3-mint-20120503/libgcc/config.host |
2577 |
---- gcc-4.6.3/libgcc/config.host 2011-11-23 23:15:54.000000000 +0100 |
2578 |
-+++ gcc-4.6.3-mint-20120503/libgcc/config.host 2012-05-03 18:23:00.984375000 +0200 |
2579 |
-@@ -387,6 +387,9 @@ |
2580 |
- # with ELF format using glibc 2 |
2581 |
- # aka the GNU/Linux C library 6. |
2582 |
- ;; |
2583 |
-+m68k-*-mint*) |
2584 |
-+ tmake_file="$tmake_file m68k/t-floatlib" |
2585 |
-+ ;; |
2586 |
- m68k-*-rtems*) |
2587 |
- ;; |
2588 |
- mcore-*-elf) |
2589 |
-diff -aurN gcc-4.6.3/libiberty/hex.c gcc-4.6.3-mint-20120503/libiberty/hex.c |
2590 |
---- gcc-4.6.3/libiberty/hex.c 2007-01-31 21:05:50.000000000 +0100 |
2591 |
-+++ gcc-4.6.3-mint-20120503/libiberty/hex.c 2012-05-03 18:23:01.031250000 +0200 |
2592 |
-@@ -24,7 +24,7 @@ |
2593 |
- #include "libiberty.h" |
2594 |
- #include "safe-ctype.h" /* for HOST_CHARSET_ASCII */ |
2595 |
- |
2596 |
--#if EOF != -1 |
2597 |
-+#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ |
2598 |
- #error "hex.c requires EOF == -1" |
2599 |
- #endif |
2600 |
- |
2601 |
-diff -aurN gcc-4.6.3/libiberty/safe-ctype.c gcc-4.6.3-mint-20120503/libiberty/safe-ctype.c |
2602 |
---- gcc-4.6.3/libiberty/safe-ctype.c 2005-05-10 17:33:18.000000000 +0200 |
2603 |
-+++ gcc-4.6.3-mint-20120503/libiberty/safe-ctype.c 2012-05-03 18:23:01.031250000 +0200 |
2604 |
-@@ -119,7 +119,7 @@ |
2605 |
- #include <safe-ctype.h> |
2606 |
- #include <stdio.h> /* for EOF */ |
2607 |
- |
2608 |
--#if EOF != -1 |
2609 |
-+#if !(EOF == -1) /* gcc 2.95.3 has bug in '!=' operator for negative constants */ |
2610 |
- #error "<safe-ctype.h> requires EOF == -1" |
2611 |
- #endif |
2612 |
- |
2613 |
-diff -aurN gcc-4.6.3/libmudflap/mf-hooks2.c gcc-4.6.3-mint-20120503/libmudflap/mf-hooks2.c |
2614 |
---- gcc-4.6.3/libmudflap/mf-hooks2.c 2009-04-09 17:00:19.000000000 +0200 |
2615 |
-+++ gcc-4.6.3-mint-20120503/libmudflap/mf-hooks2.c 2012-05-03 18:23:01.031250000 +0200 |
2616 |
-@@ -1668,6 +1668,8 @@ |
2617 |
- } |
2618 |
- |
2619 |
- |
2620 |
-+#ifdef HAVE_DLFCN_H |
2621 |
-+ |
2622 |
- WRAPPER2(void *, dlopen, const char *path, int flags) |
2623 |
- { |
2624 |
- void *p; |
2625 |
-@@ -1735,6 +1737,8 @@ |
2626 |
- return p; |
2627 |
- } |
2628 |
- |
2629 |
-+#endif /* HAVE_DLFCN_H */ |
2630 |
-+ |
2631 |
- |
2632 |
- #if defined (HAVE_SYS_IPC_H) && defined (HAVE_SYS_SEM_H) && defined (HAVE_SYS_SHM_H) |
2633 |
- |
2634 |
-diff -aurN gcc-4.6.3/libmudflap/mf-runtime.h gcc-4.6.3-mint-20120503/libmudflap/mf-runtime.h |
2635 |
---- gcc-4.6.3/libmudflap/mf-runtime.h 2009-04-09 17:00:19.000000000 +0200 |
2636 |
-+++ gcc-4.6.3-mint-20120503/libmudflap/mf-runtime.h 2012-05-03 18:23:01.046875000 +0200 |
2637 |
-@@ -97,6 +97,7 @@ |
2638 |
- instrumented modules are meant to be affected. */ |
2639 |
- |
2640 |
- #ifdef _MUDFLAP |
2641 |
-+#ifndef __USER_LABEL_PREFIX__ |
2642 |
- #pragma redefine_extname memcpy __mfwrap_memcpy |
2643 |
- #pragma redefine_extname memmove __mfwrap_memmove |
2644 |
- #pragma redefine_extname memset __mfwrap_memset |
2645 |
-@@ -230,6 +231,141 @@ |
2646 |
- #pragma redefine_extname getprotoent __mfwrap_getprotoent |
2647 |
- #pragma redefine_extname getprotobyname __mfwrap_getprotobyname |
2648 |
- #pragma redefine_extname getprotobynumber __mfwrap_getprotobynumber |
2649 |
-+#else |
2650 |
-+#pragma redefine_extname memcpy ___mfwrap_memcpy |
2651 |
-+#pragma redefine_extname memmove ___mfwrap_memmove |
2652 |
-+#pragma redefine_extname memset ___mfwrap_memset |
2653 |
-+#pragma redefine_extname memcmp ___mfwrap_memcmp |
2654 |
-+#pragma redefine_extname memchr ___mfwrap_memchr |
2655 |
-+#pragma redefine_extname memrchr ___mfwrap_memrchr |
2656 |
-+#pragma redefine_extname strcpy ___mfwrap_strcpy |
2657 |
-+#pragma redefine_extname strncpy ___mfwrap_strncpy |
2658 |
-+#pragma redefine_extname strcat ___mfwrap_strcat |
2659 |
-+#pragma redefine_extname strncat ___mfwrap_strncat |
2660 |
-+#pragma redefine_extname strcmp ___mfwrap_strcmp |
2661 |
-+#pragma redefine_extname strcasecmp ___mfwrap_strcasecmp |
2662 |
-+#pragma redefine_extname strncmp ___mfwrap_strncmp |
2663 |
-+#pragma redefine_extname strncasecmp ___mfwrap_strncasecmp |
2664 |
-+#pragma redefine_extname strdup ___mfwrap_strdup |
2665 |
-+#pragma redefine_extname strndup ___mfwrap_strndup |
2666 |
-+#pragma redefine_extname strchr ___mfwrap_strchr |
2667 |
-+#pragma redefine_extname strrchr ___mfwrap_strrchr |
2668 |
-+#pragma redefine_extname strstr ___mfwrap_strstr |
2669 |
-+#pragma redefine_extname memmem ___mfwrap_memmem |
2670 |
-+#pragma redefine_extname strlen ___mfwrap_strlen |
2671 |
-+#pragma redefine_extname strnlen ___mfwrap_strnlen |
2672 |
-+#pragma redefine_extname bzero ___mfwrap_bzero |
2673 |
-+#pragma redefine_extname bcopy ___mfwrap_bcopy |
2674 |
-+#pragma redefine_extname bcmp ___mfwrap_bcmp |
2675 |
-+#pragma redefine_extname index ___mfwrap_index |
2676 |
-+#pragma redefine_extname rindex ___mfwrap_rindex |
2677 |
-+#pragma redefine_extname asctime ___mfwrap_asctime |
2678 |
-+#pragma redefine_extname ctime ___mfwrap_ctime |
2679 |
-+#pragma redefine_extname gmtime ___mfwrap_gmtime |
2680 |
-+#pragma redefine_extname localtime ___mfwrap_localtime |
2681 |
-+#pragma redefine_extname time ___mfwrap_time |
2682 |
-+#pragma redefine_extname strerror ___mfwrap_strerror |
2683 |
-+#pragma redefine_extname fopen ___mfwrap_fopen |
2684 |
-+#pragma redefine_extname fdopen ___mfwrap_fdopen |
2685 |
-+#pragma redefine_extname freopen ___mfwrap_freopen |
2686 |
-+#pragma redefine_extname fclose ___mfwrap_fclose |
2687 |
-+#pragma redefine_extname fread ___mfwrap_fread |
2688 |
-+#pragma redefine_extname fwrite ___mfwrap_fwrite |
2689 |
-+#pragma redefine_extname fgetc ___mfwrap_fgetc |
2690 |
-+#pragma redefine_extname fgets ___mfwrap_fgets |
2691 |
-+#pragma redefine_extname getc ___mfwrap_getc |
2692 |
-+#pragma redefine_extname gets ___mfwrap_gets |
2693 |
-+#pragma redefine_extname ungetc ___mfwrap_ungetc |
2694 |
-+#pragma redefine_extname fputc ___mfwrap_fputc |
2695 |
-+#pragma redefine_extname fputs ___mfwrap_fputs |
2696 |
-+#pragma redefine_extname putc ___mfwrap_putc |
2697 |
-+#pragma redefine_extname puts ___mfwrap_puts |
2698 |
-+#pragma redefine_extname clearerr ___mfwrap_clearerr |
2699 |
-+#pragma redefine_extname feof ___mfwrap_feof |
2700 |
-+#pragma redefine_extname ferror ___mfwrap_ferror |
2701 |
-+#pragma redefine_extname fileno ___mfwrap_fileno |
2702 |
-+#pragma redefine_extname printf ___mfwrap_printf |
2703 |
-+#pragma redefine_extname fprintf ___mfwrap_fprintf |
2704 |
-+#pragma redefine_extname sprintf ___mfwrap_sprintf |
2705 |
-+#pragma redefine_extname snprintf ___mfwrap_snprintf |
2706 |
-+#pragma redefine_extname vprintf ___mfwrap_vprintf |
2707 |
-+#pragma redefine_extname vfprintf ___mfwrap_vfprintf |
2708 |
-+#pragma redefine_extname vsprintf ___mfwrap_vsprintf |
2709 |
-+#pragma redefine_extname vsnprintf ___mfwrap_vsnprintf |
2710 |
-+#pragma redefine_extname access ___mfwrap_access |
2711 |
-+#pragma redefine_extname remove ___mfwrap_remove |
2712 |
-+#pragma redefine_extname fflush ___mfwrap_fflush |
2713 |
-+#pragma redefine_extname fseek ___mfwrap_fseek |
2714 |
-+#pragma redefine_extname ftell ___mfwrap_ftell |
2715 |
-+#pragma redefine_extname rewind ___mfwrap_rewind |
2716 |
-+#pragma redefine_extname fgetpos ___mfwrap_fgetpos |
2717 |
-+#pragma redefine_extname fsetpos ___mfwrap_fsetpos |
2718 |
-+#pragma redefine_extname stat ___mfwrap_stat |
2719 |
-+#pragma redefine_extname fstat ___mfwrap_fstat |
2720 |
-+#pragma redefine_extname lstat ___mfwrap_lstat |
2721 |
-+#pragma redefine_extname mkfifo ___mfwrap_mkfifo |
2722 |
-+#pragma redefine_extname setvbuf ___mfwrap_setvbuf |
2723 |
-+#pragma redefine_extname setbuf ___mfwrap_setbuf |
2724 |
-+#pragma redefine_extname setbuffer ___mfwrap_setbuffer |
2725 |
-+#pragma redefine_extname setlinebuf ___mfwrap_setlinebuf |
2726 |
-+#pragma redefine_extname opendir ___mfwrap_opendir |
2727 |
-+#pragma redefine_extname closedir ___mfwrap_closedir |
2728 |
-+#pragma redefine_extname readdir ___mfwrap_readdir |
2729 |
-+#pragma redefine_extname recv ___mfwrap_recv |
2730 |
-+#pragma redefine_extname recvfrom ___mfwrap_recvfrom |
2731 |
-+#pragma redefine_extname recvmsg ___mfwrap_recvmsg |
2732 |
-+#pragma redefine_extname send ___mfwrap_send |
2733 |
-+#pragma redefine_extname sendto ___mfwrap_sendto |
2734 |
-+#pragma redefine_extname sendmsg ___mfwrap_sendmsg |
2735 |
-+#pragma redefine_extname setsockopt ___mfwrap_setsockopt |
2736 |
-+#pragma redefine_extname getsockopt ___mfwrap_getsockopt |
2737 |
-+#pragma redefine_extname accept ___mfwrap_accept |
2738 |
-+#pragma redefine_extname bind ___mfwrap_bind |
2739 |
-+#pragma redefine_extname connect ___mfwrap_connect |
2740 |
-+#pragma redefine_extname gethostname ___mfwrap_gethostname |
2741 |
-+#pragma redefine_extname sethostname ___mfwrap_sethostname |
2742 |
-+#pragma redefine_extname gethostbyname ___mfwrap_gethostbyname |
2743 |
-+#pragma redefine_extname wait ___mfwrap_wait |
2744 |
-+#pragma redefine_extname waitpid ___mfwrap_waitpid |
2745 |
-+#pragma redefine_extname popen ___mfwrap_popen |
2746 |
-+#pragma redefine_extname pclose ___mfwrap_pclose |
2747 |
-+#pragma redefine_extname execve ___mfwrap_execve |
2748 |
-+#pragma redefine_extname execv ___mfwrap_execv |
2749 |
-+#pragma redefine_extname execvp ___mfwrap_execvp |
2750 |
-+#pragma redefine_extname system ___mfwrap_system |
2751 |
-+#pragma redefine_extname dlopen ___mfwrap_dlopen |
2752 |
-+#pragma redefine_extname dlerror ___mfwrap_dlerror |
2753 |
-+#pragma redefine_extname dlsym ___mfwrap_dlsym |
2754 |
-+#pragma redefine_extname dlclose ___mfwrap_dlclose |
2755 |
-+#pragma redefine_extname fopen64 ___mfwrap_fopen64 |
2756 |
-+#pragma redefine_extname freopen64 ___mfwrap_freopen64 |
2757 |
-+#pragma redefine_extname stat64 ___mfwrap_stat64 |
2758 |
-+#pragma redefine_extname fseeko64 ___mfwrap_fseeko64 |
2759 |
-+#pragma redefine_extname ftello64 ___mfwrap_ftello64 |
2760 |
-+#pragma redefine_extname semop ___mfwrap_semop |
2761 |
-+#pragma redefine_extname semctl ___mfwrap_semctl |
2762 |
-+#pragma redefine_extname shmctl ___mfwrap_shmctl |
2763 |
-+#pragma redefine_extname shmat ___mfwrap_shmat |
2764 |
-+#pragma redefine_extname shmdt ___mfwrap_shmdt |
2765 |
-+#pragma redefine_extname __ctype_b_loc ___mfwrap___ctype_b_loc |
2766 |
-+#pragma redefine_extname __ctype_toupper_loc ___mfwrap___ctype_toupper_loc |
2767 |
-+#pragma redefine_extname __ctype_tolower_loc ___mfwrap___ctype_tolower_loc |
2768 |
-+#pragma redefine_extname getlogin ___mfwrap_getlogin |
2769 |
-+#pragma redefine_extname cuserid ___mfwrap_cuserid |
2770 |
-+#pragma redefine_extname getpwnam ___mfwrap_getpwnam |
2771 |
-+#pragma redefine_extname getpwuid ___mfwrap_getpwuid |
2772 |
-+#pragma redefine_extname getgrnam ___mfwrap_getgrnam |
2773 |
-+#pragma redefine_extname getgrgid ___mfwrap_getgrgid |
2774 |
-+#pragma redefine_extname getservent ___mfwrap_getservent |
2775 |
-+#pragma redefine_extname getservbyname ___mfwrap_getservbyname |
2776 |
-+#pragma redefine_extname getservbyport ___mfwrap_getservbyport |
2777 |
-+#pragma redefine_extname gai_strerror ___mfwrap_gai_strerror |
2778 |
-+#pragma redefine_extname getmntent ___mfwrap_getmntent |
2779 |
-+#pragma redefine_extname inet_ntoa ___mfwrap_inet_ntoa |
2780 |
-+#pragma redefine_extname getprotoent ___mfwrap_getprotoent |
2781 |
-+#pragma redefine_extname getprotobyname ___mfwrap_getprotobyname |
2782 |
-+#pragma redefine_extname getprotobynumber ___mfwrap_getprotobynumber |
2783 |
-+#endif |
2784 |
- |
2785 |
- /* Disable glibc macros. */ |
2786 |
- #define __NO_STRING_INLINES |
2787 |
-diff -aurN gcc-4.6.3/libssp/ssp.c gcc-4.6.3-mint-20120503/libssp/ssp.c |
2788 |
---- gcc-4.6.3/libssp/ssp.c 2009-04-13 12:37:17.000000000 +0200 |
2789 |
-+++ gcc-4.6.3-mint-20120503/libssp/ssp.c 2012-05-03 18:23:01.046875000 +0200 |
2790 |
-@@ -63,6 +63,9 @@ |
2791 |
- #ifdef HAVE_SYSLOG_H |
2792 |
- # include <syslog.h> |
2793 |
- #endif |
2794 |
-+#ifdef __MINT__ |
2795 |
-+#include <mint/osbind.h> |
2796 |
-+#endif |
2797 |
- |
2798 |
- void *__stack_chk_guard = 0; |
2799 |
- |
2800 |
-@@ -98,6 +101,9 @@ |
2801 |
- { |
2802 |
- #ifdef __GNU_LIBRARY__ |
2803 |
- extern char * __progname; |
2804 |
-+#elif defined (__MINT__) |
2805 |
-+ extern char * program_invocation_short_name; |
2806 |
-+ #define __progname program_invocation_short_name |
2807 |
- #else |
2808 |
- static const char __progname[] = ""; |
2809 |
- #endif |
2810 |
-@@ -139,6 +145,9 @@ |
2811 |
- syslog (LOG_CRIT, msg3); |
2812 |
- #endif /* HAVE_SYSLOG_H */ |
2813 |
- |
2814 |
-+#ifdef __MINT__ |
2815 |
-+ Pterm(127); |
2816 |
-+#else |
2817 |
- /* Try very hard to exit. Note that signals may be blocked preventing |
2818 |
- the first two options from working. The use of volatile is here to |
2819 |
- prevent optimizers from "knowing" that __builtin_trap is called first, |
2820 |
-@@ -160,6 +169,7 @@ |
2821 |
- break; |
2822 |
- } |
2823 |
- } |
2824 |
-+#endif |
2825 |
- } |
2826 |
- |
2827 |
- void |
2828 |
-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 |
2829 |
---- gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_base.h 1970-01-01 01:00:00.000000000 +0100 |
2830 |
-+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_base.h 2012-05-03 18:23:01.046875000 +0200 |
2831 |
-@@ -0,0 +1,59 @@ |
2832 |
-+// Locale support -*- C++ -*- |
2833 |
-+ |
2834 |
-+// Copyright (C) 1997, 1998, 1999, 2003, 2009, 2010 |
2835 |
-+// Free Software Foundation, Inc. |
2836 |
-+// |
2837 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
2838 |
-+// software; you can redistribute it and/or modify it under the |
2839 |
-+// terms of the GNU General Public License as published by the |
2840 |
-+// Free Software Foundation; either version 3, or (at your option) |
2841 |
-+// any later version. |
2842 |
-+ |
2843 |
-+// This library is distributed in the hope that it will be useful, |
2844 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
2845 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2846 |
-+// GNU General Public License for more details. |
2847 |
-+ |
2848 |
-+// Under Section 7 of GPL version 3, you are granted additional |
2849 |
-+// permissions described in the GCC Runtime Library Exception, version |
2850 |
-+// 3.1, as published by the Free Software Foundation. |
2851 |
-+ |
2852 |
-+// You should have received a copy of the GNU General Public License and |
2853 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
2854 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
2855 |
-+// <http://www.gnu.org/licenses/>. |
2856 |
-+ |
2857 |
-+// |
2858 |
-+// ISO C++ 14882: 22.1 Locales |
2859 |
-+// |
2860 |
-+ |
2861 |
-+// Mint C types, taken from mintlib-0.57.3/include/ctype.h |
2862 |
-+ |
2863 |
-+namespace std _GLIBCXX_VISIBILITY(default) |
2864 |
-+{ |
2865 |
-+_GLIBCXX_BEGIN_NAMESPACE_VERSION |
2866 |
-+ |
2867 |
-+ /// @brief Base class for ctype. |
2868 |
-+ struct ctype_base |
2869 |
-+ { |
2870 |
-+ // Non-standard typedefs. |
2871 |
-+ typedef const int* __to_type; |
2872 |
-+ |
2873 |
-+ // NB: Offsets into ctype<char>::_M_table force a particular size |
2874 |
-+ // on the mask type. Because of this, we don't use an enum. |
2875 |
-+ typedef unsigned int mask; |
2876 |
-+ static const mask upper = _CTu; |
2877 |
-+ static const mask lower = _CTl; |
2878 |
-+ static const mask alpha = _CTu | _CTl; |
2879 |
-+ static const mask digit = _CTd; |
2880 |
-+ static const mask xdigit = _CTx; |
2881 |
-+ static const mask space = _CTs; |
2882 |
-+ static const mask print = _CTP; |
2883 |
-+ static const mask graph = _CTg; |
2884 |
-+ static const mask cntrl = _CTc; |
2885 |
-+ static const mask punct = _CTp; |
2886 |
-+ static const mask alnum = _CTd | _CTu | _CTl ; |
2887 |
-+ }; |
2888 |
-+ |
2889 |
-+_GLIBCXX_END_NAMESPACE_VERSION |
2890 |
-+} // namespace |
2891 |
-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 |
2892 |
---- gcc-4.6.3/libstdc++-v3/config/os/mint/ctype_inline.h 1970-01-01 01:00:00.000000000 +0100 |
2893 |
-+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/ctype_inline.h 2012-05-03 18:23:01.046875000 +0200 |
2894 |
-@@ -0,0 +1,76 @@ |
2895 |
-+// Locale support -*- C++ -*- |
2896 |
-+ |
2897 |
-+// Copyright (C) 2000, 2003, 2009, 2010 Free Software Foundation, Inc. |
2898 |
-+// |
2899 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
2900 |
-+// software; you can redistribute it and/or modify it under the |
2901 |
-+// terms of the GNU General Public License as published by the |
2902 |
-+// Free Software Foundation; either version 3, or (at your option) |
2903 |
-+// any later version. |
2904 |
-+ |
2905 |
-+// This library is distributed in the hope that it will be useful, |
2906 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
2907 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2908 |
-+// GNU General Public License for more details. |
2909 |
-+ |
2910 |
-+// Under Section 7 of GPL version 3, you are granted additional |
2911 |
-+// permissions described in the GCC Runtime Library Exception, version |
2912 |
-+// 3.1, as published by the Free Software Foundation. |
2913 |
-+ |
2914 |
-+// You should have received a copy of the GNU General Public License and |
2915 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
2916 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
2917 |
-+// <http://www.gnu.org/licenses/>. |
2918 |
-+ |
2919 |
-+/** @file bits/ctype_inline.h |
2920 |
-+ * This is an internal header file, included by other library headers. |
2921 |
-+ * Do not attempt to use it directly. @headername{locale} |
2922 |
-+ */ |
2923 |
-+ |
2924 |
-+// |
2925 |
-+// ISO C++ 14882: 22.1 Locales |
2926 |
-+// |
2927 |
-+ |
2928 |
-+// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*) |
2929 |
-+// functions go in ctype.cc |
2930 |
-+ |
2931 |
-+// Mint C types, taken from mintlib-0.57.3/include/ctype.h |
2932 |
-+ |
2933 |
-+namespace std _GLIBCXX_VISIBILITY(default) |
2934 |
-+{ |
2935 |
-+_GLIBCXX_BEGIN_NAMESPACE_VERSION |
2936 |
-+ |
2937 |
-+ bool |
2938 |
-+ ctype<char>:: |
2939 |
-+ is(mask __m, char __c) const |
2940 |
-+ { return _ctype[(unsigned char)((__c) + 1)] & __m; } |
2941 |
-+ |
2942 |
-+ const char* |
2943 |
-+ ctype<char>:: |
2944 |
-+ is(const char* __low, const char* __high, mask* __vec) const |
2945 |
-+ { |
2946 |
-+ while (__low < __high) |
2947 |
-+ *__vec++ = _ctype[(*__low++) + 1] ; |
2948 |
-+ return __high; |
2949 |
-+ } |
2950 |
-+ |
2951 |
-+ const char* |
2952 |
-+ ctype<char>:: |
2953 |
-+ scan_is(mask __m, const char* __low, const char* __high) const |
2954 |
-+ { |
2955 |
-+ while (__low < __high && !this->is(__m, *__low)) |
2956 |
-+ ++__low; |
2957 |
-+ return __low; |
2958 |
-+ } |
2959 |
-+ |
2960 |
-+ const char* |
2961 |
-+ ctype<char>:: |
2962 |
-+ scan_not(mask __m, const char* __low, const char* __high) const |
2963 |
-+ { |
2964 |
-+ while (__low < __high && this->is(__m, *__low) != 0) |
2965 |
-+ ++__low; |
2966 |
-+ return __low; |
2967 |
-+ } |
2968 |
-+ |
2969 |
-+_GLIBCXX_END_NAMESPACE_VERSION |
2970 |
-+} // namespace |
2971 |
-diff -aurN gcc-4.7.2/libstdc++-v3/config/os/mint/ctype_configure_char.cc gcc-4.7.2-mint-20120503/libstdc++-v3/config/os/mint/ctype_configure_char.cc |
2972 |
---- gcc-4.7.2/libstdc++-v3/config/os/mint/ctype_configure_char.cc 1970-01-01 01:00:00.000000000 +0100 |
2973 |
-+++ gcc-4.7.2-mint-20120503/libstdc++-v3/config/os/mint/ctype_configure_char.cc 2012-05-03 18:23:01.046875000 +0200 |
2974 |
-@@ -0,0 +1,100 @@ |
2975 |
-+// Locale support -*- C++ -*- |
2976 |
-+ |
2977 |
-+// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2009, 2010 |
2978 |
-+// Free Software Foundation, Inc. |
2979 |
-+// |
2980 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
2981 |
-+// software; you can redistribute it and/or modify it under the |
2982 |
-+// terms of the GNU General Public License as published by the |
2983 |
-+// Free Software Foundation; either version 3, or (at your option) |
2984 |
-+// any later version. |
2985 |
-+ |
2986 |
-+// This library is distributed in the hope that it will be useful, |
2987 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
2988 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
2989 |
-+// GNU General Public License for more details. |
2990 |
-+ |
2991 |
-+// Under Section 7 of GPL version 3, you are granted additional |
2992 |
-+// permissions described in the GCC Runtime Library Exception, version |
2993 |
-+// 3.1, as published by the Free Software Foundation. |
2994 |
-+ |
2995 |
-+// You should have received a copy of the GNU General Public License and |
2996 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
2997 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
2998 |
-+// <http://www.gnu.org/licenses/>. |
2999 |
-+ |
3000 |
-+/** @file ctype_configure_char.cc */ |
3001 |
-+ |
3002 |
-+// |
3003 |
-+// ISO C++ 14882: 22.1 Locales |
3004 |
-+// |
3005 |
-+ |
3006 |
-+#include <locale> |
3007 |
-+#include <cstdlib> |
3008 |
-+#include <cstring> |
3009 |
-+ |
3010 |
-+namespace std _GLIBCXX_VISIBILITY(default) |
3011 |
-+{ |
3012 |
-+_GLIBCXX_BEGIN_NAMESPACE_VERSION |
3013 |
-+ |
3014 |
-+// Information as gleaned from /usr/include/ctype.h |
3015 |
-+ |
3016 |
-+ const ctype_base::mask* |
3017 |
-+ ctype<char>::classic_table() throw() |
3018 |
-+ { return 0; } |
3019 |
-+ |
3020 |
-+ ctype<char>::ctype(__c_locale, const mask* __table, bool __del, |
3021 |
-+ size_t __refs) |
3022 |
-+ : facet(__refs), _M_del(__table != 0 && __del), |
3023 |
-+ _M_toupper(NULL), _M_tolower(NULL), |
3024 |
-+ _M_table(__table ? __table : classic_table()) |
3025 |
-+ { |
3026 |
-+ memset(_M_widen, 0, sizeof(_M_widen)); |
3027 |
-+ _M_widen_ok = 0; |
3028 |
-+ memset(_M_narrow, 0, sizeof(_M_narrow)); |
3029 |
-+ _M_narrow_ok = 0; |
3030 |
-+ } |
3031 |
-+ |
3032 |
-+ ctype<char>::ctype(const mask* __table, bool __del, size_t __refs) |
3033 |
-+ : facet(__refs), _M_del(__table != 0 && __del), |
3034 |
-+ _M_toupper(NULL), _M_tolower(NULL), |
3035 |
-+ _M_table(__table ? __table : classic_table()) |
3036 |
-+ { |
3037 |
-+ memset(_M_widen, 0, sizeof(_M_widen)); |
3038 |
-+ _M_widen_ok = 0; |
3039 |
-+ memset(_M_narrow, 0, sizeof(_M_narrow)); |
3040 |
-+ _M_narrow_ok = 0; |
3041 |
-+ } |
3042 |
-+ |
3043 |
-+ char |
3044 |
-+ ctype<char>::do_toupper(char __c) const |
3045 |
-+ { return ::toupper((int) __c); } |
3046 |
-+ |
3047 |
-+ const char* |
3048 |
-+ ctype<char>::do_toupper(char* __low, const char* __high) const |
3049 |
-+ { |
3050 |
-+ while (__low < __high) |
3051 |
-+ { |
3052 |
-+ *__low = ::toupper((int) *__low); |
3053 |
-+ ++__low; |
3054 |
-+ } |
3055 |
-+ return __high; |
3056 |
-+ } |
3057 |
-+ |
3058 |
-+ char |
3059 |
-+ ctype<char>::do_tolower(char __c) const |
3060 |
-+ { return ::tolower((int) __c); } |
3061 |
-+ |
3062 |
-+ const char* |
3063 |
-+ ctype<char>::do_tolower(char* __low, const char* __high) const |
3064 |
-+ { |
3065 |
-+ while (__low < __high) |
3066 |
-+ { |
3067 |
-+ *__low = ::tolower((int) *__low); |
3068 |
-+ ++__low; |
3069 |
-+ } |
3070 |
-+ return __high; |
3071 |
-+ } |
3072 |
-+ |
3073 |
-+_GLIBCXX_END_NAMESPACE_VERSION |
3074 |
-+} // namespace |
3075 |
-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 |
3076 |
---- gcc-4.6.3/libstdc++-v3/config/os/mint/os_defines.h 1970-01-01 01:00:00.000000000 +0100 |
3077 |
-+++ gcc-4.6.3-mint-20120503/libstdc++-v3/config/os/mint/os_defines.h 2012-05-03 18:23:01.046875000 +0200 |
3078 |
-@@ -0,0 +1,36 @@ |
3079 |
-+// Specific definitions for generic platforms -*- C++ -*- |
3080 |
-+ |
3081 |
-+// Copyright (C) 2000, 2009, 2010 Free Software Foundation, Inc. |
3082 |
-+// |
3083 |
-+// This file is part of the GNU ISO C++ Library. This library is free |
3084 |
-+// software; you can redistribute it and/or modify it under the |
3085 |
-+// terms of the GNU General Public License as published by the |
3086 |
-+// Free Software Foundation; either version 3, or (at your option) |
3087 |
-+// any later version. |
3088 |
-+ |
3089 |
-+// This library is distributed in the hope that it will be useful, |
3090 |
-+// but WITHOUT ANY WARRANTY; without even the implied warranty of |
3091 |
-+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3092 |
-+// GNU General Public License for more details. |
3093 |
-+ |
3094 |
-+// Under Section 7 of GPL version 3, you are granted additional |
3095 |
-+// permissions described in the GCC Runtime Library Exception, version |
3096 |
-+// 3.1, as published by the Free Software Foundation. |
3097 |
-+ |
3098 |
-+// You should have received a copy of the GNU General Public License and |
3099 |
-+// a copy of the GCC Runtime Library Exception along with this program; |
3100 |
-+// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see |
3101 |
-+// <http://www.gnu.org/licenses/>. |
3102 |
-+ |
3103 |
-+/** @file bits/os_defines.h |
3104 |
-+ * This is an internal header file, included by other library headers. |
3105 |
-+ * Do not attempt to use it directly. @headername{iosfwd} |
3106 |
-+ */ |
3107 |
-+ |
3108 |
-+#ifndef _GLIBCXX_OS_DEFINES |
3109 |
-+#define _GLIBCXX_OS_DEFINES 1 |
3110 |
-+ |
3111 |
-+// System-specific #define, typedefs, corrections, etc, go here. This |
3112 |
-+// file will come before all others. |
3113 |
-+ |
3114 |
-+#endif |
3115 |
-diff -aurN gcc-4.6.3/libstdc++-v3/configure gcc-4.6.3-mint-20120503/libstdc++-v3/configure |
3116 |
---- gcc-4.6.3/libstdc++-v3/configure 2011-11-20 22:24:07.000000000 +0100 |
3117 |
-+++ gcc-4.6.3-mint-20120503/libstdc++-v3/configure 2012-05-03 18:23:01.125000000 +0200 |
3118 |
-@@ -44640,7 +44640,7 @@ |
3119 |
- ;; |
3120 |
- esac |
3121 |
- ;; |
3122 |
-- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) |
3123 |
-+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*) |
3124 |
- |
3125 |
- # All these tests are for C++; save the language and the compiler flags. |
3126 |
- # The CXXFLAGS thing is suspicious, but based on similar bits previously |
3127 |
-diff -aurN gcc-4.6.3/libstdc++-v3/configure.host gcc-4.6.3-mint-20120503/libstdc++-v3/configure.host |
3128 |
---- gcc-4.6.3/libstdc++-v3/configure.host 2010-12-06 01:50:04.000000000 +0100 |
3129 |
-+++ gcc-4.6.3-mint-20120503/libstdc++-v3/configure.host 2012-05-03 18:23:01.125000000 +0200 |
3130 |
-@@ -258,6 +258,10 @@ |
3131 |
- error_constants_dir="os/mingw32" |
3132 |
- OPT_LDFLAGS="${OPT_LDFLAGS} \$(lt_host_flags)" |
3133 |
- ;; |
3134 |
-+ mint*) |
3135 |
-+ SECTION_FLAGS="${SECTION_FLAGS} -D_GNU_SOURCE" |
3136 |
-+ os_include_dir="os/mint" |
3137 |
-+ ;; |
3138 |
- netbsd*) |
3139 |
- os_include_dir="os/bsd/netbsd" |
3140 |
- ;; |
3141 |
-diff -aurN gcc-4.6.3/libstdc++-v3/crossconfig.m4 gcc-4.6.3-mint-20120503/libstdc++-v3/crossconfig.m4 |
3142 |
---- gcc-4.6.3/libstdc++-v3/crossconfig.m4 2011-02-04 08:26:57.000000000 +0100 |
3143 |
-+++ gcc-4.6.3-mint-20120503/libstdc++-v3/crossconfig.m4 2012-05-03 18:23:01.125000000 +0200 |
3144 |
-@@ -141,7 +141,7 @@ |
3145 |
- ;; |
3146 |
- esac |
3147 |
- ;; |
3148 |
-- *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu) |
3149 |
-+ *-linux* | *-uclinux* | *-gnu* | *-kfreebsd*-gnu | *-knetbsd*-gnu | *-mint*) |
3150 |
- GLIBCXX_CHECK_COMPILER_FEATURES |
3151 |
- GLIBCXX_CHECK_LINKER_FEATURES |
3152 |
- GLIBCXX_CHECK_MATH_SUPPORT |
3153 |
|
3154 |
diff --git a/sys-devel/gcc/files/4.7.2/mint2.patch b/sys-devel/gcc/files/4.7.2/mint2.patch |
3155 |
deleted file mode 100644 |
3156 |
index 948f09f3f3..0000000000 |
3157 |
--- a/sys-devel/gcc/files/4.7.2/mint2.patch |
3158 |
+++ /dev/null |
3159 |
@@ -1,44 +0,0 @@ |
3160 |
-http://bugs.gentoo.org/show_bug.cgi?id=347319 |
3161 |
- |
3162 |
---- gcc/Makefile.in.old 2010-11-26 18:16:31.000000000 +0000 |
3163 |
-+++ gcc/Makefile.in 2010-11-26 18:17:13.000000000 +0000 |
3164 |
-@@ -1819,6 +1819,7 @@ |
3165 |
- cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS) |
3166 |
- $(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) \ |
3167 |
- cc1-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS) |
3168 |
-+ stack -S 2 $@ |
3169 |
- |
3170 |
- # |
3171 |
- # Build libgcc.a. |
3172 |
---- gcc/cp/Make-lang.in.old 2013-03-22 21:10:05.000000000 +0000 |
3173 |
-+++ gcc/cp/Make-lang.in 2013-03-22 21:10:24.000000000 +0000 |
3174 |
-@@ -104,6 +104,7 @@ |
3175 |
- cc1plus$(exeext): $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(LIBDEPS) |
3176 |
- +$(LINKER) $(ALL_LINKERFLAGS) $(LDFLAGS) -o $@ \ |
3177 |
- $(CXX_OBJS) cc1plus-checksum.o $(BACKEND) $(LIBS) $(BACKENDLIBS) |
3178 |
-+ stack -S 2 $@ |
3179 |
- |
3180 |
- ifeq ($(ENABLE_MAINTAINER_RULES), true) |
3181 |
- # Special build rule. This is a maintainer rule, that is only |
3182 |
---- config/picflag.m4.old 2013-03-09 22:38:27.000000000 +0000 |
3183 |
-+++ config/picflag.m4 2013-03-09 22:38:49.000000000 +0000 |
3184 |
-@@ -11,6 +11,8 @@ |
3185 |
- # Common symbols not allowed in MH_DYLIB files |
3186 |
- $1=-fno-common |
3187 |
- ;; |
3188 |
-+ *-*-mint*) |
3189 |
-+ ;; |
3190 |
- alpha*-dec-osf5*) |
3191 |
- # PIC is the default. |
3192 |
- ;; |
3193 |
---- libiberty/configure.old 2013-03-09 22:36:10.000000000 +0000 |
3194 |
-+++ libiberty/configure 2013-03-09 22:36:45.000000000 +0000 |
3195 |
-@@ -4859,6 +4859,8 @@ |
3196 |
- # Common symbols not allowed in MH_DYLIB files |
3197 |
- PICFLAG=-fno-common |
3198 |
- ;; |
3199 |
-+ *-*-mint*) |
3200 |
-+ ;; |
3201 |
- alpha*-dec-osf5*) |
3202 |
- # PIC is the default. |
3203 |
- ;; |
3204 |
|
3205 |
diff --git a/sys-devel/gcc/files/4.7.2/mint3.patch b/sys-devel/gcc/files/4.7.2/mint3.patch |
3206 |
deleted file mode 100644 |
3207 |
index 71195ccf61..0000000000 |
3208 |
--- a/sys-devel/gcc/files/4.7.2/mint3.patch |
3209 |
+++ /dev/null |
3210 |
@@ -1,335 +0,0 @@ |
3211 |
-http://bugs.gentoo.org/show_bug.cgi?id=350822 |
3212 |
- |
3213 |
---- libstdc++-v3/libsupc++/guard.cc.old 2008-04-21 14:01:06.429023196 +0100 |
3214 |
-+++ libstdc++-v3/libsupc++/guard.cc 2008-04-21 14:01:25.230287338 +0100 |
3215 |
-@@ -30,6 +30,7 @@ |
3216 |
- // Thread support written by Jason Merrill, Red Hat Inc. <jason@××××××.com> |
3217 |
- |
3218 |
- #include <bits/c++config.h> |
3219 |
-+#include <cstdlib> |
3220 |
- #include <cxxabi.h> |
3221 |
- #include <exception> |
3222 |
- #include <new> |
3223 |
---- libstdc++-v3/src/c++98/codecvt.cc.old 2008-04-21 14:32:37.116117842 +0100 |
3224 |
-+++ libstdc++-v3/src/c++98/codecvt.cc 2008-04-21 14:32:47.505045768 +0100 |
3225 |
-@@ -27,6 +27,7 @@ |
3226 |
- |
3227 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3228 |
- |
3229 |
-+#include <cstdlib> |
3230 |
- #include <locale> |
3231 |
- |
3232 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3233 |
---- libstdc++-v3/src/c++98/complex_io.cc.old 2008-04-21 14:36:27.261023151 +0100 |
3234 |
-+++ libstdc++-v3/src/c++98/complex_io.cc 2008-04-21 14:36:36.534232802 +0100 |
3235 |
-@@ -27,6 +27,7 @@ |
3236 |
- // invalidate any other reasons why the executable file might be covered by |
3237 |
- // the GNU General Public License. |
3238 |
- |
3239 |
-+#include <cstdlib> |
3240 |
- #include <complex> |
3241 |
- |
3242 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3243 |
---- libstdc++-v3/src/c++98/ctype.cc.old 2008-04-21 14:40:06.994312017 +0100 |
3244 |
-+++ libstdc++-v3/src/c++98/ctype.cc 2008-04-21 14:40:18.218220665 +0100 |
3245 |
-@@ -26,6 +26,7 @@ |
3246 |
- // invalidate any other reasons why the executable file might be covered by |
3247 |
- // the GNU General Public License. |
3248 |
- |
3249 |
-+#include <cstdlib> |
3250 |
- #include <locale> |
3251 |
- |
3252 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3253 |
---- libstdc++-v3/src/c++98/globals_io.cc.old 2008-04-21 14:47:42.230023258 +0100 |
3254 |
-+++ libstdc++-v3/src/c++98/globals_io.cc 2008-04-21 14:47:52.749297097 +0100 |
3255 |
-@@ -27,6 +27,7 @@ |
3256 |
- // the GNU General Public License. |
3257 |
- |
3258 |
- #include "bits/c++config.h" |
3259 |
-+#include <cstdlib> |
3260 |
- #include <fstream> |
3261 |
- #include <istream> |
3262 |
- #include <ostream> |
3263 |
---- libstdc++-v3/src/c++98/ios.cc.old 2008-04-21 14:51:32.364023391 +0100 |
3264 |
-+++ libstdc++-v3/src/c++98/ios.cc 2008-04-21 14:51:39.371196232 +0100 |
3265 |
-@@ -32,6 +32,7 @@ |
3266 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
3267 |
- // |
3268 |
- |
3269 |
-+#include <cstdlib> |
3270 |
- #include <ios> |
3271 |
- #include <limits> |
3272 |
- |
3273 |
---- libstdc++-v3/src/c++98/ios_failure.cc.old 2008-04-21 14:53:10.759023042 +0100 |
3274 |
-+++ libstdc++-v3/src/c++98/ios_failure.cc 2008-04-21 14:53:40.197127646 +0100 |
3275 |
-@@ -32,6 +32,7 @@ |
3276 |
- // ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure |
3277 |
- // |
3278 |
- |
3279 |
-+#include <cstdlib> |
3280 |
- #include <ios> |
3281 |
- |
3282 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3283 |
---- libstdc++-v3/src/c++98/ios_init.cc.old 2008-04-21 14:55:53.181023355 +0100 |
3284 |
-+++ libstdc++-v3/src/c++98/ios_init.cc 2008-04-21 14:56:01.407485842 +0100 |
3285 |
-@@ -32,6 +32,7 @@ |
3286 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
3287 |
- // |
3288 |
- |
3289 |
-+#include <cstdlib> |
3290 |
- #include <ios> |
3291 |
- #include <ostream> |
3292 |
- #include <istream> |
3293 |
---- libstdc++-v3/src/c++98/ios_locale.cc.old 2008-04-21 15:04:38.355183857 +0100 |
3294 |
-+++ libstdc++-v3/src/c++98/ios_locale.cc 2008-04-21 15:04:47.456159205 +0100 |
3295 |
-@@ -32,6 +32,7 @@ |
3296 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
3297 |
- // |
3298 |
- |
3299 |
-+#include <cstdlib> |
3300 |
- #include <ios> |
3301 |
- #include <locale> |
3302 |
- |
3303 |
---- libstdc++-v3/src/c++98/locale_facets.cc.old 2008-04-21 15:10:19.610023164 +0100 |
3304 |
-+++ libstdc++-v3/src/c++98/locale_facets.cc 2008-04-21 15:10:26.952034403 +0100 |
3305 |
-@@ -26,6 +26,7 @@ |
3306 |
- // invalidate any other reasons why the executable file might be covered by |
3307 |
- // the GNU General Public License. |
3308 |
- |
3309 |
-+#include <cstdlib> |
3310 |
- #include <locale> |
3311 |
- |
3312 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3313 |
---- libstdc++-v3/src/c++98/strstream.cc.old 2008-04-21 15:17:36.006071207 +0100 |
3314 |
-+++ libstdc++-v3/src/c++98/strstream.cc 2008-04-21 15:17:43.447641937 +0100 |
3315 |
-@@ -46,6 +46,7 @@ |
3316 |
- // MAY BE REMOVED in a future standard revision. You should use the |
3317 |
- // header <sstream> instead. |
3318 |
- |
3319 |
-+#include <cstdlib> |
3320 |
- #include <strstream> |
3321 |
- #include <algorithm> |
3322 |
- #include <new> |
3323 |
---- libstdc++-v3/src/c++11/fstream-inst.cc.old 2008-04-21 15:25:14.168032671 +0100 |
3324 |
-+++ libstdc++-v3/src/c++11/fstream-inst.cc 2008-04-21 15:25:24.605060960 +0100 |
3325 |
-@@ -32,6 +32,7 @@ |
3326 |
- // ISO C++ 14882: |
3327 |
- // |
3328 |
- |
3329 |
-+#include <cstdlib> |
3330 |
- #include <fstream> |
3331 |
- |
3332 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3333 |
---- libstdc++-v3/src/c++98/ios-inst.cc.old 2008-04-21 15:40:43.642023146 +0100 |
3334 |
-+++ libstdc++-v3/src/c++98/ios-inst.cc 2008-04-21 15:40:51.723051414 +0100 |
3335 |
-@@ -32,6 +32,7 @@ |
3336 |
- // ISO C++ 14882: |
3337 |
- // |
3338 |
- |
3339 |
-+#include <cstdlib> |
3340 |
- #include <ios> |
3341 |
- |
3342 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3343 |
---- libstdc++-v3/src/c++98/iostream-inst.cc.old 2008-04-21 15:55:15.625023267 +0100 |
3344 |
-+++ libstdc++-v3/src/c++98/iostream-inst.cc 2008-04-21 15:55:23.629058393 +0100 |
3345 |
-@@ -32,6 +32,7 @@ |
3346 |
- // ISO C++ 14882: |
3347 |
- // |
3348 |
- |
3349 |
-+#include <cstdlib> |
3350 |
- #include <iomanip> |
3351 |
- |
3352 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3353 |
---- libstdc++-v3/src/c++98/istream-inst.cc.old 2008-04-21 15:59:50.862024439 +0100 |
3354 |
-+++ libstdc++-v3/src/c++98/istream-inst.cc 2008-04-21 15:59:59.603028397 +0100 |
3355 |
-@@ -32,6 +32,7 @@ |
3356 |
- // ISO C++ 14882: |
3357 |
- // |
3358 |
- |
3359 |
-+#include <cstdlib> |
3360 |
- #include <istream> |
3361 |
- #include <iomanip> |
3362 |
- |
3363 |
---- libstdc++-v3/src/c++98/istream.cc.old 2008-04-21 16:03:55.949023206 +0100 |
3364 |
-+++ libstdc++-v3/src/c++98/istream.cc 2008-04-21 16:04:03.746026447 +0100 |
3365 |
-@@ -31,6 +31,7 @@ |
3366 |
- // ISO C++ 14882: 27.6.1 Input streams |
3367 |
- // |
3368 |
- |
3369 |
-+#include <cstdlib> |
3370 |
- #include <istream> |
3371 |
- |
3372 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3373 |
---- libstdc++-v3/src/c++98/locale-inst.cc.old 2008-04-21 16:07:06.705023144 +0100 |
3374 |
-+++ libstdc++-v3/src/c++98/locale-inst.cc 2008-04-21 16:07:14.922226343 +0100 |
3375 |
-@@ -32,6 +32,7 @@ |
3376 |
- // ISO C++ 14882: 22.1 Locales |
3377 |
- // |
3378 |
- |
3379 |
-+#include <cstdlib> |
3380 |
- #include <locale> |
3381 |
- |
3382 |
- // Instantiation configuration. |
3383 |
---- libstdc++-v3/src/c++98/ostream-inst.cc.old 2008-04-21 16:19:19.443023243 +0100 |
3384 |
-+++ libstdc++-v3/src/c++98/ostream-inst.cc 2008-04-21 16:19:26.505037357 +0100 |
3385 |
-@@ -32,6 +32,7 @@ |
3386 |
- // ISO C++ 14882: |
3387 |
- // |
3388 |
- |
3389 |
-+#include <cstdlib> |
3390 |
- #include <ostream> |
3391 |
- #include <iomanip> |
3392 |
- |
3393 |
---- libstdc++-v3/src/c++98/sstream-inst.cc.old 2008-04-21 16:22:53.830023256 +0100 |
3394 |
-+++ libstdc++-v3/src/c++98/sstream-inst.cc 2008-04-21 16:23:01.792239858 +0100 |
3395 |
-@@ -32,6 +32,7 @@ |
3396 |
- // ISO C++ 14882: |
3397 |
- // |
3398 |
- |
3399 |
-+#include <cstdlib> |
3400 |
- #include <sstream> |
3401 |
- |
3402 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3403 |
---- libstdc++-v3/src/c++98/streambuf-inst.cc.old 2008-04-21 16:27:18.648023102 +0100 |
3404 |
-+++ libstdc++-v3/src/c++98/streambuf-inst.cc 2008-04-21 16:27:28.394022870 +0100 |
3405 |
-@@ -32,6 +32,7 @@ |
3406 |
- // ISO C++ 14882: |
3407 |
- // |
3408 |
- |
3409 |
-+#include <cstdlib> |
3410 |
- #include <ios> |
3411 |
- #include <streambuf> |
3412 |
- |
3413 |
---- libstdc++-v3/src/c++98/streambuf.cc.old 2008-04-21 16:32:11.191078470 +0100 |
3414 |
-+++ libstdc++-v3/src/c++98/streambuf.cc 2008-04-21 16:32:20.434047649 +0100 |
3415 |
-@@ -31,6 +31,7 @@ |
3416 |
- // ISO C++ 14882: 27.5 Stream buffers |
3417 |
- // |
3418 |
- |
3419 |
-+#include <cstdlib> |
3420 |
- #include <streambuf> |
3421 |
- |
3422 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3423 |
---- libstdc++-v3/config/locale/generic/codecvt_members.cc.old 2008-04-21 16:40:52.235023128 +0100 |
3424 |
-+++ libstdc++-v3/config/locale/generic/codecvt_members.cc 2008-04-21 16:41:01.248427209 +0100 |
3425 |
-@@ -33,6 +33,7 @@ |
3426 |
- |
3427 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3428 |
- |
3429 |
-+#include <cstdlib> |
3430 |
- #include <locale> |
3431 |
- |
3432 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3433 |
---- libstdc++-v3/config/locale/generic/collate_members.cc.old 2008-04-21 16:42:19.265348380 +0100 |
3434 |
-+++ libstdc++-v3/config/locale/generic/collate_members.cc 2008-04-21 16:42:25.552040967 +0100 |
3435 |
-@@ -33,6 +33,7 @@ |
3436 |
- |
3437 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3438 |
- |
3439 |
-+#include <cstdlib> |
3440 |
- #include <locale> |
3441 |
- |
3442 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3443 |
---- libstdc++-v3/config/locale/generic/ctype_members.cc.old 2008-04-21 16:49:06.726023078 +0100 |
3444 |
-+++ libstdc++-v3/config/locale/generic/ctype_members.cc 2008-04-21 16:49:18.212045558 +0100 |
3445 |
-@@ -33,6 +33,7 @@ |
3446 |
- |
3447 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3448 |
- |
3449 |
-+#include <cstdlib> |
3450 |
- #include <locale> |
3451 |
- |
3452 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3453 |
---- libstdc++-v3/config/locale/generic/messages_members.cc.old 2008-04-21 16:51:46.237348712 +0100 |
3454 |
-+++ libstdc++-v3/config/locale/generic/messages_members.cc 2008-04-21 16:51:55.015221637 +0100 |
3455 |
-@@ -33,6 +33,7 @@ |
3456 |
- |
3457 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3458 |
- |
3459 |
-+#include <cstdlib> |
3460 |
- #include <locale> |
3461 |
- |
3462 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3463 |
---- libstdc++-v3/config/locale/generic/monetary_members.cc.old 2008-04-21 16:53:14.893023165 +0100 |
3464 |
-+++ libstdc++-v3/config/locale/generic/monetary_members.cc 2008-04-21 16:53:22.350043513 +0100 |
3465 |
-@@ -33,6 +33,7 @@ |
3466 |
- |
3467 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3468 |
- |
3469 |
-+#include <cstdlib> |
3470 |
- #include <locale> |
3471 |
- |
3472 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3473 |
---- libstdc++-v3/config/locale/generic/numeric_members.cc.old 2008-04-21 16:54:11.077212480 +0100 |
3474 |
-+++ libstdc++-v3/config/locale/generic/numeric_members.cc 2008-04-21 16:53:32.618266080 +0100 |
3475 |
-@@ -33,6 +33,7 @@ |
3476 |
- |
3477 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3478 |
- |
3479 |
-+#include <cstdlib> |
3480 |
- #include <locale> |
3481 |
- |
3482 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3483 |
---- libstdc++-v3/config/locale/generic/time_members.cc.old 2008-04-21 16:54:00.835099080 +0100 |
3484 |
-+++ libstdc++-v3/config/locale/generic/time_members.cc 2008-04-21 16:53:41.260024731 +0100 |
3485 |
-@@ -34,6 +34,7 @@ |
3486 |
- |
3487 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
3488 |
- |
3489 |
-+#include <cstdlib> |
3490 |
- #include <locale> |
3491 |
- |
3492 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
3493 |
---- libstdc++-v3/config/io/basic_file_stdio.cc.old 2008-04-21 17:00:09.629307442 +0100 |
3494 |
-+++ libstdc++-v3/config/io/basic_file_stdio.cc 2008-04-21 16:59:58.512314844 +0100 |
3495 |
-@@ -32,6 +32,7 @@ |
3496 |
- // ISO C++ 14882: 27.8 File-based streams |
3497 |
- // |
3498 |
- |
3499 |
-+#include <cstdlib> |
3500 |
- #include <bits/basic_file.h> |
3501 |
- #include <fcntl.h> |
3502 |
- #include <errno.h> |
3503 |
---- gcc/cp/g++spec.c.old 2008-06-05 11:12:02.252475943 +0100 |
3504 |
-+++ gcc/cp/g++spec.c 2008-06-05 11:12:49.557473133 +0100 |
3505 |
-@@ -343,6 +343,12 @@ |
3506 |
- } |
3507 |
- #endif |
3508 |
- } |
3509 |
-+#ifdef __MINT__ |
3510 |
-+ generate_option (OPT_l, "pthread", 1, |
3511 |
-+ CL_DRIVER, &new_decoded_options[j]); |
3512 |
-+ added_libraries++; |
3513 |
-+ j++; |
3514 |
-+#endif |
3515 |
- if (saw_math) |
3516 |
- new_decoded_options[j++] = *saw_math; |
3517 |
- else if (library > 0 && need_math) |
3518 |
---- libstdc++-v3/include/c_global/cstdlib.old 2008-06-05 11:15:10.644432810 +0100 |
3519 |
-+++ libstdc++-v3/include/c_global/cstdlib 2008-06-05 11:15:43.703707876 +0100 |
3520 |
-@@ -97,7 +97,11 @@ |
3521 |
- #undef strtod |
3522 |
- #undef strtol |
3523 |
- #undef strtoul |
3524 |
-+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE) |
3525 |
-+/* don't undefine system as we're using libpthread */ |
3526 |
-+#else |
3527 |
- #undef system |
3528 |
-+#endif |
3529 |
- #undef wcstombs |
3530 |
- #undef wctomb |
3531 |
- |
3532 |
---- libstdc++-v3/include/c_std/cstdlib.old 2008-06-05 11:15:10.644432810 +0100 |
3533 |
-+++ libstdc++-v3/include/c_std/cstdlib 2008-06-05 11:15:43.703707876 +0100 |
3534 |
-@@ -97,7 +97,11 @@ |
3535 |
- #undef strtod |
3536 |
- #undef strtol |
3537 |
- #undef strtoul |
3538 |
-+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE) |
3539 |
-+/* don't undefine system as we're using libpthread */ |
3540 |
-+#else |
3541 |
- #undef system |
3542 |
-+#endif |
3543 |
- #undef wcstombs |
3544 |
- #undef wctomb |
3545 |
- |
3546 |
|
3547 |
diff --git a/sys-devel/gcc/files/4.7.2/pr52391.patch b/sys-devel/gcc/files/4.7.2/pr52391.patch |
3548 |
deleted file mode 100644 |
3549 |
index 9191fe51b4..0000000000 |
3550 |
--- a/sys-devel/gcc/files/4.7.2/pr52391.patch |
3551 |
+++ /dev/null |
3552 |
@@ -1,110 +0,0 @@ |
3553 |
-http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52391 |
3554 |
- |
3555 |
---- gcc/config/m68k/m68k.md.old 2013-03-11 22:58:49.000000000 +0000 |
3556 |
-+++ gcc/config/m68k/m68k.md 2013-03-11 23:00:49.000000000 +0000 |
3557 |
-@@ -6331,7 +6331,7 @@ |
3558 |
- { |
3559 |
- OUTPUT_JUMP ("jeq %l0", "fjeq %l0", "jeq %l0"); |
3560 |
- } |
3561 |
-- [(set (attr "type") (symbol_ref "m68k_sched_branch_type (insn)"))]) |
3562 |
-+ [(set_attr "type" "bcc")]) |
3563 |
- |
3564 |
- (define_insn "bne" |
3565 |
- [(set (pc) |
3566 |
-@@ -6343,7 +6343,7 @@ |
3567 |
- { |
3568 |
- OUTPUT_JUMP ("jne %l0", "fjne %l0", "jne %l0"); |
3569 |
- } |
3570 |
-- [(set (attr "type") (symbol_ref "m68k_sched_branch_type (insn)"))]) |
3571 |
-+ [(set_attr "type" "bcc")]) |
3572 |
- |
3573 |
- (define_insn "bgt" |
3574 |
- [(set (pc) |
3575 |
-@@ -6361,7 +6361,7 @@ |
3576 |
- |
3577 |
- OUTPUT_JUMP ("jgt %l0", "fjgt %l0", 0); |
3578 |
- } |
3579 |
-- [(set (attr "type") (symbol_ref "m68k_sched_branch_type (insn)"))]) |
3580 |
-+ [(set_attr "type" "bcc")]) |
3581 |
- |
3582 |
- (define_insn "bgtu" |
3583 |
- [(set (pc) |
3584 |
-@@ -6397,7 +6397,7 @@ |
3585 |
- |
3586 |
- OUTPUT_JUMP ("jlt %l0", "fjlt %l0", "jmi %l0"); |
3587 |
- } |
3588 |
-- [(set (attr "type") (symbol_ref "m68k_sched_branch_type (insn)"))]) |
3589 |
-+ [(set_attr "type" "bcc")]) |
3590 |
- |
3591 |
- (define_insn "bltu" |
3592 |
- [(set (pc) |
3593 |
---- gcc/config/m68k/m68k-protos.h.old 2013-03-11 23:01:22.000000000 +0000 |
3594 |
-+++ gcc/config/m68k/m68k-protos.h 2013-03-11 23:01:30.000000000 +0000 |
3595 |
-@@ -81,7 +81,6 @@ |
3596 |
- extern enum attr_opy_type m68k_sched_attr_opy_type (rtx, int); |
3597 |
- extern enum attr_size m68k_sched_attr_size (rtx); |
3598 |
- extern enum attr_op_mem m68k_sched_attr_op_mem (rtx); |
3599 |
--extern enum attr_type m68k_sched_branch_type (rtx); |
3600 |
- #endif /* HAVE_ATTR_cpu */ |
3601 |
- |
3602 |
- #endif /* RTX_CODE */ |
3603 |
---- gcc/config/m68k/m68k.c.old 2013-03-11 23:01:44.000000000 +0000 |
3604 |
-+++ gcc/config/m68k/m68k.c 2013-03-11 23:02:52.000000000 +0000 |
3605 |
-@@ -5880,26 +5880,6 @@ |
3606 |
- return OP_MEM_I1; |
3607 |
- } |
3608 |
- |
3609 |
--/* Jump instructions types. Indexed by INSN_UID. |
3610 |
-- The same rtl insn can be expanded into different asm instructions |
3611 |
-- depending on the cc0_status. To properly determine type of jump |
3612 |
-- instructions we scan instruction stream and map jumps types to this |
3613 |
-- array. */ |
3614 |
--static enum attr_type *sched_branch_type; |
3615 |
-- |
3616 |
--/* Return the type of the jump insn. */ |
3617 |
--enum attr_type |
3618 |
--m68k_sched_branch_type (rtx insn) |
3619 |
--{ |
3620 |
-- enum attr_type type; |
3621 |
-- |
3622 |
-- type = sched_branch_type[INSN_UID (insn)]; |
3623 |
-- |
3624 |
-- gcc_assert (type != 0); |
3625 |
-- |
3626 |
-- return type; |
3627 |
--} |
3628 |
-- |
3629 |
- /* Data for ColdFire V4 index bypass. |
3630 |
- Producer modifies register that is used as index in consumer with |
3631 |
- specified scale. */ |
3632 |
-@@ -6123,20 +6103,6 @@ |
3633 |
- int sched_verbose ATTRIBUTE_UNUSED, |
3634 |
- int n_insns ATTRIBUTE_UNUSED) |
3635 |
- { |
3636 |
-- /* Init branch types. */ |
3637 |
-- { |
3638 |
-- rtx insn; |
3639 |
-- |
3640 |
-- sched_branch_type = XCNEWVEC (enum attr_type, get_max_uid () + 1); |
3641 |
-- |
3642 |
-- for (insn = get_insns (); insn != NULL_RTX; insn = NEXT_INSN (insn)) |
3643 |
-- { |
3644 |
-- if (JUMP_P (insn)) |
3645 |
-- /* !!! FIXME: Implement real scan here. */ |
3646 |
-- sched_branch_type[INSN_UID (insn)] = TYPE_BCC; |
3647 |
-- } |
3648 |
-- } |
3649 |
-- |
3650 |
- #ifdef ENABLE_CHECKING |
3651 |
- /* Check that all instructions have DFA reservations and |
3652 |
- that all instructions can be issued from a clean state. */ |
3653 |
-@@ -6218,9 +6184,6 @@ |
3654 |
- sched_ib.records.adjust = NULL; |
3655 |
- sched_ib.records.n_insns = 0; |
3656 |
- max_insn_size = 0; |
3657 |
-- |
3658 |
-- free (sched_branch_type); |
3659 |
-- sched_branch_type = NULL; |
3660 |
- } |
3661 |
- |
3662 |
- /* Implementation of targetm.sched.init () hook. |
3663 |
|
3664 |
diff --git a/sys-devel/gcc/files/4.7.2/pr52714.patch b/sys-devel/gcc/files/4.7.2/pr52714.patch |
3665 |
deleted file mode 100644 |
3666 |
index c39285a5be..0000000000 |
3667 |
--- a/sys-devel/gcc/files/4.7.2/pr52714.patch |
3668 |
+++ /dev/null |
3669 |
@@ -1,75 +0,0 @@ |
3670 |
-[proposed but not yet submitted fix for PR52714 on M68K <mikpe@×××××.se>] |
3671 |
- |
3672 |
-gcc/ |
3673 |
- |
3674 |
-2012-12-30 Mikael Pettersson <mikpe@×××××.se> |
3675 |
- |
3676 |
- PR rtl-optimization/52714 |
3677 |
- * combine.c (try_combine): Revert to gcc-4.5 version |
3678 |
- of PR rtl-optimization/45695 fix. |
3679 |
- |
3680 |
---- gcc-4.6.3/gcc/combine.c.~1~ 2012-02-09 18:29:38.000000000 +0100 |
3681 |
-+++ gcc-4.6.3/gcc/combine.c 2012-12-30 16:14:06.000000000 +0100 |
3682 |
-@@ -3765,41 +3765,42 @@ try_combine (rtx i3, rtx i2, rtx i1, rtx |
3683 |
- && GET_CODE (XVECEXP (newpat, 0, 1)) == SET |
3684 |
- && GET_CODE (SET_DEST (XVECEXP (newpat, 0, 1))) != ZERO_EXTRACT |
3685 |
- && GET_CODE (SET_DEST (XVECEXP (newpat, 0, 1))) != STRICT_LOW_PART |
3686 |
-+ && ! use_crosses_set_p (SET_SRC (XVECEXP (newpat, 0, 1)), |
3687 |
-+ DF_INSN_LUID (i2)) |
3688 |
- && ! reg_referenced_p (SET_DEST (XVECEXP (newpat, 0, 1)), |
3689 |
- XVECEXP (newpat, 0, 0)) |
3690 |
- && ! reg_referenced_p (SET_DEST (XVECEXP (newpat, 0, 0)), |
3691 |
- XVECEXP (newpat, 0, 1)) |
3692 |
- && ! (contains_muldiv (SET_SRC (XVECEXP (newpat, 0, 0))) |
3693 |
-- && contains_muldiv (SET_SRC (XVECEXP (newpat, 0, 1))))) |
3694 |
-+ && contains_muldiv (SET_SRC (XVECEXP (newpat, 0, 1)))) |
3695 |
-+#ifdef HAVE_cc0 |
3696 |
-+ /* We cannot split the parallel into two sets if both sets |
3697 |
-+ reference cc0. */ |
3698 |
-+ && ! (reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 0)) |
3699 |
-+ && reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 1))) |
3700 |
-+#endif |
3701 |
-+ ) |
3702 |
- { |
3703 |
- /* Normally, it doesn't matter which of the two is done first, |
3704 |
-- but the one that references cc0 can't be the second, and |
3705 |
-- one which uses any regs/memory set in between i2 and i3 can't |
3706 |
-+ but it does if one references cc0. In that case, it has to |
3707 |
- be first. */ |
3708 |
-- if (!use_crosses_set_p (SET_SRC (XVECEXP (newpat, 0, 1)), |
3709 |
-- DF_INSN_LUID (i2)) |
3710 |
--#ifdef HAVE_cc0 |
3711 |
-- && !reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 0)) |
3712 |
--#endif |
3713 |
-- ) |
3714 |
-- { |
3715 |
-- newi2pat = XVECEXP (newpat, 0, 1); |
3716 |
-- newpat = XVECEXP (newpat, 0, 0); |
3717 |
-- } |
3718 |
-- else if (!use_crosses_set_p (SET_SRC (XVECEXP (newpat, 0, 0)), |
3719 |
-- DF_INSN_LUID (i2)) |
3720 |
- #ifdef HAVE_cc0 |
3721 |
-- && !reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 1)) |
3722 |
--#endif |
3723 |
-- ) |
3724 |
-+ if (reg_referenced_p (cc0_rtx, XVECEXP (newpat, 0, 0))) |
3725 |
- { |
3726 |
-+ if (use_crosses_set_p (SET_SRC (XVECEXP (newpat, 0, 0)), |
3727 |
-+ DF_INSN_LUID (i2))) |
3728 |
-+ { |
3729 |
-+ undo_all (); |
3730 |
-+ return 0; |
3731 |
-+ } |
3732 |
- newi2pat = XVECEXP (newpat, 0, 0); |
3733 |
- newpat = XVECEXP (newpat, 0, 1); |
3734 |
- } |
3735 |
- else |
3736 |
-+#endif |
3737 |
- { |
3738 |
-- undo_all (); |
3739 |
-- return 0; |
3740 |
-+ newi2pat = XVECEXP (newpat, 0, 1); |
3741 |
-+ newpat = XVECEXP (newpat, 0, 0); |
3742 |
- } |
3743 |
- |
3744 |
- i2_code_number = recog_for_combine (&newi2pat, i2, &new_i2_notes); |
3745 |
|
3746 |
diff --git a/sys-devel/gcc/files/4.7.2/pr52773.patch b/sys-devel/gcc/files/4.7.2/pr52773.patch |
3747 |
deleted file mode 100644 |
3748 |
index dc3d2ff341..0000000000 |
3749 |
--- a/sys-devel/gcc/files/4.7.2/pr52773.patch |
3750 |
+++ /dev/null |
3751 |
@@ -1,70 +0,0 @@ |
3752 |
-diff --git a/gcc/calls.c b/gcc/calls.c |
3753 |
-index cdab8e0..db38b73 100644 |
3754 |
---- a/gcc/calls.c |
3755 |
-+++ b/gcc/calls.c |
3756 |
-@@ -3603,6 +3603,7 @@ emit_library_call_value_1 (int retval, rtx orgfun, rtx value, |
3757 |
- int reg_parm_stack_space = 0; |
3758 |
- int needed; |
3759 |
- rtx before_call; |
3760 |
-+ bool have_push_fusage; |
3761 |
- tree tfom; /* type_for_mode (outmode, 0) */ |
3762 |
- |
3763 |
- #ifdef REG_PARM_STACK_SPACE |
3764 |
-@@ -3956,6 +3957,8 @@ emit_library_call_value_1 (int retval, rtx orgfun, rtx value, |
3765 |
- |
3766 |
- /* Push the args that need to be pushed. */ |
3767 |
- |
3768 |
-+ have_push_fusage = false; |
3769 |
-+ |
3770 |
- /* ARGNUM indexes the ARGVEC array in the order in which the arguments |
3771 |
- are to be pushed. */ |
3772 |
- for (count = 0; count < nargs; count++, argnum += inc) |
3773 |
-@@ -4046,14 +4049,19 @@ emit_library_call_value_1 (int retval, rtx orgfun, rtx value, |
3774 |
- if (argblock) |
3775 |
- use = plus_constant (Pmode, argblock, |
3776 |
- argvec[argnum].locate.offset.constant); |
3777 |
-+ else if (have_push_fusage) |
3778 |
-+ continue; |
3779 |
- else |
3780 |
-- /* When arguments are pushed, trying to tell alias.c where |
3781 |
-- exactly this argument is won't work, because the |
3782 |
-- auto-increment causes confusion. So we merely indicate |
3783 |
-- that we access something with a known mode somewhere on |
3784 |
-- the stack. */ |
3785 |
-- use = gen_rtx_PLUS (Pmode, virtual_outgoing_args_rtx, |
3786 |
-- gen_rtx_SCRATCH (Pmode)); |
3787 |
-+ { |
3788 |
-+ /* When arguments are pushed, trying to tell alias.c where |
3789 |
-+ exactly this argument is won't work, because the |
3790 |
-+ auto-increment causes confusion. So we merely indicate |
3791 |
-+ that we access something with a known mode somewhere on |
3792 |
-+ the stack. */ |
3793 |
-+ use = gen_rtx_PLUS (Pmode, stack_pointer_rtx, |
3794 |
-+ gen_rtx_SCRATCH (Pmode)); |
3795 |
-+ have_push_fusage = true; |
3796 |
-+ } |
3797 |
- use = gen_rtx_MEM (argvec[argnum].mode, use); |
3798 |
- use = gen_rtx_USE (VOIDmode, use); |
3799 |
- call_fusage = gen_rtx_EXPR_LIST (VOIDmode, use, call_fusage); |
3800 |
-diff --git a/gcc/testsuite/gcc.c-torture/compile/pr52773.c b/gcc/testsuite/gcc.c-torture/compile/pr52773.c |
3801 |
-new file mode 100644 |
3802 |
-index 0000000..8daa5ee |
3803 |
---- /dev/null |
3804 |
-+++ b/gcc/testsuite/gcc.c-torture/compile/pr52773.c |
3805 |
-@@ -0,0 +1,16 @@ |
3806 |
-+/* pr52773.c */ |
3807 |
-+ |
3808 |
-+struct s { |
3809 |
-+ short x; |
3810 |
-+ short _pad[2]; |
3811 |
-+}; |
3812 |
-+ |
3813 |
-+static short mat_a_x; |
3814 |
-+ |
3815 |
-+void transform(const struct s *src, struct s *dst, int n) |
3816 |
-+{ |
3817 |
-+ int i; |
3818 |
-+ |
3819 |
-+ for (i = 0; i < n; ++i) |
3820 |
-+ dst[i].x = (src[i].x * mat_a_x) >> 6; |
3821 |
-+} |
3822 |
|
3823 |
diff --git a/sys-devel/gcc/files/gcc-4.2.3-mint2.patch b/sys-devel/gcc/files/gcc-4.2.3-mint2.patch |
3824 |
deleted file mode 100644 |
3825 |
index 79bd149593..0000000000 |
3826 |
--- a/sys-devel/gcc/files/gcc-4.2.3-mint2.patch |
3827 |
+++ /dev/null |
3828 |
@@ -1,571 +0,0 @@ |
3829 |
-Common subdirectories: gcc-4.2.3/libiberty/config and gcc-4.2.3.mint/libiberty/config |
3830 |
-diff -u gcc-4.2.3/libiberty/configure gcc-4.2.3.mint/libiberty/configure |
3831 |
---- gcc-4.2.3/libiberty/configure Thu Apr 3 11:41:46 2008 |
3832 |
-+++ gcc-4.2.3.mint/libiberty/configure Thu Apr 3 14:02:32 2008 |
3833 |
-@@ -3618,6 +3618,7 @@ |
3834 |
- frag= |
3835 |
- case "${host}" in |
3836 |
- *-*-cygwin*) ;; |
3837 |
-+ *-*-mint*) ;; |
3838 |
- *-*-interix*) ;; |
3839 |
- alpha*-*-linux*) frag=mh-elfalphapic ;; |
3840 |
- arm*-*-*) frag=mh-armpic ;; |
3841 |
-diff -u gcc-4.2.3/libiberty/configure.ac gcc-4.2.3.mint/libiberty/configure.ac |
3842 |
---- gcc-4.2.3/libiberty/configure.ac Thu Apr 3 11:41:46 2008 |
3843 |
-+++ gcc-4.2.3.mint/libiberty/configure.ac Thu Apr 3 14:02:48 2008 |
3844 |
-@@ -201,6 +201,7 @@ |
3845 |
- frag= |
3846 |
- case "${host}" in |
3847 |
- *-*-cygwin*) ;; |
3848 |
-+ *-*-mint*) ;; |
3849 |
- *-*-interix*) ;; |
3850 |
- alpha*-*-linux*) frag=mh-elfalphapic ;; |
3851 |
- arm*-*-*) frag=mh-armpic ;; |
3852 |
-diff -aurN gcc-4.2.3/gcc/Makefile.in.old gcc-4.2.3.mint/gcc/Makefile.in |
3853 |
---- gcc-4.2.3/gcc/Makefile.in.old 2008-04-13 22:11:39.838023141 +0100 |
3854 |
-+++ gcc-4.2.3.mint/gcc/Makefile.in 2008-04-13 22:11:35.227023113 +0100 |
3855 |
-@@ -1400,6 +1400,7 @@ |
3856 |
- cc1$(exeext): $(C_OBJS) cc1-checksum.o $(BACKEND) $(LIBDEPS) |
3857 |
- $(CC) $(ALL_CFLAGS) $(LDFLAGS) -o $@ $(C_OBJS) cc1-checksum.o \ |
3858 |
- $(BACKEND) $(LIBS) |
3859 |
-+ stack -S 2 $@ |
3860 |
- |
3861 |
- # Build the version of limits.h that we will install. |
3862 |
- xlimits.h: glimits.h limitx.h limity.h |
3863 |
-diff -aurN gcc-4.2.3/libtool.m4 gcc-4.2.3.mint/libtool.m4 |
3864 |
---- gcc-4.2.3/libtool.m4 Tue Apr 8 14:25:06 2008 |
3865 |
-+++ gcc-4.2.3.mint/libtool.m4 Tue Apr 8 14:26:46 2008 |
3866 |
-@@ -317,6 +317,12 @@ |
3867 |
- lt_cv_sys_max_cmd_len=8192; |
3868 |
- ;; |
3869 |
- |
3870 |
-+ mint*) |
3871 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3872 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3873 |
-+ lt_cv_sys_max_cmd_len=8192; |
3874 |
-+ ;; |
3875 |
-+ |
3876 |
- netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) |
3877 |
- # This has been around since 386BSD, at least. Likely further. |
3878 |
- if test -x /sbin/sysctl; then |
3879 |
-diff -ur gcc-4.2.3/boehm-gc/configure gcc-4.2.3.mint/boehm-gc/configure |
3880 |
---- gcc-4.2.3/boehm-gc/configure 2008-04-16 00:27:25.000000000 +0100 |
3881 |
-+++ gcc-4.2.3.mint/boehm-gc/configure 2008-04-16 09:33:30.000000000 +0100 |
3882 |
-@@ -4415,6 +4415,12 @@ |
3883 |
- lt_cv_sys_max_cmd_len=8192; |
3884 |
- ;; |
3885 |
- |
3886 |
-+ mint*) |
3887 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3888 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3889 |
-+ lt_cv_sys_max_cmd_len=8192; |
3890 |
-+ ;; |
3891 |
-+ |
3892 |
- amigaos*) |
3893 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3894 |
- # So we just punt and use a minimum line length of 8192. |
3895 |
-diff -ur gcc-4.2.3/libffi/configure gcc-4.2.3.mint/libffi/configure |
3896 |
---- gcc-4.2.3/libffi/configure 2008-04-16 00:27:44.000000000 +0100 |
3897 |
-+++ gcc-4.2.3.mint/libffi/configure 2008-04-16 09:34:32.000000000 +0100 |
3898 |
-@@ -3552,6 +3552,12 @@ |
3899 |
- lt_cv_sys_max_cmd_len=8192; |
3900 |
- ;; |
3901 |
- |
3902 |
-+ mint*) |
3903 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3904 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3905 |
-+ lt_cv_sys_max_cmd_len=8192; |
3906 |
-+ ;; |
3907 |
-+ |
3908 |
- amigaos*) |
3909 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3910 |
- # So we just punt and use a minimum line length of 8192. |
3911 |
-diff -ur gcc-4.2.3/libgfortran/configure gcc-4.2.3.mint/libgfortran/configure |
3912 |
---- gcc-4.2.3/libgfortran/configure 2008-04-16 00:35:02.000000000 +0100 |
3913 |
-+++ gcc-4.2.3.mint/libgfortran/configure 2008-04-16 09:35:44.000000000 +0100 |
3914 |
-@@ -3813,6 +3813,12 @@ |
3915 |
- lt_cv_sys_max_cmd_len=8192; |
3916 |
- ;; |
3917 |
- |
3918 |
-+ mint*) |
3919 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3920 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3921 |
-+ lt_cv_sys_max_cmd_len=8192; |
3922 |
-+ ;; |
3923 |
-+ |
3924 |
- amigaos*) |
3925 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3926 |
- # So we just punt and use a minimum line length of 8192. |
3927 |
-diff -ur gcc-4.2.3/libgomp/configure gcc-4.2.3.mint/libgomp/configure |
3928 |
---- gcc-4.2.3/libgomp/configure 2008-04-16 00:27:54.000000000 +0100 |
3929 |
-+++ gcc-4.2.3.mint/libgomp/configure 2008-04-16 09:35:20.000000000 +0100 |
3930 |
-@@ -3985,6 +3985,12 @@ |
3931 |
- lt_cv_sys_max_cmd_len=8192; |
3932 |
- ;; |
3933 |
- |
3934 |
-+ mint*) |
3935 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3936 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3937 |
-+ lt_cv_sys_max_cmd_len=8192; |
3938 |
-+ ;; |
3939 |
-+ |
3940 |
- amigaos*) |
3941 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3942 |
- # So we just punt and use a minimum line length of 8192. |
3943 |
-diff -ur gcc-4.2.3/libjava/classpath/configure gcc-4.2.3.mint/libjava/classpath/configure |
3944 |
---- gcc-4.2.3/libjava/classpath/configure 2008-04-16 00:25:19.000000000 +0100 |
3945 |
-+++ gcc-4.2.3.mint/libjava/classpath/configure 2008-04-16 09:36:06.000000000 +0100 |
3946 |
-@@ -5398,6 +5398,12 @@ |
3947 |
- lt_cv_sys_max_cmd_len=8192; |
3948 |
- ;; |
3949 |
- |
3950 |
-+ mint*) |
3951 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3952 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3953 |
-+ lt_cv_sys_max_cmd_len=8192; |
3954 |
-+ ;; |
3955 |
-+ |
3956 |
- amigaos*) |
3957 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3958 |
- # So we just punt and use a minimum line length of 8192. |
3959 |
-diff -ur gcc-4.2.3/libjava/configure gcc-4.2.3.mint/libjava/configure |
3960 |
---- gcc-4.2.3/libjava/configure 2008-04-16 00:35:08.000000000 +0100 |
3961 |
-+++ gcc-4.2.3.mint/libjava/configure 2008-04-16 09:36:32.000000000 +0100 |
3962 |
-@@ -5535,6 +5535,12 @@ |
3963 |
- lt_cv_sys_max_cmd_len=8192; |
3964 |
- ;; |
3965 |
- |
3966 |
-+ mint*) |
3967 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3968 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3969 |
-+ lt_cv_sys_max_cmd_len=8192; |
3970 |
-+ ;; |
3971 |
-+ |
3972 |
- amigaos*) |
3973 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3974 |
- # So we just punt and use a minimum line length of 8192. |
3975 |
-diff -ur gcc-4.2.3/libjava/libltdl/configure gcc-4.2.3.mint/libjava/libltdl/configure |
3976 |
---- gcc-4.2.3/libjava/libltdl/configure 2008-04-16 00:33:55.000000000 +0100 |
3977 |
-+++ gcc-4.2.3.mint/libjava/libltdl/configure 2008-04-16 09:37:00.000000000 +0100 |
3978 |
-@@ -5941,6 +5941,12 @@ |
3979 |
- lt_cv_sys_max_cmd_len=8192; |
3980 |
- ;; |
3981 |
- |
3982 |
-+ mint*) |
3983 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
3984 |
-+ # healthy for this platform. Let's restrict it to 8192. |
3985 |
-+ lt_cv_sys_max_cmd_len=8192; |
3986 |
-+ ;; |
3987 |
-+ |
3988 |
- amigaos*) |
3989 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
3990 |
- # So we just punt and use a minimum line length of 8192. |
3991 |
-diff -ur gcc-4.2.3/libmudflap/configure gcc-4.2.3.mint/libmudflap/configure |
3992 |
---- gcc-4.2.3/libmudflap/configure 2008-04-16 00:35:10.000000000 +0100 |
3993 |
-+++ gcc-4.2.3.mint/libmudflap/configure 2008-04-16 09:34:13.000000000 +0100 |
3994 |
-@@ -5484,6 +5484,12 @@ |
3995 |
- lt_cv_sys_max_cmd_len=8192; |
3996 |
- ;; |
3997 |
- |
3998 |
-+ mint*) |
3999 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
4000 |
-+ # healthy for this platform. Let's restrict it to 8192. |
4001 |
-+ lt_cv_sys_max_cmd_len=8192; |
4002 |
-+ ;; |
4003 |
-+ |
4004 |
- amigaos*) |
4005 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
4006 |
- # So we just punt and use a minimum line length of 8192. |
4007 |
-diff -ur gcc-4.2.3/libobjc/configure gcc-4.2.3.mint/libobjc/configure |
4008 |
---- gcc-4.2.3/libobjc/configure 2008-04-16 00:28:07.000000000 +0100 |
4009 |
-+++ gcc-4.2.3.mint/libobjc/configure 2008-04-16 09:34:46.000000000 +0100 |
4010 |
-@@ -3406,6 +3406,12 @@ |
4011 |
- lt_cv_sys_max_cmd_len=8192; |
4012 |
- ;; |
4013 |
- |
4014 |
-+ mint*) |
4015 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
4016 |
-+ # healthy for this platform. Let's restrict it to 8192. |
4017 |
-+ lt_cv_sys_max_cmd_len=8192; |
4018 |
-+ ;; |
4019 |
-+ |
4020 |
- amigaos*) |
4021 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
4022 |
- # So we just punt and use a minimum line length of 8192. |
4023 |
-diff -ur gcc-4.2.3/libssp/configure gcc-4.2.3.mint/libssp/configure |
4024 |
---- gcc-4.2.3/libssp/configure 2008-04-16 00:28:07.000000000 +0100 |
4025 |
-+++ gcc-4.2.3.mint/libssp/configure 2008-04-16 09:33:49.000000000 +0100 |
4026 |
-@@ -4571,6 +4571,12 @@ |
4027 |
- lt_cv_sys_max_cmd_len=8192; |
4028 |
- ;; |
4029 |
- |
4030 |
-+ mint*) |
4031 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
4032 |
-+ # healthy for this platform. Let's restrict it to 8192. |
4033 |
-+ lt_cv_sys_max_cmd_len=8192; |
4034 |
-+ ;; |
4035 |
-+ |
4036 |
- amigaos*) |
4037 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
4038 |
- # So we just punt and use a minimum line length of 8192. |
4039 |
-diff -ur gcc-4.2.3/libstdc++-v3/configure gcc-4.2.3.mint/libstdc++-v3/configure |
4040 |
---- gcc-4.2.3/libstdc++-v3/configure 2008-04-16 00:35:28.000000000 +0100 |
4041 |
-+++ gcc-4.2.3.mint/libstdc++-v3/configure 2008-04-16 09:33:10.000000000 +0100 |
4042 |
-@@ -4379,6 +4379,12 @@ |
4043 |
- lt_cv_sys_max_cmd_len=8192; |
4044 |
- ;; |
4045 |
- |
4046 |
-+ mint*) |
4047 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
4048 |
-+ # healthy for this platform. Let's restrict it to 8192. |
4049 |
-+ lt_cv_sys_max_cmd_len=8192; |
4050 |
-+ ;; |
4051 |
-+ |
4052 |
- amigaos*) |
4053 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
4054 |
- # So we just punt and use a minimum line length of 8192. |
4055 |
-diff -ur gcc-4.2.3/zlib/configure gcc-4.2.3.mint/zlib/configure |
4056 |
---- gcc-4.2.3/zlib/configure 2008-04-16 00:28:38.000000000 +0100 |
4057 |
-+++ gcc-4.2.3.mint/zlib/configure 2008-04-16 09:35:02.000000000 +0100 |
4058 |
-@@ -3521,6 +3521,12 @@ |
4059 |
- lt_cv_sys_max_cmd_len=8192; |
4060 |
- ;; |
4061 |
- |
4062 |
-+ mint*) |
4063 |
-+ # On MiNT this test can take minutes to run, and I'm not sure it's |
4064 |
-+ # healthy for this platform. Let's restrict it to 8192. |
4065 |
-+ lt_cv_sys_max_cmd_len=8192; |
4066 |
-+ ;; |
4067 |
-+ |
4068 |
- amigaos*) |
4069 |
- # On AmigaOS with pdksh, this test takes hours, literally. |
4070 |
- # So we just punt and use a minimum line length of 8192. |
4071 |
---- gcc-4.2.3/libstdc++-v3/libsupc++/guard.cc.old 2008-04-21 14:01:06.429023196 +0100 |
4072 |
-+++ gcc-4.2.3/libstdc++-v3/libsupc++/guard.cc 2008-04-21 14:01:25.230287338 +0100 |
4073 |
-@@ -30,6 +30,7 @@ |
4074 |
- // Thread support written by Jason Merrill, Red Hat Inc. <jason@××××××.com> |
4075 |
- |
4076 |
- #include <bits/c++config.h> |
4077 |
-+#include <cstdlib> |
4078 |
- #include <cxxabi.h> |
4079 |
- #include <exception> |
4080 |
- #include <new> |
4081 |
---- gcc-4.2.3/libstdc++-v3/src/codecvt.cc.old 2008-04-21 14:32:37.116117842 +0100 |
4082 |
-+++ gcc-4.2.3/libstdc++-v3/src/codecvt.cc 2008-04-21 14:32:47.505045768 +0100 |
4083 |
-@@ -27,6 +27,7 @@ |
4084 |
- |
4085 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4086 |
- |
4087 |
-+#include <cstdlib> |
4088 |
- #include <locale> |
4089 |
- |
4090 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4091 |
---- gcc-4.2.3/libstdc++-v3/src/complex_io.cc.old 2008-04-21 14:36:27.261023151 +0100 |
4092 |
-+++ gcc-4.2.3/libstdc++-v3/src/complex_io.cc 2008-04-21 14:36:36.534232802 +0100 |
4093 |
-@@ -27,6 +27,7 @@ |
4094 |
- // invalidate any other reasons why the executable file might be covered by |
4095 |
- // the GNU General Public License. |
4096 |
- |
4097 |
-+#include <cstdlib> |
4098 |
- #include <complex> |
4099 |
- |
4100 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4101 |
---- gcc-4.2.3/libstdc++-v3/src/ctype.cc.old 2008-04-21 14:40:06.994312017 +0100 |
4102 |
-+++ gcc-4.2.3/libstdc++-v3/src/ctype.cc 2008-04-21 14:40:18.218220665 +0100 |
4103 |
-@@ -26,6 +26,7 @@ |
4104 |
- // invalidate any other reasons why the executable file might be covered by |
4105 |
- // the GNU General Public License. |
4106 |
- |
4107 |
-+#include <cstdlib> |
4108 |
- #include <locale> |
4109 |
- |
4110 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4111 |
---- gcc-4.2.3/libstdc++-v3/src/globals_io.cc.old 2008-04-21 14:47:42.230023258 +0100 |
4112 |
-+++ gcc-4.2.3/libstdc++-v3/src/globals_io.cc 2008-04-21 14:47:52.749297097 +0100 |
4113 |
-@@ -27,6 +27,7 @@ |
4114 |
- // the GNU General Public License. |
4115 |
- |
4116 |
- #include "bits/c++config.h" |
4117 |
-+#include <cstdlib> |
4118 |
- #include <fstream> |
4119 |
- #include <istream> |
4120 |
- #include <ostream> |
4121 |
---- gcc-4.2.3/libstdc++-v3/src/ios.cc.old 2008-04-21 14:51:32.364023391 +0100 |
4122 |
-+++ gcc-4.2.3/libstdc++-v3/src/ios.cc 2008-04-21 14:51:39.371196232 +0100 |
4123 |
-@@ -32,6 +32,7 @@ |
4124 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
4125 |
- // |
4126 |
- |
4127 |
-+#include <cstdlib> |
4128 |
- #include <ios> |
4129 |
- #include <limits> |
4130 |
- |
4131 |
---- gcc-4.2.3/libstdc++-v3/src/ios_failure.cc.old 2008-04-21 14:53:10.759023042 +0100 |
4132 |
-+++ gcc-4.2.3/libstdc++-v3/src/ios_failure.cc 2008-04-21 14:53:40.197127646 +0100 |
4133 |
-@@ -32,6 +32,7 @@ |
4134 |
- // ISO C++ 14882: 27.4.2.1.1 Class ios_base::failure |
4135 |
- // |
4136 |
- |
4137 |
-+#include <cstdlib> |
4138 |
- #include <ios> |
4139 |
- |
4140 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4141 |
---- gcc-4.2.3/libstdc++-v3/src/ios_init.cc.old 2008-04-21 14:55:53.181023355 +0100 |
4142 |
-+++ gcc-4.2.3/libstdc++-v3/src/ios_init.cc 2008-04-21 14:56:01.407485842 +0100 |
4143 |
-@@ -32,6 +32,7 @@ |
4144 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
4145 |
- // |
4146 |
- |
4147 |
-+#include <cstdlib> |
4148 |
- #include <ios> |
4149 |
- #include <ostream> |
4150 |
- #include <istream> |
4151 |
---- gcc-4.2.3/libstdc++-v3/src/ios_locale.cc.old 2008-04-21 15:04:38.355183857 +0100 |
4152 |
-+++ gcc-4.2.3/libstdc++-v3/src/ios_locale.cc 2008-04-21 15:04:47.456159205 +0100 |
4153 |
-@@ -32,6 +32,7 @@ |
4154 |
- // ISO C++ 14882: 27.4 Iostreams base classes |
4155 |
- // |
4156 |
- |
4157 |
-+#include <cstdlib> |
4158 |
- #include <ios> |
4159 |
- #include <locale> |
4160 |
- |
4161 |
---- gcc-4.2.3/libstdc++-v3/src/locale_facets.cc.old 2008-04-21 15:10:19.610023164 +0100 |
4162 |
-+++ gcc-4.2.3/libstdc++-v3/src/locale_facets.cc 2008-04-21 15:10:26.952034403 +0100 |
4163 |
-@@ -26,6 +26,7 @@ |
4164 |
- // invalidate any other reasons why the executable file might be covered by |
4165 |
- // the GNU General Public License. |
4166 |
- |
4167 |
-+#include <cstdlib> |
4168 |
- #include <locale> |
4169 |
- |
4170 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4171 |
---- gcc-4.2.3/libstdc++-v3/src/localename.cc.old 2008-04-21 15:12:53.230036379 +0100 |
4172 |
-+++ gcc-4.2.3/libstdc++-v3/src/localename.cc 2008-04-21 15:13:01.189334391 +0100 |
4173 |
-@@ -28,6 +28,7 @@ |
4174 |
- |
4175 |
- #include <clocale> |
4176 |
- #include <cstring> |
4177 |
-+#include <cstdlib> |
4178 |
- #include <locale> |
4179 |
- |
4180 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4181 |
---- gcc-4.2.3/libstdc++-v3/src/strstream.cc.old 2008-04-21 15:17:36.006071207 +0100 |
4182 |
-+++ gcc-4.2.3/libstdc++-v3/src/strstream.cc 2008-04-21 15:17:43.447641937 +0100 |
4183 |
-@@ -46,6 +46,7 @@ |
4184 |
- // MAY BE REMOVED in a future standard revision. You should use the |
4185 |
- // header <sstream> instead. |
4186 |
- |
4187 |
-+#include <cstdlib> |
4188 |
- #include <strstream> |
4189 |
- #include <algorithm> |
4190 |
- #include <new> |
4191 |
---- gcc-4.2.3/libstdc++-v3/src/fstream-inst.cc.old 2008-04-21 15:25:14.168032671 +0100 |
4192 |
-+++ gcc-4.2.3/libstdc++-v3/src/fstream-inst.cc 2008-04-21 15:25:24.605060960 +0100 |
4193 |
-@@ -32,6 +32,7 @@ |
4194 |
- // ISO C++ 14882: |
4195 |
- // |
4196 |
- |
4197 |
-+#include <cstdlib> |
4198 |
- #include <fstream> |
4199 |
- |
4200 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4201 |
---- gcc-4.2.3/libstdc++-v3/src/ios-inst.cc.old 2008-04-21 15:40:43.642023146 +0100 |
4202 |
-+++ gcc-4.2.3/libstdc++-v3/src/ios-inst.cc 2008-04-21 15:40:51.723051414 +0100 |
4203 |
-@@ -32,6 +32,7 @@ |
4204 |
- // ISO C++ 14882: |
4205 |
- // |
4206 |
- |
4207 |
-+#include <cstdlib> |
4208 |
- #include <ios> |
4209 |
- |
4210 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4211 |
---- gcc-4.2.3/libstdc++-v3/src/iostream-inst.cc.old 2008-04-21 15:55:15.625023267 +0100 |
4212 |
-+++ gcc-4.2.3/libstdc++-v3/src/iostream-inst.cc 2008-04-21 15:55:23.629058393 +0100 |
4213 |
-@@ -32,6 +32,7 @@ |
4214 |
- // ISO C++ 14882: |
4215 |
- // |
4216 |
- |
4217 |
-+#include <cstdlib> |
4218 |
- #include <iomanip> |
4219 |
- |
4220 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4221 |
---- gcc-4.2.3/libstdc++-v3/src/istream-inst.cc.old 2008-04-21 15:59:50.862024439 +0100 |
4222 |
-+++ gcc-4.2.3/libstdc++-v3/src/istream-inst.cc 2008-04-21 15:59:59.603028397 +0100 |
4223 |
-@@ -32,6 +32,7 @@ |
4224 |
- // ISO C++ 14882: |
4225 |
- // |
4226 |
- |
4227 |
-+#include <cstdlib> |
4228 |
- #include <istream> |
4229 |
- #include <iomanip> |
4230 |
- |
4231 |
---- gcc-4.2.3/libstdc++-v3/src/istream.cc.old 2008-04-21 16:03:55.949023206 +0100 |
4232 |
-+++ gcc-4.2.3/libstdc++-v3/src/istream.cc 2008-04-21 16:04:03.746026447 +0100 |
4233 |
-@@ -31,6 +31,7 @@ |
4234 |
- // ISO C++ 14882: 27.6.1 Input streams |
4235 |
- // |
4236 |
- |
4237 |
-+#include <cstdlib> |
4238 |
- #include <istream> |
4239 |
- |
4240 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4241 |
---- gcc-4.2.3/libstdc++-v3/src/locale-inst.cc.old 2008-04-21 16:07:06.705023144 +0100 |
4242 |
-+++ gcc-4.2.3/libstdc++-v3/src/locale-inst.cc 2008-04-21 16:07:14.922226343 +0100 |
4243 |
-@@ -32,6 +32,7 @@ |
4244 |
- // ISO C++ 14882: 22.1 Locales |
4245 |
- // |
4246 |
- |
4247 |
-+#include <cstdlib> |
4248 |
- #include <locale> |
4249 |
- |
4250 |
- // Instantiation configuration. |
4251 |
---- gcc-4.2.3/libstdc++-v3/src/ostream-inst.cc.old 2008-04-21 16:19:19.443023243 +0100 |
4252 |
-+++ gcc-4.2.3/libstdc++-v3/src/ostream-inst.cc 2008-04-21 16:19:26.505037357 +0100 |
4253 |
-@@ -32,6 +32,7 @@ |
4254 |
- // ISO C++ 14882: |
4255 |
- // |
4256 |
- |
4257 |
-+#include <cstdlib> |
4258 |
- #include <ostream> |
4259 |
- #include <iomanip> |
4260 |
- |
4261 |
---- gcc-4.2.3/libstdc++-v3/src/sstream-inst.cc.old 2008-04-21 16:22:53.830023256 +0100 |
4262 |
-+++ gcc-4.2.3/libstdc++-v3/src/sstream-inst.cc 2008-04-21 16:23:01.792239858 +0100 |
4263 |
-@@ -32,6 +32,7 @@ |
4264 |
- // ISO C++ 14882: |
4265 |
- // |
4266 |
- |
4267 |
-+#include <cstdlib> |
4268 |
- #include <sstream> |
4269 |
- |
4270 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4271 |
---- gcc-4.2.3/libstdc++-v3/src/streambuf-inst.cc.old 2008-04-21 16:27:18.648023102 +0100 |
4272 |
-+++ gcc-4.2.3/libstdc++-v3/src/streambuf-inst.cc 2008-04-21 16:27:28.394022870 +0100 |
4273 |
-@@ -32,6 +32,7 @@ |
4274 |
- // ISO C++ 14882: |
4275 |
- // |
4276 |
- |
4277 |
-+#include <cstdlib> |
4278 |
- #include <ios> |
4279 |
- #include <streambuf> |
4280 |
- |
4281 |
---- gcc-4.2.3/libstdc++-v3/src/streambuf.cc.old 2008-04-21 16:32:11.191078470 +0100 |
4282 |
-+++ gcc-4.2.3/libstdc++-v3/src/streambuf.cc 2008-04-21 16:32:20.434047649 +0100 |
4283 |
-@@ -31,6 +31,7 @@ |
4284 |
- // ISO C++ 14882: 27.5 Stream buffers |
4285 |
- // |
4286 |
- |
4287 |
-+#include <cstdlib> |
4288 |
- #include <streambuf> |
4289 |
- |
4290 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4291 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/codecvt_members.cc.old 2008-04-21 16:40:52.235023128 +0100 |
4292 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/codecvt_members.cc 2008-04-21 16:41:01.248427209 +0100 |
4293 |
-@@ -33,6 +33,7 @@ |
4294 |
- |
4295 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4296 |
- |
4297 |
-+#include <cstdlib> |
4298 |
- #include <locale> |
4299 |
- |
4300 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4301 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/collate_members.cc.old 2008-04-21 16:42:19.265348380 +0100 |
4302 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/collate_members.cc 2008-04-21 16:42:25.552040967 +0100 |
4303 |
-@@ -33,6 +33,7 @@ |
4304 |
- |
4305 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4306 |
- |
4307 |
-+#include <cstdlib> |
4308 |
- #include <locale> |
4309 |
- |
4310 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4311 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/ctype_members.cc.old 2008-04-21 16:49:06.726023078 +0100 |
4312 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/ctype_members.cc 2008-04-21 16:49:18.212045558 +0100 |
4313 |
-@@ -33,6 +33,7 @@ |
4314 |
- |
4315 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4316 |
- |
4317 |
-+#include <cstdlib> |
4318 |
- #include <locale> |
4319 |
- |
4320 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4321 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/messages_members.cc.old 2008-04-21 16:51:46.237348712 +0100 |
4322 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/messages_members.cc 2008-04-21 16:51:55.015221637 +0100 |
4323 |
-@@ -33,6 +33,7 @@ |
4324 |
- |
4325 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4326 |
- |
4327 |
-+#include <cstdlib> |
4328 |
- #include <locale> |
4329 |
- |
4330 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4331 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/monetary_members.cc.old 2008-04-21 16:53:14.893023165 +0100 |
4332 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/monetary_members.cc 2008-04-21 16:53:22.350043513 +0100 |
4333 |
-@@ -33,6 +33,7 @@ |
4334 |
- |
4335 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4336 |
- |
4337 |
-+#include <cstdlib> |
4338 |
- #include <locale> |
4339 |
- |
4340 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4341 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/numeric_members.cc.old 2008-04-21 16:54:11.077212480 +0100 |
4342 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/numeric_members.cc 2008-04-21 16:53:32.618266080 +0100 |
4343 |
-@@ -33,6 +33,7 @@ |
4344 |
- |
4345 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4346 |
- |
4347 |
-+#include <cstdlib> |
4348 |
- #include <locale> |
4349 |
- |
4350 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4351 |
---- gcc-4.2.3/libstdc++-v3/config/locale/generic/time_members.cc.old 2008-04-21 16:54:00.835099080 +0100 |
4352 |
-+++ gcc-4.2.3/libstdc++-v3/config/locale/generic/time_members.cc 2008-04-21 16:53:41.260024731 +0100 |
4353 |
-@@ -34,6 +34,7 @@ |
4354 |
- |
4355 |
- // Written by Benjamin Kosnik <bkoz@××××××.com> |
4356 |
- |
4357 |
-+#include <cstdlib> |
4358 |
- #include <locale> |
4359 |
- |
4360 |
- _GLIBCXX_BEGIN_NAMESPACE(std) |
4361 |
---- gcc-4.2.3/libstdc++-v3/config/io/basic_file_stdio.cc.old 2008-04-21 17:00:09.629307442 +0100 |
4362 |
-+++ gcc-4.2.3/libstdc++-v3/config/io/basic_file_stdio.cc 2008-04-21 16:59:58.512314844 +0100 |
4363 |
-@@ -32,6 +32,7 @@ |
4364 |
- // ISO C++ 14882: 27.8 File-based streams |
4365 |
- // |
4366 |
- |
4367 |
-+#include <cstdlib> |
4368 |
- #include <bits/basic_file.h> |
4369 |
- #include <fcntl.h> |
4370 |
- #include <errno.h> |
4371 |
---- gcc-4.2.3/gcc/cp/g++spec.c.old 2008-06-05 11:12:02.252475943 +0100 |
4372 |
-+++ gcc-4.2.3/gcc/cp/g++spec.c 2008-06-05 11:12:49.557473133 +0100 |
4373 |
-@@ -312,6 +312,12 @@ |
4374 |
- if (arglist[j][0] != '-' || arglist[j][1] == 'l') |
4375 |
- added_libraries++; |
4376 |
- j++; |
4377 |
-+#ifdef __MINT__ |
4378 |
-+ arglist[j] = "-lpthread"; |
4379 |
-+ if (arglist[j][0] != '-' || arglist[j][1] == 'l') |
4380 |
-+ added_libraries++; |
4381 |
-+ j++; |
4382 |
-+#endif |
4383 |
- } |
4384 |
- if (saw_math) |
4385 |
- arglist[j++] = saw_math; |
4386 |
---- gcc-4.2.3/libstdc++-v3/include/c_std/std_cstdlib.h.old 2008-06-05 11:15:10.644432810 +0100 |
4387 |
-+++ gcc-4.2.3/libstdc++-v3/include/c_std/std_cstdlib.h 2008-06-05 11:15:43.703707876 +0100 |
4388 |
-@@ -97,7 +97,11 @@ |
4389 |
- #undef strtod |
4390 |
- #undef strtol |
4391 |
- #undef strtoul |
4392 |
-+#if _POSIX_THREAD_SYSCALL_SOFT && !defined(_PTHREAD_PRIVATE) |
4393 |
-+/* don't undefine system as we're using libpthread */ |
4394 |
-+#else |
4395 |
- #undef system |
4396 |
-+#endif |
4397 |
- #undef wcstombs |
4398 |
- #undef wctomb |
4399 |
- |
4400 |
|
4401 |
diff --git a/sys-devel/gcc/gcc-4.2.4-r2.ebuild b/sys-devel/gcc/gcc-4.2.4-r2.ebuild |
4402 |
index 30089080d7..ce5d7099fc 100644 |
4403 |
--- a/sys-devel/gcc/gcc-4.2.4-r2.ebuild |
4404 |
+++ b/sys-devel/gcc/gcc-4.2.4-r2.ebuild |
4405 |
@@ -12,9 +12,7 @@ inherit eutils toolchain flag-o-matic prefix |
4406 |
DESCRIPTION="The GNU Compiler Collection" |
4407 |
|
4408 |
LICENSE="GPL-3+ LGPL-2.1+ || ( GPL-3+ libgcc libstdc++ ) FDL-1.2+" |
4409 |
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4410 |
- |
4411 |
-SRC_URI+=" https://dev.gentoo.org/~grobian/distfiles/gcc-4.2.3-mint.patch" |
4412 |
+KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4413 |
|
4414 |
RDEPEND="" |
4415 |
DEPEND="${RDEPEND} |
4416 |
@@ -71,11 +69,6 @@ src_prepare() { |
4417 |
eprefixify "${S}"/gcc/gcc.c |
4418 |
fi |
4419 |
|
4420 |
- if [[ ${CHOST} == *-mint* ]] ; then |
4421 |
- epatch "${DISTDIR}"/gcc-4.2.3-mint.patch |
4422 |
- epatch "${FILESDIR}"/gcc-4.2.3-mint2.patch |
4423 |
- fi |
4424 |
- |
4425 |
# allow gcj compilation to succeed on platforms with libiconv |
4426 |
epatch "${FILESDIR}"/gcj-${PV}-iconvlink.patch |
4427 |
|
4428 |
|
4429 |
diff --git a/sys-devel/gcc/gcc-4.7.3-r1.ebuild b/sys-devel/gcc/gcc-4.7.3-r1.ebuild |
4430 |
index 5379d56552..8e96663a6f 100644 |
4431 |
--- a/sys-devel/gcc/gcc-4.7.3-r1.ebuild |
4432 |
+++ b/sys-devel/gcc/gcc-4.7.3-r1.ebuild |
4433 |
@@ -25,7 +25,7 @@ inherit eutils toolchain flag-o-matic |
4434 |
DESCRIPTION="The GNU Compiler Collection." |
4435 |
|
4436 |
LICENSE="GPL-3+ LGPL-3+ || ( GPL-3+ libgcc libstdc++ gcc-runtime-library-exception-3.1 ) FDL-1.3+" |
4437 |
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~x64-solaris ~x86-solaris" |
4438 |
+KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x64-solaris ~x86-solaris" |
4439 |
|
4440 |
RDEPEND="" |
4441 |
DEPEND="${RDEPEND} |
4442 |
@@ -80,18 +80,6 @@ src_prepare() { |
4443 |
# make it have correct install_names on Darwin |
4444 |
epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch |
4445 |
|
4446 |
- if [[ ${CHOST} == *-mint* ]] ; then |
4447 |
- epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch |
4448 |
- epatch "${FILESDIR}"/4.7.2/mint1.patch |
4449 |
- epatch "${FILESDIR}"/4.4.1/${PN}-4.4.1-mint3.patch |
4450 |
- epatch "${FILESDIR}"/4.7.2/mint2.patch |
4451 |
- epatch "${FILESDIR}"/4.7.2/mint3.patch |
4452 |
- epatch "${FILESDIR}"/4.7.2/pr52391.patch |
4453 |
- epatch "${FILESDIR}"/4.7.2/mint-unroll.patch |
4454 |
- epatch "${FILESDIR}"/4.7.2/pr52773.patch |
4455 |
- epatch "${FILESDIR}"/4.7.2/pr52714.patch |
4456 |
- fi |
4457 |
- |
4458 |
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env.patch |
4459 |
} |
4460 |
|
4461 |
@@ -101,9 +89,6 @@ src_configure() { |
4462 |
# bug #381179 |
4463 |
filter-flags "-mcpu=*" "-mtune=*" |
4464 |
;; |
4465 |
- *-mint*) |
4466 |
- EXTRA_ECONF="${EXTRA_ECONF} --enable-multilib" |
4467 |
- ;; |
4468 |
*-solaris*) |
4469 |
# todo: some magic for native vs. GNU linking? |
4470 |
EXTRA_ECONF="${EXTRA_ECONF} --with-gnu-ld --with-gnu-as" |
4471 |
|
4472 |
diff --git a/sys-devel/gcc/gcc-4.8.5-r1.ebuild b/sys-devel/gcc/gcc-4.8.5-r1.ebuild |
4473 |
index 36bc87b575..8693aa8277 100644 |
4474 |
--- a/sys-devel/gcc/gcc-4.8.5-r1.ebuild |
4475 |
+++ b/sys-devel/gcc/gcc-4.8.5-r1.ebuild |
4476 |
@@ -21,7 +21,7 @@ SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm" |
4477 |
|
4478 |
inherit eutils toolchain flag-o-matic |
4479 |
|
4480 |
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4481 |
+KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4482 |
|
4483 |
RDEPEND="" |
4484 |
DEPEND="${RDEPEND} |
4485 |
@@ -69,18 +69,6 @@ src_prepare() { |
4486 |
# make it have correct install_names on Darwin |
4487 |
epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch |
4488 |
|
4489 |
- if [[ ${CHOST} == *-mint* ]] ; then |
4490 |
- epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch |
4491 |
- epatch "${FILESDIR}"/4.7.2/mint1.patch |
4492 |
- epatch "${FILESDIR}"/4.4.1/${PN}-4.4.1-mint3.patch |
4493 |
- epatch "${FILESDIR}"/4.7.2/mint2.patch |
4494 |
- epatch "${FILESDIR}"/4.7.2/mint3.patch |
4495 |
- epatch "${FILESDIR}"/4.7.2/pr52391.patch |
4496 |
- epatch "${FILESDIR}"/4.7.2/mint-unroll.patch |
4497 |
- epatch "${FILESDIR}"/4.7.2/pr52773.patch |
4498 |
- epatch "${FILESDIR}"/4.7.2/pr52714.patch |
4499 |
- fi |
4500 |
- |
4501 |
#Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs. |
4502 |
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch |
4503 |
} |
4504 |
@@ -92,9 +80,6 @@ src_configure() { |
4505 |
# bug #381179 |
4506 |
filter-flags "-mcpu=*" "-mtune=*" |
4507 |
;; |
4508 |
- *-mint*) |
4509 |
- myconf+=( --enable-multilib ) |
4510 |
- ;; |
4511 |
*-solaris*) |
4512 |
# todo: some magic for native vs. GNU linking? |
4513 |
myconf+=( --with-gnu-ld --with-gnu-as ) |
4514 |
|
4515 |
diff --git a/sys-devel/gcc/gcc-4.9.4.ebuild b/sys-devel/gcc/gcc-4.9.4.ebuild |
4516 |
index a3dd30c472..c2252ffc24 100644 |
4517 |
--- a/sys-devel/gcc/gcc-4.9.4.ebuild |
4518 |
+++ b/sys-devel/gcc/gcc-4.9.4.ebuild |
4519 |
@@ -21,7 +21,7 @@ SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm" |
4520 |
|
4521 |
inherit eutils toolchain flag-o-matic |
4522 |
|
4523 |
-KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4524 |
+KEYWORDS="~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4525 |
|
4526 |
RDEPEND="" |
4527 |
DEPEND="${RDEPEND} |
4528 |
@@ -66,18 +66,6 @@ src_prepare() { |
4529 |
# make it have correct install_names on Darwin |
4530 |
epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch |
4531 |
|
4532 |
- if [[ ${CHOST} == *-mint* ]] ; then |
4533 |
- epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch |
4534 |
- epatch "${FILESDIR}"/4.7.2/mint1.patch |
4535 |
- epatch "${FILESDIR}"/4.4.1/${PN}-4.4.1-mint3.patch |
4536 |
- epatch "${FILESDIR}"/4.7.2/mint2.patch |
4537 |
- epatch "${FILESDIR}"/4.7.2/mint3.patch |
4538 |
- epatch "${FILESDIR}"/4.7.2/pr52391.patch |
4539 |
- epatch "${FILESDIR}"/4.7.2/mint-unroll.patch |
4540 |
- epatch "${FILESDIR}"/4.7.2/pr52773.patch |
4541 |
- epatch "${FILESDIR}"/4.7.2/pr52714.patch |
4542 |
- fi |
4543 |
- |
4544 |
#Use -r1 for newer piepatchet that use DRIVER_SELF_SPECS for the hardened specs. |
4545 |
[[ ${CHOST} == ${CTARGET} ]] && epatch "${FILESDIR}"/gcc-spec-env-r1.patch |
4546 |
} |
4547 |
@@ -89,9 +77,6 @@ src_configure() { |
4548 |
# bug #381179 |
4549 |
filter-flags "-mcpu=*" "-mtune=*" |
4550 |
;; |
4551 |
- *-mint*) |
4552 |
- myconf+=( --enable-multilib ) |
4553 |
- ;; |
4554 |
*-solaris*) |
4555 |
# todo: some magic for native vs. GNU linking? |
4556 |
myconf+=( --with-gnu-ld --with-gnu-as ) |
4557 |
|
4558 |
diff --git a/sys-devel/gcc/gcc-5.4.0-r4.ebuild b/sys-devel/gcc/gcc-5.4.0-r4.ebuild |
4559 |
index 22f5c2ae33..7a69006206 100644 |
4560 |
--- a/sys-devel/gcc/gcc-5.4.0-r4.ebuild |
4561 |
+++ b/sys-devel/gcc/gcc-5.4.0-r4.ebuild |
4562 |
@@ -22,7 +22,7 @@ SSP_UCLIBC_STABLE="x86 amd64 mips ppc ppc64 arm" |
4563 |
|
4564 |
inherit eutils toolchain flag-o-matic |
4565 |
|
4566 |
-KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4567 |
+KEYWORDS="~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
4568 |
|
4569 |
RDEPEND="" |
4570 |
DEPEND="${RDEPEND} |
4571 |
@@ -66,18 +66,6 @@ src_prepare() { |
4572 |
# make it have correct install_names on Darwin |
4573 |
epatch "${FILESDIR}"/4.3.3/darwin-libgcc_s-installname.patch |
4574 |
|
4575 |
- if [[ ${CHOST} == *-mint* ]] ; then |
4576 |
- epatch "${FILESDIR}"/4.3.2/${PN}-4.3.2-mint3.patch |
4577 |
- epatch "${FILESDIR}"/4.7.2/mint1.patch |
4578 |
- epatch "${FILESDIR}"/4.4.1/${PN}-4.4.1-mint3.patch |
4579 |
- epatch "${FILESDIR}"/4.7.2/mint2.patch |
4580 |
- epatch "${FILESDIR}"/4.7.2/mint3.patch |
4581 |
- epatch "${FILESDIR}"/4.7.2/pr52391.patch |
4582 |
- epatch "${FILESDIR}"/4.7.2/mint-unroll.patch |
4583 |
- epatch "${FILESDIR}"/4.7.2/pr52773.patch |
4584 |
- epatch "${FILESDIR}"/4.7.2/pr52714.patch |
4585 |
- fi |
4586 |
- |
4587 |
# Apply https://gcc.gnu.org/viewcvs/gcc?view=revision&revision=226138, |
4588 |
# upstream shipped since gcc-6.1.0. |
4589 |
find libstdc++-v3 -name Makefile.in -exec sed -i -e \ |
4590 |
@@ -91,9 +79,6 @@ src_configure() { |
4591 |
# bug #381179 |
4592 |
filter-flags "-mcpu=*" "-mtune=*" |
4593 |
;; |
4594 |
- *-mint*) |
4595 |
- myconf+=( --enable-multilib ) |
4596 |
- ;; |
4597 |
*-solaris*) |
4598 |
# todo: some magic for native vs. GNU linking? |
4599 |
myconf+=( --with-gnu-ld --with-gnu-as --enable-largefile ) |
4600 |
|
4601 |
diff --git a/sys-devel/gcc/metadata.xml b/sys-devel/gcc/metadata.xml |
4602 |
index 7b98f1a1c7..076f7eba42 100644 |
4603 |
--- a/sys-devel/gcc/metadata.xml |
4604 |
+++ b/sys-devel/gcc/metadata.xml |
4605 |
@@ -6,12 +6,14 @@ |
4606 |
<name>Gentoo Toolchain Project</name> |
4607 |
</maintainer> |
4608 |
<use> |
4609 |
+ <flag name="ada">Build the GCC ADA language frontend.</flag> |
4610 |
<flag name="awt">Useful only when building GCJ, this enables Abstract Window Toolkit |
4611 |
(AWT) peer support on top of GTK+</flag> |
4612 |
<flag name="cilk">Support the Cilk Plus language (C/C++ based languages for parallel programming)</flag> |
4613 |
<flag name="d">Enable support for the D programming language</flag> |
4614 |
<flag name="fixed-point">Enable fixed-point arithmetic support for MIPS targets |
4615 |
in gcc (Warning: significantly increases compile time!)</flag> |
4616 |
+ <flag name="gcj">Build the GCC GCJ language frontend.</flag> |
4617 |
<flag name="go">Build the GCC Go language frontend.</flag> |
4618 |
<flag name="graphite">Add support for the framework for loop |
4619 |
optimizations based on a polyhedral intermediate representation</flag> |
4620 |
@@ -19,9 +21,11 @@ |
4621 |
This will slow down the compiler a bit as it forces all of the toolchain to be shared libs.</flag> |
4622 |
<flag name="libssp">Build SSP support into a dedicated library rather than use the |
4623 |
code in the C library (DO NOT ENABLE THIS IF YOU DON'T KNOW WHAT IT DOES)</flag> |
4624 |
+ <flag name="lto">Enable support for Link Time Optimisation.</flag> |
4625 |
<flag name="mpx">Enable support for Intel Memory Protection Extensions (MPX)</flag> |
4626 |
<flag name="nopie">Disable PIE support (NOT FOR GENERAL USE)</flag> |
4627 |
<flag name="nossp">Disable SSP support (NOT FOR GENERAL USE)</flag> |
4628 |
+ <flag name="nptl">Use Native Posix Threads for Linux (NOT FOR GENERAL USE)</flag> |
4629 |
<flag name="objc">Build support for the Objective C code language</flag> |
4630 |
<flag name="objc++">Build support for the Objective C++ language</flag> |
4631 |
<flag name="objc-gc">Build support for the Objective C code language Garbage |