sdcard build fixes for paranoia mode
[AROS.git] / tools / crosstools / gcc-8.1.0-aros.diff
blob3cb7c841bad2c04428145995bd3298fd6276797f
1 diff -ruN gcc-8.1.0/configure gcc-8.1.0.aros/configure
2 --- gcc-8.1.0/configure 2018-05-02 09:19:58.000000000 +0100
3 +++ gcc-8.1.0.aros/configure 2018-06-24 23:30:25.240834987 +0100
4 @@ -3791,6 +3791,9 @@
5 powerpcle-*-solaris*)
6 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
7 ;;
8 + *-*-aros*)
9 + noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv gdb"
10 + ;;
11 powerpc-*-beos*)
12 noconfigdirs="$noconfigdirs gdb"
14 @@ -3926,6 +3929,8 @@
15 rs6000-*-aix*)
16 host_makefile_frag="config/mh-ppc-aix"
18 + *-*-aros*)
19 + ;;
20 esac
23 diff -ruN gcc-8.1.0/configure.ac gcc-8.1.0.aros/configure.ac
24 --- gcc-8.1.0/configure.ac 2018-02-13 13:01:33.000000000 +0000
25 +++ gcc-8.1.0.aros/configure.ac 2018-06-24 23:30:25.240834987 +0100
26 @@ -1122,6 +1122,9 @@
27 powerpcle-*-solaris*)
28 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
30 + *-*-aros*)
31 + noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv gdb"
32 + ;;
33 powerpc-*-beos*)
34 noconfigdirs="$noconfigdirs gdb"
36 @@ -1238,6 +1241,8 @@
37 rs6000-*-aix*)
38 host_makefile_frag="config/mh-ppc-aix"
40 + *-*-aros*)
41 + ;;
42 esac
45 diff -ruN gcc-8.1.0/fixincludes/configure gcc-8.1.0.aros/fixincludes/configure
46 --- gcc-8.1.0/fixincludes/configure 2018-04-18 10:46:58.000000000 +0100
47 +++ gcc-8.1.0.aros/fixincludes/configure 2018-06-24 23:30:25.240834987 +0100
48 @@ -4752,6 +4752,7 @@
50 else
51 case $host in
52 + *-*-aros* | \
53 i?86-*-msdosdjgpp* | \
54 i?86-*-mingw32* | \
55 x86_64-*-mingw32* | \
56 diff -ruN gcc-8.1.0/fixincludes/configure.ac gcc-8.1.0.aros/fixincludes/configure.ac
57 --- gcc-8.1.0/fixincludes/configure.ac 2017-01-17 09:38:48.000000000 +0000
58 +++ gcc-8.1.0.aros/fixincludes/configure.ac 2018-06-24 23:30:25.240834987 +0100
59 @@ -50,6 +50,7 @@
60 TARGET=oneprocess
61 fi],
62 [case $host in
63 + *-*-aros* | \
64 i?86-*-msdosdjgpp* | \
65 i?86-*-mingw32* | \
66 x86_64-*-mingw32* | \
67 diff -ruN gcc-8.1.0/gcc/config/aarch64/aros.h gcc-8.1.0.aros/gcc/config/aarch64/aros.h
68 --- gcc-8.1.0/gcc/config/aarch64/aros.h 1970-01-01 01:00:00.000000000 +0100
69 +++ gcc-8.1.0.aros/gcc/config/aarch64/aros.h 2018-06-24 23:30:25.240834987 +0100
70 @@ -0,0 +1,63 @@
71 +/* Configuration file for ARM AROS EABI targets.
72 + Copyright (C) 2004, 2005, 2006, 2007, 2010
73 + Free Software Foundation, Inc.
74 + Contributed by Pavel Fedin
75 + Based on linux-eabi.h and other AROS targets
77 + This file is part of GCC.
79 + GCC is free software; you can redistribute it and/or modify it
80 + under the terms of the GNU General Public License as published
81 + by the Free Software Foundation; either version 3, or (at your
82 + option) any later version.
84 + GCC is distributed in the hope that it will be useful, but WITHOUT
85 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
86 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
87 + License for more details.
89 + You should have received a copy of the GNU General Public License
90 + along with GCC; see the file COPYING3. If not see
91 + <http://www.gnu.org/licenses/>. */
93 +/* On EABI GNU/Linux, we want both the BPABI builtins and the
94 + GNU/Linux builtins. */
95 +#undef TARGET_OS_CPP_BUILTINS
96 +#define TARGET_OS_CPP_BUILTINS() \
97 + do \
98 + { \
99 + builtin_define_std ("AROS"); \
100 + builtin_define ("AMIGA"); \
101 + builtin_define ("_AMIGA"); \
102 + builtin_assert ("system=posix"); \
103 + if (flag_pic) \
104 + { \
105 + builtin_define ("__PIC__"); \
106 + builtin_define ("__pic__"); \
107 + } \
108 + } \
109 + while (false)
111 +/* TARGET_BIG_ENDIAN_DEFAULT is set in
112 + config.gcc for big endian configurations. */
113 +#undef TARGET_LINKER_EMULATION
114 +#if TARGET_BIG_ENDIAN_DEFAULT
115 +#define TARGET_LINKER_EMULATION "aarch64elfb_aros"
116 +#else
117 +#define TARGET_LINKER_EMULATION "aarch64elf_aros"
118 +#endif
120 +#undef SUBTARGET_CPP_SPEC
121 +#define SUBTARGET_CPP_SPEC "-D__ELF__ %{!nostdinc:%{!nostdc:%{!noposixc: -idirafter %R/include/aros/posixc} -idirafter %R/include/aros/stdc}}"
123 +#undef SUBTARGET_EXTRA_LINK_SPEC
124 +#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
126 +/* Provide a LINK_SPEC appropriate for AROS. */
127 +#undef LINK_SPEC
128 +#define LINK_SPEC "-m aarch64elf_aros -L %R/lib"
130 +/* Use own supplement to libgcc. */
131 +#undef LIBGCC_SPEC
132 +#define LIBGCC_SPEC "-lgcc"
134 diff -ruN gcc-8.1.0/gcc/config/aarch64/t-aros gcc-8.1.0.aros/gcc/config/aarch64/t-aros
135 --- gcc-8.1.0/gcc/config/aarch64/t-aros 1970-01-01 01:00:00.000000000 +0100
136 +++ gcc-8.1.0.aros/gcc/config/aarch64/t-aros 2018-06-24 23:30:25.240834987 +0100
137 @@ -0,0 +1,21 @@
138 +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
139 +# 2008, 2010 Free Software Foundation, Inc.
141 +# This file is part of GCC.
143 +# GCC is free software; you can redistribute it and/or modify
144 +# it under the terms of the GNU General Public License as published by
145 +# the Free Software Foundation; either version 3, or (at your option)
146 +# any later version.
148 +# GCC is distributed in the hope that it will be useful,
149 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
150 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
151 +# GNU General Public License for more details.
153 +# You should have received a copy of the GNU General Public License
154 +# along with GCC; see the file COPYING3. If not see
155 +# <http://www.gnu.org/licenses/>.
159 diff -ruN gcc-8.1.0/gcc/config/arm/aros.h gcc-8.1.0.aros/gcc/config/arm/aros.h
160 --- gcc-8.1.0/gcc/config/arm/aros.h 1970-01-01 01:00:00.000000000 +0100
161 +++ gcc-8.1.0.aros/gcc/config/arm/aros.h 2018-06-24 23:30:25.240834987 +0100
162 @@ -0,0 +1,82 @@
163 +/* Configuration file for ARM AROS EABI targets.
164 + Copyright (C) 2004, 2005, 2006, 2007, 2010
165 + Free Software Foundation, Inc.
166 + Contributed by Pavel Fedin
167 + Based on linux-eabi.h and other AROS targets
169 + This file is part of GCC.
171 + GCC is free software; you can redistribute it and/or modify it
172 + under the terms of the GNU General Public License as published
173 + by the Free Software Foundation; either version 3, or (at your
174 + option) any later version.
176 + GCC is distributed in the hope that it will be useful, but WITHOUT
177 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
178 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
179 + License for more details.
181 + You should have received a copy of the GNU General Public License
182 + along with GCC; see the file COPYING3. If not see
183 + <http://www.gnu.org/licenses/>. */
185 +/* On EABI GNU/Linux, we want both the BPABI builtins and the
186 + GNU/Linux builtins. */
187 +#undef TARGET_OS_CPP_BUILTINS
188 +#define TARGET_OS_CPP_BUILTINS() \
189 + do \
190 + { \
191 + TARGET_BPABI_CPP_BUILTINS(); \
192 + builtin_define_std ("AROS"); \
193 + builtin_define ("AMIGA"); \
194 + builtin_define ("_AMIGA"); \
195 + builtin_assert ("system=posix"); \
196 + if (flag_pic) \
197 + { \
198 + builtin_define ("__PIC__"); \
199 + builtin_define ("__pic__"); \
200 + } \
201 + } \
202 + while (false)
204 +/* We default to a softfp ABI so that we are compatible
205 + with the Linux EABI (as used by the linker). */
206 +#undef TARGET_DEFAULT_FLOAT_ABI
207 +#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFTFP
209 +/* We default to the "aapcs-linux" ABI so that enums are int-sized by
210 + default. */
211 +#undef ARM_DEFAULT_ABI
212 +#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
214 +/* Default to armv5t so that thumb shared libraries work.
215 + The ARM10TDMI core is the default for armv5t, so set
216 + SUBTARGET_CPU_DEFAULT to achieve this. */
217 +#undef SUBTARGET_CPU_DEFAULT
218 +#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
220 +/* TARGET_BIG_ENDIAN_DEFAULT is set in
221 + config.gcc for big endian configurations. */
222 +#undef TARGET_LINKER_EMULATION
223 +#if TARGET_BIG_ENDIAN_DEFAULT
224 +#define TARGET_LINKER_EMULATION "armelfb_aros"
225 +#else
226 +#define TARGET_LINKER_EMULATION "armelf_aros"
227 +#endif
229 +#undef SUBTARGET_CPP_SPEC
230 +#define SUBTARGET_CPP_SPEC "-D__ELF__ %{!nostdinc:%{!nostdc:%{!noposixc: -idirafter %R/include/aros/posixc} -idirafter %R/include/aros/stdc}}"
232 +#undef SUBTARGET_EXTRA_LINK_SPEC
233 +#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
235 +/* Provide a LINK_SPEC appropriate for AROS. */
236 +#undef LINK_SPEC
237 +#define LINK_SPEC "-m armelf_aros -L %R/lib"
239 +/* Use own supplement to libgcc. */
240 +#undef LIBGCC_SPEC
241 +#define LIBGCC_SPEC "-laeabi -lgcc"
243 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
244 +#undef MD_FALLBACK_FRAME_STATE_FOR
245 diff -ruN gcc-8.1.0/gcc/config/arm/t-aros gcc-8.1.0.aros/gcc/config/arm/t-aros
246 --- gcc-8.1.0/gcc/config/arm/t-aros 1970-01-01 01:00:00.000000000 +0100
247 +++ gcc-8.1.0.aros/gcc/config/arm/t-aros 2018-06-24 23:30:25.240834987 +0100
248 @@ -0,0 +1,22 @@
249 +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
250 +# 2008, 2010 Free Software Foundation, Inc.
252 +# This file is part of GCC.
254 +# GCC is free software; you can redistribute it and/or modify
255 +# it under the terms of the GNU General Public License as published by
256 +# the Free Software Foundation; either version 3, or (at your option)
257 +# any later version.
259 +# GCC is distributed in the hope that it will be useful,
260 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
261 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
262 +# GNU General Public License for more details.
264 +# You should have received a copy of the GNU General Public License
265 +# along with GCC; see the file COPYING3. If not see
266 +# <http://www.gnu.org/licenses/>.
268 +MULTILIB_OPTIONS = marm mfloat-abi=hard/mfloat-abi=soft march=armv6/march=armv7-a
269 +MULTILIB_DIRNAMES = arm fpu soft armv6 armv7-a
271 diff -ruN gcc-8.1.0/gcc/config/aros.h gcc-8.1.0.aros/gcc/config/aros.h
272 --- gcc-8.1.0/gcc/config/aros.h 1970-01-01 01:00:00.000000000 +0100
273 +++ gcc-8.1.0.aros/gcc/config/aros.h 2018-06-24 23:30:25.240834987 +0100
274 @@ -0,0 +1,115 @@
275 +/* Definitions for AROS
276 + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
277 + Contributed by Fabio Alemagna
278 + Based upon linux.h, contributed by Eric Youngdale.
280 +This file is part of GNU CC.
282 +GNU CC is free software; you can redistribute it and/or modify
283 +it under the terms of the GNU General Public License as published by
284 +the Free Software Foundation; either version 2, or (at your option)
285 +any later version.
287 +GNU CC is distributed in the hope that it will be useful,
288 +but WITHOUT ANY WARRANTY; without even the implied warranty of
289 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
290 +GNU General Public License for more details.
292 +You should have received a copy of the GNU General Public License
293 +along with GNU CC; see the file COPYING. If not, write to
294 +the Free Software Foundation, 59 Temple Place - Suite 330,
295 +Boston, MA 02111-1307, USA. */
297 +/* Don't assume anything about the header files. */
298 +#define NO_IMPLICIT_EXTERN_C
300 +#undef SIZE_TYPE
301 +#define SIZE_TYPE "long unsigned int"
303 +#undef WCHAR_TYPE
304 +#define WCHAR_TYPE "char"
306 +#undef WCHAR_TYPE_SIZE
307 +#define WCHAR_TYPE_SIZE 8
309 +#undef PTRDIFF_TYPE
310 +#define PTRDIFF_TYPE "long int"
312 +#undef TARGET_OS_CPP_BUILTINS
313 +#define TARGET_OS_CPP_BUILTINS() \
314 + do \
315 + { \
316 + builtin_define_std ("AROS"); \
317 + builtin_define ("AMIGA"); \
318 + builtin_define ("_AMIGA"); \
319 + builtin_define ("__ELF__"); \
320 + builtin_assert ("system=posix"); \
321 + } \
322 + while (0)
324 +#undef ASM_APP_ON
325 +#define ASM_APP_ON "#APP\n"
327 +#undef ASM_APP_OFF
328 +#define ASM_APP_OFF "#NO_APP\n"
330 +#undef MD_EXEC_PREFIX
331 +#undef MD_STARTFILE_PREFIX
333 +/* Provide a STARTFILE_SPEC appropriate for AROS. AROS has its own
334 + set of startup files which also take care of handling C++
335 + constructors/destructors. */
337 +#undef STARTFILE_SPEC
338 +#define STARTFILE_SPEC \
339 + "startup%O%s %{detach:detach%O%s} %{nix:nixmain%O%s}"
341 +/* Provide a ENDFILE_SPEC appropriate for AROS. */
343 +#undef ENDFILE_SPEC
344 +#define ENDFILE_SPEC \
345 + "-lautoinit"
347 +/* The compiler is configured with ONLY the gcc/g++ standard headers.
348 + N.B-: NATIVE_SYSTEM_HEADER_DIR must come after GCC_INCLUDE_DIR with gcc6!! */
349 +#undef INCLUDE_DEFAULTS
350 +#define INCLUDE_DEFAULTS \
351 +{ \
352 + { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, \
353 + { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 1 }, \
354 + { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, \
355 + { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, \
356 + { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 }, \
357 + { 0, 0, 0, 0, 0, 0 } \
360 +#undef CPP_SPEC
361 +#define CPP_SPEC "%(cpp_cpu) %{fPIC:-D__PIC__ -D__pic__} %{fpic:-D__PIC__ -D__pic__} %{posix:-D_POSIX_SOURCE} %{pthread:-D_REENTRANT} %{nix:-D__NIX__} %{!nostdinc:%{!nostdc:%{!noposixc:-idirafter %R/include/aros/posixc} -idirafter %R/include/aros/stdc}}"
363 +/* This is for -profile to use -lc_p instead of -lc. */
364 +#ifndef CC1_SPEC
365 +#define CC1_SPEC "%{profile:-p}"
366 +#endif
368 +/* The GNU C++ standard library requires that these macros be defined. */
369 +#undef CPLUSPLUS_CPP_SPEC
370 +#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
372 +#undef LIB_SPEC
373 +#define LIB_SPEC \
374 + "--start-group -lmui -larossupport -lamiga %{!nostartfiles:%{!static:%{!nostdc:%{!noposixc:-lposixc} -lstdcio -lstdc}}%{static:%{!nostdc:-lstdc.static}}} -lcodesets -lkeymap -lexpansion -lcommodities -ldiskfont -lasl -lmuimaster -ldatatypes -lcybergraphics -lworkbench -licon -lintuition -lgadtools -llayers -laros -lpartition -liffparse -lgraphics -llocale -ldos -lutility -loop %{!nosysbase:-lexec} -lautoinit -llibinit %{nostartfiles:%{static:-lstdc.static}} --end-group"
376 +#undef LIBSTDCXX_STATIC
377 +#define LIBSTDCXX_STATIC "pthread"
379 +#if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
380 +#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
381 +#endif
383 +/* AROS uses its own collect-like program for the moment. */
384 +#undef LINKER_NAME
385 +#define LINKER_NAME "collect-aros"
387 +#define TARGET_HAS_F_SETLKW
389 +#define TARGET_POSIX_IO
390 diff -ruN gcc-8.1.0/gcc/config/aros.opt gcc-8.1.0.aros/gcc/config/aros.opt
391 --- gcc-8.1.0/gcc/config/aros.opt 1970-01-01 01:00:00.000000000 +0100
392 +++ gcc-8.1.0.aros/gcc/config/aros.opt 2018-06-24 23:30:25.240834987 +0100
393 @@ -0,0 +1,35 @@
394 +; Processor-independent options for AROS.
396 +; Copyright (C) 2015 Free Software Foundation, Inc.
398 +; This file is part of GCC.
400 +; GCC is free software; you can redistribute it and/or modify it under
401 +; the terms of the GNU General Public License as published by the Free
402 +; Software Foundation; either version 3, or (at your option) any later
403 +; version.
405 +; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
406 +; WARRANTY; without even the implied warranty of MERCHANTABILITY or
407 +; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
408 +; for more details.
410 +; You should have received a copy of the GNU General Public License
411 +; along with GCC; see the file COPYING3. If not see
412 +; <http://www.gnu.org/licenses/>.
414 +posix
415 +Driver
417 +noposixc
418 +Driver
420 +nostdc
421 +Driver
423 +nosysbase
424 +Driver
426 +nix
427 +Driver
429 diff -ruN gcc-8.1.0/gcc/config/aros-stdint.h gcc-8.1.0.aros/gcc/config/aros-stdint.h
430 --- gcc-8.1.0/gcc/config/aros-stdint.h 1970-01-01 01:00:00.000000000 +0100
431 +++ gcc-8.1.0.aros/gcc/config/aros-stdint.h 2018-06-25 01:27:33.524371243 +0100
432 @@ -0,0 +1,56 @@
433 +/* Definitions for <stdint.h> types for AROS systems.
434 + Copyright (C) 2018 Free Software Foundation, Inc.
435 + Contributed by Nick Andrews <kalamatee@gmail.com>
437 +This file is part of GCC.
439 +GCC is free software; you can redistribute it and/or modify
440 +it under the terms of the GNU General Public License as published by
441 +the Free Software Foundation; either version 3, or (at your option)
442 +any later version.
444 +GCC is distributed in the hope that it will be useful,
445 +but WITHOUT ANY WARRANTY; without even the implied warranty of
446 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
447 +GNU General Public License for more details.
449 +Under Section 7 of GPL version 3, you are granted additional
450 +permissions described in the GCC Runtime Library Exception, version
451 +3.1, as published by the Free Software Foundation.
453 +You should have received a copy of the GNU General Public License and
454 +a copy of the GCC Runtime Library Exception along with this program;
455 +see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
456 +<http://www.gnu.org/licenses/>. */
458 +#define SIG_ATOMIC_TYPE "int"
460 +#define INT8_TYPE "signed char"
461 +#define INT16_TYPE "short int"
462 +#define INT32_TYPE "int"
463 +#define INT64_TYPE (LONG_TYPE_SIZE == 64 ? "long int" : "long long int")
464 +#define UINT8_TYPE "unsigned char"
465 +#define UINT16_TYPE "short unsigned int"
466 +#define UINT32_TYPE "unsigned int"
467 +#define UINT64_TYPE (LONG_TYPE_SIZE == 64 ? "long unsigned int" : "long long unsigned int")
469 +#define INT_LEAST8_TYPE INT8_TYPE
470 +#define INT_LEAST16_TYPE INT16_TYPE
471 +#define INT_LEAST32_TYPE INT32_TYPE
472 +#define INT_LEAST64_TYPE INT64_TYPE
473 +#define UINT_LEAST8_TYPE UINT8_TYPE
474 +#define UINT_LEAST16_TYPE UINT16_TYPE
475 +#define UINT_LEAST32_TYPE UINT32_TYPE
476 +#define UINT_LEAST64_TYPE UINT64_TYPE
478 +#define INT_FAST8_TYPE INT32_TYPE
479 +#define INT_FAST16_TYPE INT32_TYPE
480 +#define INT_FAST32_TYPE INT32_TYPE
481 +#define INT_FAST64_TYPE INT64_TYPE
482 +#define UINT_FAST8_TYPE UINT32_TYPE
483 +#define UINT_FAST16_TYPE UINT32_TYPE
484 +#define UINT_FAST32_TYPE UINT32_TYPE
485 +#define UINT_FAST64_TYPE UINT64_TYPE
487 +#define INTPTR_TYPE (LONG_TYPE_SIZE == 64 ? INT64_TYPE : INT32_TYPE)
488 +#define UINTPTR_TYPE (LONG_TYPE_SIZE == 64 ? UINT64_TYPE : UINT32_TYPE)
489 diff -ruN gcc-8.1.0/gcc/config/i386/aros64.h gcc-8.1.0.aros/gcc/config/i386/aros64.h
490 --- gcc-8.1.0/gcc/config/i386/aros64.h 1970-01-01 01:00:00.000000000 +0100
491 +++ gcc-8.1.0.aros/gcc/config/i386/aros64.h 2018-06-24 23:30:25.240834987 +0100
492 @@ -0,0 +1,34 @@
493 +/* Definitions for AMD x86_64 running AROS systems with ELF64 format.
494 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
495 + Free Software Foundation, Inc.
496 + Contributed by Stanislaw Szymczyk <sszymczy@gmail.com>. Based on aros.h.
498 +This file is part of GNU CC.
500 +GNU CC is free software; you can redistribute it and/or modify
501 +it under the terms of the GNU General Public License as published by
502 +the Free Software Foundation; either version 2, or (at your option)
503 +any later version.
505 +GNU CC is distributed in the hope that it will be useful,
506 +but WITHOUT ANY WARRANTY; without even the implied warranty of
507 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
508 +GNU General Public License for more details.
510 +You should have received a copy of the GNU General Public License
511 +along with GNU CC; see the file COPYING. If not, write to
512 +the Free Software Foundation, 59 Temple Place - Suite 330,
513 +Boston, MA 02111-1307, USA. */
515 +/* The svr4 ABI for the i386 says that records and unions are returned
516 + in memory. In the 64bit compilation we will turn this flag off in
517 + override_options, as we never do pcc_struct_return scheme on this target. */
518 +#undef DEFAULT_PCC_STRUCT_RETURN
519 +#define DEFAULT_PCC_STRUCT_RETURN 1
521 +/* Provide a LINK_SPEC appropriate for AROS. */
523 +#undef LINK_SPEC
524 +#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} -L %R/lib"
526 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
527 diff -ruN gcc-8.1.0/gcc/config/i386/aros.h gcc-8.1.0.aros/gcc/config/i386/aros.h
528 --- gcc-8.1.0/gcc/config/i386/aros.h 1970-01-01 01:00:00.000000000 +0100
529 +++ gcc-8.1.0.aros/gcc/config/i386/aros.h 2018-06-24 23:30:25.240834987 +0100
530 @@ -0,0 +1,25 @@
531 +/* Definitions for Intel 386 running AROS systems with ELF format.
532 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
533 + Free Software Foundation, Inc.
534 + Contributed by Fabio Alemagna.
535 + Based upon i386/linux.h by Eric Youngdale.
537 +This file is part of GNU CC.
539 +GNU CC is free software; you can redistribute it and/or modify
540 +it under the terms of the GNU General Public License as published by
541 +the Free Software Foundation; either version 2, or (at your option)
542 +any later version.
544 +GNU CC is distributed in the hope that it will be useful,
545 +but WITHOUT ANY WARRANTY; without even the implied warranty of
546 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
547 +GNU General Public License for more details.
549 +You should have received a copy of the GNU General Public License
550 +along with GNU CC; see the file COPYING. If not, write to
551 +the Free Software Foundation, 59 Temple Place - Suite 330,
552 +Boston, MA 02111-1307, USA. */
554 +#undef LINK_SPEC
555 +#define LINK_SPEC "-m elf_i386 -L%R/lib"
556 diff -ruN gcc-8.1.0/gcc/config/m68k/m68k.c gcc-8.1.0.aros/gcc/config/m68k/m68k.c
557 --- gcc-8.1.0/gcc/config/m68k/m68k.c 2018-01-24 23:36:29.000000000 +0000
558 +++ gcc-8.1.0.aros/gcc/config/m68k/m68k.c 2018-06-24 23:30:25.240834987 +0100
559 @@ -4484,7 +4484,7 @@
560 else if (letter == '/')
561 asm_fprintf (file, "%R");
562 else if (letter == '?')
563 - asm_fprintf (file, m68k_library_id_string);
564 + asm_fprintf (file, "%s", m68k_library_id_string);
565 else if (letter == 'p')
567 output_addr_const (file, op);
568 diff -ruN gcc-8.1.0/gcc/config/m68k/m68k.h gcc-8.1.0.aros/gcc/config/m68k/m68k.h
569 --- gcc-8.1.0/gcc/config/m68k/m68k.h 2018-01-03 10:03:58.000000000 +0000
570 +++ gcc-8.1.0.aros/gcc/config/m68k/m68k.h 2018-06-24 23:30:25.240834987 +0100
571 @@ -325,7 +325,9 @@
572 register elimination. */
573 #define FIRST_PSEUDO_REGISTER 25
575 -/* All m68k targets (except AmigaOS) use %a5 as the PIC register */
576 +/* All m68k targets (except AmigaOS) use %a5 as the PIC register.
577 + * On AmigaOS, we use %a4
578 + */
579 #define PIC_OFFSET_TABLE_REGNUM \
580 (!flag_pic ? INVALID_REGNUM \
581 : reload_completed ? REGNO (pic_offset_table_rtx) \
582 @@ -398,7 +400,8 @@
583 /* Most m68k targets use %a6 as a frame pointer. The AmigaOS
584 ABI uses %a6 for shared library calls, therefore the frame
585 pointer is shifted to %a5 on this target. */
586 -#define FRAME_POINTER_REGNUM A6_REG
587 +#define FRAME_POINTER_REGNUM A5_REG
588 +#define PIC_REG A4_REG
590 /* Base register for access to arguments of the function.
591 * This isn't a hardware register. It will be eliminated to the
592 diff -ruN gcc-8.1.0/gcc/config/m68k/m68k.md gcc-8.1.0.aros/gcc/config/m68k/m68k.md
593 --- gcc-8.1.0/gcc/config/m68k/m68k.md 2018-01-03 10:03:58.000000000 +0000
594 +++ gcc-8.1.0.aros/gcc/config/m68k/m68k.md 2018-06-24 23:30:25.240834987 +0100
595 @@ -133,7 +133,8 @@
596 [(D0_REG 0)
597 (A0_REG 8)
598 (A1_REG 9)
599 - (PIC_REG 13)
600 + (A4_REG 12)
601 + (A5_REG 13)
602 (A6_REG 14)
603 (SP_REG 15)
604 (FP0_REG 16)
605 @@ -7154,7 +7155,7 @@
607 if (TARGET_ID_SHARED_LIBRARY)
609 - operands[1] = gen_rtx_REG (Pmode, PIC_REG);
610 + operands[1] = gen_rtx_REG (Pmode, A4_REG);
611 return MOTOROLA ? "move.l %?(%1),%0" : "movel %1@(%?), %0";
613 else if (MOTOROLA)
614 diff -ruN gcc-8.1.0/gcc/config/m68k/t-aros gcc-8.1.0.aros/gcc/config/m68k/t-aros
615 --- gcc-8.1.0/gcc/config/m68k/t-aros 1970-01-01 01:00:00.000000000 +0100
616 +++ gcc-8.1.0.aros/gcc/config/m68k/t-aros 2018-06-24 23:30:25.240834987 +0100
617 @@ -0,0 +1,2 @@
618 +# Custom multilibs for AROS
619 +M68K_MLIB_CPU += && match(MLIB, "^68")
620 diff -ruN gcc-8.1.0/gcc/config/rs6000/aros.h gcc-8.1.0.aros/gcc/config/rs6000/aros.h
621 --- gcc-8.1.0/gcc/config/rs6000/aros.h 1970-01-01 01:00:00.000000000 +0100
622 +++ gcc-8.1.0.aros/gcc/config/rs6000/aros.h 2018-06-24 23:30:25.240834987 +0100
623 @@ -0,0 +1,151 @@
624 +/* Definitions for Powerpc running AROS systems with ELF format.
625 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
626 + Free Software Foundation, Inc.
627 + Contributed by Markus Weiss.
628 + Based upon i386/aros.h by Fabio Alemagna.
630 +This file is part of GNU CC.
632 +GNU CC is free software; you can redistribute it and/or modify
633 +it under the terms of the GNU General Public License as published by
634 +the Free Software Foundation; either version 2, or (at your option)
635 +any later version.
637 +GNU CC is distributed in the hope that it will be useful,
638 +but WITHOUT ANY WARRANTY; without even the implied warranty of
639 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
640 +GNU General Public License for more details.
642 +You should have received a copy of the GNU General Public License
643 +along with GNU CC; see the file COPYING. If not, write to
644 +the Free Software Foundation, 59 Temple Place - Suite 330,
645 +Boston, MA 02111-1307, USA. */
647 +/* Symbols missing in comparison to i386/aros.h are either
648 + defined in elfos.h, rs6000/rs6000.h rs6000/sysv4.h
649 + or not needed for PowerPC.
652 +/* We need to define __powerpc__. */
654 +#undef TARGET_OS_CPP_BUILTINS
655 +#define TARGET_OS_CPP_BUILTINS() \
656 + do \
657 + { \
658 + builtin_define_std ("AROS"); \
659 + builtin_define ("AMIGA"); \
660 + builtin_define ("_AMIGA"); \
661 + builtin_define ("__powerpc__"); \
662 + builtin_define ("__ELF__"); \
663 + builtin_assert ("system=posix"); \
664 + if (flag_pic) \
665 + { \
666 + builtin_define ("__PIC__"); \
667 + builtin_define ("__pic__"); \
668 + } \
669 + } \
670 + while (0)
672 +/* This one taken from linux.h. */
673 +/* We are 32-bit all the time, so optimize a little. */
674 +#undef TARGET_64BIT
675 +#define TARGET_64BIT 0
677 +/* The svr4 ABI for the i386 says that records and unions are returned
678 + in memory. */
679 +/*#undef DEFAULT_PCC_STRUCT_RETURN
680 +#define DEFAULT_PCC_STRUCT_RETURN 1
681 +see rs6000/rs6000.h
685 +#undef ASM_COMMENT_START
686 +#define ASM_COMMENT_START "#"
687 +see rs6000/rs6000.h
691 +#undef DBX_REGISTER_NUMBER
692 +#define DBX_REGISTER_NUMBER(n) \
693 + (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
694 +see rs6000/sysv4.h
697 +/* Output assembler code to FILE to call the profiler.
698 + To the best of my knowledge, no Linux libc has required the label
699 + argument to mcount. */
702 +#define NO_PROFILE_COUNTERS 1
703 +not used by other similar ppc compilers
704 +only in darwin.h rs6000/linux64.h rs6000/rs6000.c
708 +#undef MCOUNT_NAME
709 +#define MCOUNT_NAME "mcount"
710 +see rs6000/sysv4.h RS6000_MCOUNT
713 +/* The GLIBC version of mcount for the x86 assumes that there is a
714 + frame, so we cannot allow profiling without a frame pointer. */
716 +#undef SUBTARGET_FRAME_POINTER_REQUIRED
717 +#define SUBTARGET_FRAME_POINTER_REQUIRED crtl->profile
718 +seems to be handled by rs6000/rs6000.h
721 +#undef CC1_SPEC
722 +#define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
724 +/* Provide a LINK_SPEC appropriate for AROS. */
726 +#undef LINK_SPEC
727 +#define LINK_SPEC "-m elf32ppc -L %R/lib"
729 +/* A C statement (sans semicolon) to output to the stdio stream
730 + FILE the assembler definition of uninitialized global DECL named
731 + NAME whose size is SIZE bytes and alignment is ALIGN bytes.
732 + Try to use asm_output_aligned_bss to implement this macro. */
734 +#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
735 + asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
736 +see rs6000/sysv4.h
739 +/* A C statement to output to the stdio stream FILE an assembler
740 + command to advance the location counter to a multiple of 1<<LOG
741 + bytes if it is within MAX_SKIP bytes.
743 + This is used to align code labels according to Intel recommendations. */
745 +#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
746 +#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
747 + do { \
748 + if ((LOG) != 0) { \
749 + if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
750 + else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
751 + } \
752 + } while (0)
753 +#endif
754 +see rs6000/sysv4.h
757 +/* Handle special EH pointer encodings. Absolute, pc-relative, and
758 + indirect are handled automatically. */
760 +#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
761 + do { \
762 + if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel) \
763 + { \
764 + fputs (ASM_LONG, FILE); \
765 + assemble_name (FILE, XSTR (ADDR, 0)); \
766 + fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
767 + goto DONE; \
768 + } \
769 + } while (0)
770 +not used for PowerPC
773 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
774 +#undef MD_FALLBACK_FRAME_STATE_FOR
775 diff -ruN gcc-8.1.0/gcc/config/rs6000/rs6000.c gcc-8.1.0.aros/gcc/config/rs6000/rs6000.c
776 --- gcc-8.1.0/gcc/config/rs6000/rs6000.c 2018-04-24 23:49:41.000000000 +0100
777 +++ gcc-8.1.0.aros/gcc/config/rs6000/rs6000.c 2018-06-24 23:30:25.240834987 +0100
778 @@ -1530,6 +1530,8 @@
779 rs6000_handle_longcall_attribute, NULL },
780 { "shortcall", 0, 0, false, true, true, false,
781 rs6000_handle_longcall_attribute, NULL },
782 + { "stackparm", 0, 0, false, true, true, false,
783 + rs6000_handle_longcall_attribute, NULL },
784 { "ms_struct", 0, 0, false, false, false, false,
785 rs6000_handle_struct_attribute, NULL },
786 { "gcc_struct", 0, 0, false, false, false, false,
787 @@ -11329,6 +11331,9 @@
788 && !lookup_attribute ("shortcall", TYPE_ATTRIBUTES (fntype))))
789 cum->call_cookie |= CALL_LONG;
791 + cum->stackparm = fntype && lookup_attribute("stackparm",
792 + TYPE_ATTRIBUTES(fntype));
794 if (TARGET_DEBUG_ARG)
796 fprintf (stderr, "\ninit_cumulative_args:");
797 @@ -12406,6 +12411,9 @@
799 rs6000_discover_homogeneous_aggregate (mode, type, &elt_mode, &n_elts);
801 + if (cum->stackparm)
802 + return NULL_RTX;
804 if (TARGET_MACHO && rs6000_darwin64_struct_check_p (mode, type))
806 rtx rslt = rs6000_darwin64_record_arg (cum, type, named, /*retval= */false);
807 @@ -13006,6 +13014,8 @@
809 /* Skip the last named argument. */
810 next_cum = *get_cumulative_args (cum);
811 + if (next_cum.stackparm)
812 + return;
813 rs6000_function_arg_advance_1 (&next_cum, mode, type, true, 0);
815 if (DEFAULT_ABI == ABI_V4)
816 diff -ruN gcc-8.1.0/gcc/config/rs6000/rs6000.h gcc-8.1.0.aros/gcc/config/rs6000/rs6000.h
817 --- gcc-8.1.0/gcc/config/rs6000/rs6000.h 2018-04-10 18:59:52.000000000 +0100
818 +++ gcc-8.1.0.aros/gcc/config/rs6000/rs6000.h 2018-06-24 23:30:25.240834987 +0100
819 @@ -1727,6 +1727,7 @@
820 int nargs_prototype; /* # args left in the current prototype */
821 int prototype; /* Whether a prototype was defined */
822 int stdarg; /* Whether function is a stdarg function. */
823 + int stackparm; /* Whether function has all args on the stack */
824 int call_cookie; /* Do special things for this call */
825 int sysv_gregno; /* next available GP register */
826 int intoffset; /* running offset in struct (darwin64) */
827 diff -ruN gcc-8.1.0/gcc/config/t-aros gcc-8.1.0.aros/gcc/config/t-aros
828 --- gcc-8.1.0/gcc/config/t-aros 1970-01-01 01:00:00.000000000 +0100
829 +++ gcc-8.1.0.aros/gcc/config/t-aros 2018-06-24 23:30:25.240834987 +0100
830 @@ -0,0 +1,29 @@
831 +# In AROS, "/usr" is a four-letter word.
832 +# Must match NATIVE_SYSTEM_HEADER_COMPONENT in aros.h !
833 +NATIVE_SYSTEM_HEADER_DIR = /include
835 +# Don't add AROS target include path when compiling host compiler
836 +CPPFLAGS =
838 +# Copy AROS specific include replacement files
839 +LIBGCC_DEPS += stmp-aros-hrds
841 +EXTRA_AROS_HEADERS = aros/types/size_t.h aros/types/ptrdiff_t.h \
842 + aros/types/wchar_t.h aros/types/wint_t.h aros/types/null.h
844 +stmp-int-hdrs : | include/aros/types
846 +include/aros/types : $(addprefix $(srcdir)/ginclude/,$(EXTRA_AROS_HEADERS))
847 + -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
848 + -if [ -d include/aros/types ] ; \
849 + then true; \
850 + else \
851 + mkdir include/aros; chmod a+rx include/aros; \
852 + mkdir include/aros/types; chmod a+rx include/aros/types; \
853 + fi
854 + for file in $(EXTRA_AROS_HEADERS); do \
855 + $(STAMP) include/$$file; \
856 + rm -fr include/$$file; \
857 + cp $(srcdir)/ginclude/$$file include/$$file; \
858 + chmod a+r include/$$file; \
859 + done
860 diff -ruN gcc-8.1.0/gcc/config.build gcc-8.1.0.aros/gcc/config.build
861 --- gcc-8.1.0/gcc/config.build 2018-01-03 10:03:58.000000000 +0000
862 +++ gcc-8.1.0.aros/gcc/config.build 2018-06-24 23:30:25.240834987 +0100
863 @@ -73,6 +73,9 @@
864 build_xm_file=i386/xm-djgpp.h
865 build_exeext=.exe
867 + *-*-aros*)
868 + build_xm_file=xm-aros.h
869 + ;;
870 *-*-sysv*)
871 # All other System V variants.
872 build_install_headers_dir=install-headers-cpio
873 diff -ruN gcc-8.1.0/gcc/config.gcc gcc-8.1.0.aros/gcc/config.gcc
874 --- gcc-8.1.0/gcc/config.gcc 2018-04-27 20:31:35.000000000 +0100
875 +++ gcc-8.1.0.aros/gcc/config.gcc 2018-06-25 01:36:02.735410095 +0100
876 @@ -818,6 +818,16 @@
877 nbsd_tm_file="netbsd.h netbsd-stdint.h netbsd-elf.h"
878 default_use_cxa_atexit=yes
880 +*-*-aros*)
881 + tm_file="${tm_file} aros-stdint.h"
882 + gas=yes
883 + gnu_ld=yes
884 + thread_file=posix
885 + use_collect2=no
886 + xm_defines='STDC_HEADERS=1'
887 + extra_options="${extra_options} aros.opt"
888 + ;;
890 *-*-openbsd*)
891 tmake_file="t-openbsd"
892 case ${enable_threads} in
893 @@ -938,6 +948,11 @@
894 esac
896 case ${target} in
897 +aarch64*-*-aros*)
898 + tm_file="${tm_file} dbxelf.h elfos.h aarch64/aarch64-elf.h aros.h aarch64/aros.h"
899 + tmake_file="${tmake_file} aarch64/t-aarch64 aarch64/t-aros t-aros"
900 + xm_file="xm-aros.h"
901 + ;;
902 aarch64*-*-elf | aarch64*-*-fuchsia* | aarch64*-*-rtems*)
903 tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h"
904 tm_file="${tm_file} aarch64/aarch64-elf.h aarch64/aarch64-elf-raw.h"
905 @@ -1036,6 +1051,16 @@
906 tm_file="${tm_file} vms/vms.h alpha/vms.h"
907 tmake_file="${tmake_file} alpha/t-vms alpha/t-alpha"
909 +arm*-*-aros*)
910 + tm_file="dbxelf.h elfos.h arm/elf.h arm/bpabi.h aros.h arm/aros.h arm/aout.h arm/arm.h"
911 + tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h"
912 + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-arm-softfp arm/t-bpabi arm/t-aros t-aros"
913 + xm_file="xm-aros.h"
914 + # The BPABI long long divmod functions return a 128-bit value in
915 + # registers r0-r3. Correctly modeling that requires the use of
916 + # TImode.
917 + need_64bit_hwint=yes
918 + ;;
919 arc*-*-elf*)
920 tm_file="arc/arc-arch.h dbxelf.h elfos.h newlib-stdint.h arc/elf.h ${tm_file}"
921 tmake_file="arc/t-multilib arc/t-arc"
922 @@ -1638,6 +1663,16 @@
923 done
924 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
926 +i[34567]86-*-aros*)
927 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h aros.h i386/aros.h"
928 + xm_file=xm-aros.h
929 + tmake_file="${tmake_file} i386/t-i386elf t-aros"
930 + ;;
931 +x86_64-*-aros*)
932 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h i386/x86-64.h aros.h i386/aros64.h"
933 + tmake_file="${tmake_file} i386/t-i386elf t-aros"
934 + xm_file=xm-aros.h
935 + ;;
936 i[34567]86-pc-msdosdjgpp*)
937 xm_file=i386/xm-djgpp.h
938 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h"
939 @@ -1929,6 +1964,16 @@
940 thread_file='posix'
943 +m68k-*-aros*)
944 + default_m68k_cpu=68000
945 + default_cf_cpu=5206
946 + tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
947 + tm_file="${tm_file} aros.h"
948 + tm_defines="${tm_defines} MOTOROLA=1"
949 + tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
950 + tmake_file="$tmake_file m68k/t-aros m68k/t-mlibs t-aros"
951 + extra_parts="crtbegin.o crtend.o"
952 + ;;
953 m68k-*-elf* | fido-*-elf*)
954 case ${target} in
955 fido-*-elf*)
956 @@ -2484,6 +2529,13 @@
957 tmake_file="${tmake_file} powerpcspe/t-ppcos powerpcspe/t-linux"
958 tm_file="${tm_file} powerpcspe/linuxspe.h powerpcspe/e500.h"
960 +powerpc-*-aros*)
961 + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h aros.h"
962 + extra_options="${extra_options} rs6000/sysv4.opt"
963 + tm_file="${tm_file} rs6000/aros.h"
964 + xm_file=xm-aros.h
965 + tmake_file="$tmake_file t-aros"
966 + ;;
967 powerpc*-*-linux*)
968 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h"
969 extra_options="${extra_options} rs6000/sysv4.opt"
970 diff -ruN gcc-8.1.0/gcc/config.host gcc-8.1.0.aros/gcc/config.host
971 --- gcc-8.1.0/gcc/config.host 2018-01-03 10:03:58.000000000 +0000
972 +++ gcc-8.1.0.aros/gcc/config.host 2018-06-24 23:30:25.240834987 +0100
973 @@ -287,6 +287,10 @@
974 out_host_hook_obj=host-hpux.o
975 host_xmake_file="${host_xmake_file} x-hpux"
977 + *-*-aros*)
978 + host_can_use_collect2=no
979 + host_xm_file=xm-aros.h
980 + ;;
981 *-*-*vms*)
982 host_xm_file="vms/xm-vms.h"
983 host_xmake_file=vms/x-vms
984 diff -ruN gcc-8.1.0/gcc/ginclude/aros/types/null.h gcc-8.1.0.aros/gcc/ginclude/aros/types/null.h
985 --- gcc-8.1.0/gcc/ginclude/aros/types/null.h 1970-01-01 01:00:00.000000000 +0100
986 +++ gcc-8.1.0.aros/gcc/ginclude/aros/types/null.h 2018-06-24 23:30:25.240834987 +0100
987 @@ -0,0 +1,3 @@
988 +/* Replace AROS' NULL definition with gcc's one */
989 +#define __need_NULL
990 +#include <stddef.h>
991 diff -ruN gcc-8.1.0/gcc/ginclude/aros/types/ptrdiff_t.h gcc-8.1.0.aros/gcc/ginclude/aros/types/ptrdiff_t.h
992 --- gcc-8.1.0/gcc/ginclude/aros/types/ptrdiff_t.h 1970-01-01 01:00:00.000000000 +0100
993 +++ gcc-8.1.0.aros/gcc/ginclude/aros/types/ptrdiff_t.h 2018-06-24 23:30:25.240834987 +0100
994 @@ -0,0 +1,3 @@
995 +/* Replace AROS' ptrdiff_t definition with gcc's one */
996 +#define __need_ptrdiff_t
997 +#include <stddef.h>
998 diff -ruN gcc-8.1.0/gcc/ginclude/aros/types/size_t.h gcc-8.1.0.aros/gcc/ginclude/aros/types/size_t.h
999 --- gcc-8.1.0/gcc/ginclude/aros/types/size_t.h 1970-01-01 01:00:00.000000000 +0100
1000 +++ gcc-8.1.0.aros/gcc/ginclude/aros/types/size_t.h 2018-06-24 23:30:25.240834987 +0100
1001 @@ -0,0 +1,3 @@
1002 +/* Replace AROS' size_t definition with gcc's one */
1003 +#define __need_size_t
1004 +#include <stddef.h>
1005 diff -ruN gcc-8.1.0/gcc/ginclude/aros/types/wchar_t.h gcc-8.1.0.aros/gcc/ginclude/aros/types/wchar_t.h
1006 --- gcc-8.1.0/gcc/ginclude/aros/types/wchar_t.h 1970-01-01 01:00:00.000000000 +0100
1007 +++ gcc-8.1.0.aros/gcc/ginclude/aros/types/wchar_t.h 2018-06-24 23:30:25.240834987 +0100
1008 @@ -0,0 +1,3 @@
1009 +/* Replace AROS' wchar_t definition with gcc's one */
1010 +#define __need_wchar_t
1011 +#include <stddef.h>
1012 diff -ruN gcc-8.1.0/gcc/ginclude/aros/types/wint_t.h gcc-8.1.0.aros/gcc/ginclude/aros/types/wint_t.h
1013 --- gcc-8.1.0/gcc/ginclude/aros/types/wint_t.h 1970-01-01 01:00:00.000000000 +0100
1014 +++ gcc-8.1.0.aros/gcc/ginclude/aros/types/wint_t.h 2018-06-24 23:30:25.240834987 +0100
1015 @@ -0,0 +1,3 @@
1016 +/* Replace AROS' wint_t definition with gcc's one */
1017 +#define __need_wint_t
1018 +#include <stddef.h>
1019 diff -ruN gcc-8.1.0/gcc/ginclude/stddef.h gcc-8.1.0.aros/gcc/ginclude/stddef.h
1020 --- gcc-8.1.0/gcc/ginclude/stddef.h 2018-01-03 10:03:58.000000000 +0000
1021 +++ gcc-8.1.0.aros/gcc/ginclude/stddef.h 2018-06-24 23:30:25.240834987 +0100
1022 @@ -131,6 +131,7 @@
1023 #ifndef __PTRDIFF_T
1024 #ifndef _PTRDIFF_T_
1025 #ifndef _BSD_PTRDIFF_T_
1026 +#ifndef _AROS_TYPES_PTRDIFF_T_H
1027 #ifndef ___int_ptrdiff_t_h
1028 #ifndef _GCC_PTRDIFF_T
1029 #ifndef _PTRDIFF_T_DECLARED /* DragonFly */
1030 @@ -140,6 +141,7 @@
1031 #define __PTRDIFF_T
1032 #define _PTRDIFF_T_
1033 #define _BSD_PTRDIFF_T_
1034 +#define _AROS_TYPES_PTRDIFF_T_H
1035 #define ___int_ptrdiff_t_h
1036 #define _GCC_PTRDIFF_T
1037 #define _PTRDIFF_T_DECLARED
1038 @@ -150,6 +152,7 @@
1039 #endif /* _PTRDIFF_T_DECLARED */
1040 #endif /* _GCC_PTRDIFF_T */
1041 #endif /* ___int_ptrdiff_t_h */
1042 +#endif /* _AROS_TYPES_PTRDIFF_T_H */
1043 #endif /* _BSD_PTRDIFF_T_ */
1044 #endif /* _PTRDIFF_T_ */
1045 #endif /* __PTRDIFF_T */
1046 @@ -176,6 +179,7 @@
1047 #ifndef __SIZE_T
1048 #ifndef _SIZE_T_
1049 #ifndef _BSD_SIZE_T_
1050 +#ifndef _AROS_TYPES_SIZE_T_H
1051 #ifndef _SIZE_T_DEFINED_
1052 #ifndef _SIZE_T_DEFINED
1053 #ifndef _BSD_SIZE_T_DEFINED_ /* Darwin */
1054 @@ -193,6 +197,7 @@
1055 #define __SIZE_T
1056 #define _SIZE_T_
1057 #define _BSD_SIZE_T_
1058 +#define _AROS_TYPES_SIZE_T_H
1059 #define _SIZE_T_DEFINED_
1060 #define _SIZE_T_DEFINED
1061 #define _BSD_SIZE_T_DEFINED_ /* Darwin */
1062 @@ -226,6 +231,7 @@
1063 #endif /* _BSD_SIZE_T_DEFINED_ */
1064 #endif /* _SIZE_T_DEFINED */
1065 #endif /* _SIZE_T_DEFINED_ */
1066 +#endif /* _AROS_TYPES_SIZE_T_H */
1067 #endif /* _BSD_SIZE_T_ */
1068 #endif /* _SIZE_T_ */
1069 #endif /* __SIZE_T */
1070 diff -ruN gcc-8.1.0/include/filenames.h gcc-8.1.0.aros/include/filenames.h
1071 --- gcc-8.1.0/include/filenames.h 2018-01-03 10:03:58.000000000 +0000
1072 +++ gcc-8.1.0.aros/include/filenames.h 2018-06-24 23:30:25.240834987 +0100
1073 @@ -42,6 +42,13 @@
1074 # define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f)
1075 # define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c)
1076 # define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f)
1077 +#elif defined(__AROS__)
1078 +# ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
1079 +# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM 1
1080 +# endif
1081 +# define HAS_DRIVE_SPEC(f) (0)
1082 +# define IS_DIR_SEPARATOR(c) ((c) == '/' || (c) == ':')
1083 +# define IS_ABSOLUTE_PATH(f) (IS_DIR_SEPARATOR((f)[0]) || (strchr((f), ':')))
1084 #else /* not DOSish */
1085 # if defined(__APPLE__)
1086 # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
1087 diff -ruN gcc-8.1.0/libgcc/config/m68k/lb1sf68.S gcc-8.1.0.aros/libgcc/config/m68k/lb1sf68.S
1088 --- gcc-8.1.0/libgcc/config/m68k/lb1sf68.S 2018-01-03 10:03:58.000000000 +0000
1089 +++ gcc-8.1.0.aros/libgcc/config/m68k/lb1sf68.S 2018-06-24 23:30:25.240834987 +0100
1090 @@ -3123,9 +3123,9 @@
1091 | Now comes the check for +/-INFINITY. We know that both are (maybe not
1092 | finite) numbers, but we have to check if both are infinite whether we
1093 | are adding or subtracting them.
1094 - eorl d3,d2 | to check sign bits
1095 + movel d2,d7 | save sign bit
1096 + eorl d3,d2 | check sign bits
1097 bmi 1f
1098 - movel d0,d7
1099 andl IMM (0x80000000),d7 | get (common) sign bit
1100 bra Lf$infty
1102 @@ -3135,7 +3135,6 @@
1103 cmpl d1,d0 | are both infinite?
1104 beq Lf$inop | if so return NaN
1106 - movel d0,d7
1107 andl IMM (0x80000000),d7 | get a's sign bit '
1108 cmpl d4,d0 | test now for infinity
1109 beq Lf$infty | if a is INFINITY return with this sign
1110 diff -ruN gcc-8.1.0/libgcc/config.host gcc-8.1.0.aros/libgcc/config.host
1111 --- gcc-8.1.0/libgcc/config.host 2018-04-06 21:04:17.000000000 +0100
1112 +++ gcc-8.1.0.aros/libgcc/config.host 2018-06-24 23:30:25.240834987 +0100
1113 @@ -839,6 +839,9 @@
1114 m32rle-*-linux*)
1115 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
1117 +m68k-*-aros*)
1118 + tmake_file="$tmake_file m68k/t-floatlib"
1119 + ;;
1120 m68k-*-elf* | fido-*-elf)
1121 tmake_file="$tmake_file m68k/t-floatlib"
1123 @@ -1359,6 +1362,9 @@
1124 tmake_file="$tmake_file nvptx/t-nvptx"
1125 extra_parts="crt0.o"
1127 +*-*-aros*)
1128 + tmake_file=
1129 + ;;
1131 echo "*** Configuration ${host} not supported" 1>&2
1132 exit 1
1133 diff -ruN gcc-8.1.0/libgcc/gthr.h gcc-8.1.0.aros/libgcc/gthr.h
1134 --- gcc-8.1.0/libgcc/gthr.h 2018-01-03 10:03:58.000000000 +0000
1135 +++ gcc-8.1.0.aros/libgcc/gthr.h 2018-06-24 23:30:25.240834987 +0100
1136 @@ -141,6 +141,11 @@
1137 #define GTHREAD_USE_WEAK 0
1138 #endif
1140 +#ifdef __AROS__
1141 +#undef GTHREAD_USE_WEAK
1142 +#define GTHREAD_USE_WEAK 0
1143 +#endif
1145 #ifndef GTHREAD_USE_WEAK
1146 #define GTHREAD_USE_WEAK 1
1147 #endif
1148 diff -ruN gcc-8.1.0/libgcc/unwind-dw2.c gcc-8.1.0.aros/libgcc/unwind-dw2.c
1149 --- gcc-8.1.0/libgcc/unwind-dw2.c 2018-01-13 17:56:52.000000000 +0000
1150 +++ gcc-8.1.0.aros/libgcc/unwind-dw2.c 2018-06-24 23:30:25.240834987 +0100
1151 @@ -1563,7 +1563,9 @@
1152 static inline void
1153 init_dwarf_reg_size_table (void)
1155 +#ifdef MD_FALLBACK_FRAME_STATE_FOR
1156 __builtin_init_dwarf_reg_size_table (dwarf_reg_size_table);
1157 +#endif
1160 static void __attribute__((noinline))
1161 diff -ruN gcc-8.1.0/libgcc/unwind-dw2-fde.c gcc-8.1.0.aros/libgcc/unwind-dw2-fde.c
1162 --- gcc-8.1.0/libgcc/unwind-dw2-fde.c 2018-01-03 10:03:58.000000000 +0000
1163 +++ gcc-8.1.0.aros/libgcc/unwind-dw2-fde.c 2018-06-24 23:30:25.240834987 +0100
1164 @@ -100,8 +100,10 @@
1165 #endif
1167 init_object_mutex_once ();
1168 +#ifndef __AROS__ /* This is called when SysBase is not yet set up */
1169 __gthread_mutex_lock (&object_mutex);
1171 +#endif
1173 ob->next = unseen_objects;
1174 unseen_objects = ob;
1175 #ifdef ATOMIC_FDE_FAST_PATH
1176 @@ -115,7 +117,9 @@
1177 __atomic_store_n (&any_objects_registered, 1, __ATOMIC_RELAXED);
1178 #endif
1180 +#ifndef __AROS__
1181 __gthread_mutex_unlock (&object_mutex);
1182 +#endif
1185 void
1186 diff -ruN gcc-8.1.0/libiberty/filename_cmp.c gcc-8.1.0.aros/libiberty/filename_cmp.c
1187 --- gcc-8.1.0/libiberty/filename_cmp.c 2018-01-03 10:03:58.000000000 +0000
1188 +++ gcc-8.1.0.aros/libiberty/filename_cmp.c 2018-06-24 23:30:25.240834987 +0100
1189 @@ -55,9 +55,12 @@
1191 filename_cmp (const char *s1, const char *s2)
1193 -#if !defined(HAVE_DOS_BASED_FILE_SYSTEM) \
1194 - && !defined(HAVE_CASE_INSENSITIVE_FILE_SYSTEM)
1195 +#if !defined(HAVE_DOS_BASED_FILE_SYSTEM)
1196 +#if defined(HAVE_CASE_INSENSITIVE_FILE_SYSTEM)
1197 + return strcasecmp(s1, s2);
1198 +#else
1199 return strcmp(s1, s2);
1200 +#endif
1201 #else
1202 for (;;)
1204 diff -ruN gcc-8.1.0/libobjc/configure gcc-8.1.0.aros/libobjc/configure
1205 --- gcc-8.1.0/libobjc/configure 2018-04-24 17:45:26.000000000 +0100
1206 +++ gcc-8.1.0.aros/libobjc/configure 2018-06-24 23:30:25.240834987 +0100
1207 @@ -11337,214 +11337,7 @@
1208 # -----------
1210 # Check if we have thread-local storage
1213 - # Check whether --enable-tls was given.
1214 -if test "${enable_tls+set}" = set; then :
1215 - enableval=$enable_tls;
1216 - case "$enableval" in
1217 - yes|no) ;;
1218 - *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
1219 - esac
1221 -else
1222 - enable_tls=yes
1226 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
1227 -$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
1228 -if test "${gcc_cv_have_tls+set}" = set; then :
1229 - $as_echo_n "(cached) " >&6
1230 -else
1232 - if test "$cross_compiling" = yes; then :
1233 - if test x$gcc_no_link = xyes; then
1234 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1236 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1237 -/* end confdefs.h. */
1238 -__thread int a; int b; int main() { return a = b; }
1239 -_ACEOF
1240 -if ac_fn_c_try_link "$LINENO"; then :
1241 - chktls_save_LDFLAGS="$LDFLAGS"
1242 - case $host in
1243 - *-*-linux*)
1244 - LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
1245 - ;;
1246 - esac
1247 - chktls_save_CFLAGS="$CFLAGS"
1248 - CFLAGS="-fPIC $CFLAGS"
1249 - if test x$gcc_no_link = xyes; then
1250 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1252 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1253 -/* end confdefs.h. */
1254 -int f() { return 0; }
1255 -_ACEOF
1256 -if ac_fn_c_try_link "$LINENO"; then :
1257 - if test x$gcc_no_link = xyes; then
1258 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1260 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1261 -/* end confdefs.h. */
1262 -__thread int a; int b; int f() { return a = b; }
1263 -_ACEOF
1264 -if ac_fn_c_try_link "$LINENO"; then :
1265 - gcc_cv_have_tls=yes
1266 -else
1267 - gcc_cv_have_tls=no
1269 -rm -f core conftest.err conftest.$ac_objext \
1270 - conftest$ac_exeext conftest.$ac_ext
1271 -else
1272 - gcc_cv_have_tls=yes
1274 -rm -f core conftest.err conftest.$ac_objext \
1275 - conftest$ac_exeext conftest.$ac_ext
1276 - CFLAGS="$chktls_save_CFLAGS"
1277 - LDFLAGS="$chktls_save_LDFLAGS"
1278 -else
1279 - gcc_cv_have_tls=no
1281 -rm -f core conftest.err conftest.$ac_objext \
1282 - conftest$ac_exeext conftest.$ac_ext
1285 -else
1286 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1287 -/* end confdefs.h. */
1288 -__thread int a; int b; int main() { return a = b; }
1289 -_ACEOF
1290 -if ac_fn_c_try_run "$LINENO"; then :
1291 - chktls_save_LDFLAGS="$LDFLAGS"
1292 - LDFLAGS="-static $LDFLAGS"
1293 - if test x$gcc_no_link = xyes; then
1294 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1296 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1297 -/* end confdefs.h. */
1298 -int main() { return 0; }
1299 -_ACEOF
1300 -if ac_fn_c_try_link "$LINENO"; then :
1301 - if test "$cross_compiling" = yes; then :
1302 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1303 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1304 -as_fn_error "cannot run test program while cross compiling
1305 -See \`config.log' for more details." "$LINENO" 5; }
1306 -else
1307 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1308 -/* end confdefs.h. */
1309 -__thread int a; int b; int main() { return a = b; }
1310 -_ACEOF
1311 -if ac_fn_c_try_run "$LINENO"; then :
1312 - gcc_cv_have_tls=yes
1313 -else
1314 - gcc_cv_have_tls=no
1316 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1317 - conftest.$ac_objext conftest.beam conftest.$ac_ext
1320 -else
1321 - gcc_cv_have_tls=yes
1323 -rm -f core conftest.err conftest.$ac_objext \
1324 - conftest$ac_exeext conftest.$ac_ext
1325 - LDFLAGS="$chktls_save_LDFLAGS"
1326 - if test $gcc_cv_have_tls = yes; then
1327 - chktls_save_CFLAGS="$CFLAGS"
1328 - thread_CFLAGS=failed
1329 - for flag in '' '-pthread' '-lpthread'; do
1330 - CFLAGS="$flag $chktls_save_CFLAGS"
1331 - if test x$gcc_no_link = xyes; then
1332 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1334 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1335 -/* end confdefs.h. */
1336 -#include <pthread.h>
1337 - void *g(void *d) { return NULL; }
1338 -int
1339 -main ()
1341 -pthread_t t; pthread_create(&t,NULL,g,NULL);
1343 - return 0;
1345 -_ACEOF
1346 -if ac_fn_c_try_link "$LINENO"; then :
1347 - thread_CFLAGS="$flag"
1349 -rm -f core conftest.err conftest.$ac_objext \
1350 - conftest$ac_exeext conftest.$ac_ext
1351 - if test "X$thread_CFLAGS" != Xfailed; then
1352 - break
1353 - fi
1354 - done
1355 - CFLAGS="$chktls_save_CFLAGS"
1356 - if test "X$thread_CFLAGS" != Xfailed; then
1357 - CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
1358 - if test "$cross_compiling" = yes; then :
1359 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1360 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1361 -as_fn_error "cannot run test program while cross compiling
1362 -See \`config.log' for more details." "$LINENO" 5; }
1363 -else
1364 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1365 -/* end confdefs.h. */
1366 -#include <pthread.h>
1367 - __thread int a;
1368 - static int *volatile a_in_other_thread;
1369 - static void *
1370 - thread_func (void *arg)
1372 - a_in_other_thread = &a;
1373 - return (void *)0;
1375 -int
1376 -main ()
1378 -pthread_t thread;
1379 - void *thread_retval;
1380 - int *volatile a_in_main_thread;
1381 - a_in_main_thread = &a;
1382 - if (pthread_create (&thread, (pthread_attr_t *)0,
1383 - thread_func, (void *)0))
1384 - return 0;
1385 - if (pthread_join (thread, &thread_retval))
1386 - return 0;
1387 - return (a_in_other_thread == a_in_main_thread);
1389 - return 0;
1391 -_ACEOF
1392 -if ac_fn_c_try_run "$LINENO"; then :
1393 - gcc_cv_have_tls=yes
1394 -else
1395 - gcc_cv_have_tls=no
1397 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1398 - conftest.$ac_objext conftest.beam conftest.$ac_ext
1401 - CFLAGS="$chktls_save_CFLAGS"
1402 - fi
1403 - fi
1404 -else
1405 - gcc_cv_have_tls=no
1407 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1408 - conftest.$ac_objext conftest.beam conftest.$ac_ext
1412 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
1413 -$as_echo "$gcc_cv_have_tls" >&6; }
1414 - if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
1416 -$as_echo "#define HAVE_TLS 1" >>confdefs.h
1418 - fi
1419 +#dnl GCC_ENABLE_TLS
1422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the type of bitfields matters" >&5
1423 diff -ruN gcc-8.1.0/libobjc/configure.ac gcc-8.1.0.aros/libobjc/configure.ac
1424 --- gcc-8.1.0/libobjc/configure.ac 2018-01-03 10:03:58.000000000 +0000
1425 +++ gcc-8.1.0.aros/libobjc/configure.ac 2018-06-24 23:30:25.240834987 +0100
1426 @@ -195,7 +195,7 @@
1427 # -----------
1429 # Check if we have thread-local storage
1430 -GCC_CHECK_TLS
1431 +dnl GCC_CHECK_TLS
1433 gt_BITFIELD_TYPE_MATTERS
1435 diff -ruN gcc-8.1.0/libobjc/thr.c gcc-8.1.0.aros/libobjc/thr.c
1436 --- gcc-8.1.0/libobjc/thr.c 2018-01-03 10:03:58.000000000 +0000
1437 +++ gcc-8.1.0.aros/libobjc/thr.c 2018-06-24 23:30:25.240834987 +0100
1438 @@ -35,6 +35,7 @@
1439 #include "objc/runtime.h"
1440 #include "objc-private/module-abi-8.h"
1441 #include "objc-private/runtime.h"
1442 +#define __typedef_BOOL /* Remove definition of BOOL */
1443 #include <gthr.h>
1445 #include <stdlib.h>
1446 diff -ruN gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_base.h gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_base.h
1447 --- gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_base.h 1970-01-01 01:00:00.000000000 +0100
1448 +++ gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_base.h 2018-06-24 23:30:25.240834987 +0100
1449 @@ -0,0 +1,30 @@
1450 +namespace std _GLIBCXX_VISIBILITY(default)
1452 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
1454 +struct ctype_base {
1455 + /* Non-standard typedefs */
1456 + typedef int * __to_type;
1458 + /* NB: Offsets into ctype<char>::_M_table force a particular size
1459 + on the mask type. Because of this, we don't use an enum. */
1460 + typedef unsigned short int mask;
1462 + static const mask upper = _ISupper;
1463 + static const mask lower = _ISlower;
1464 + static const mask alpha = _ISalpha;
1465 + static const mask digit = _ISdigit;
1466 + static const mask xdigit = _ISxdigit;
1467 + static const mask space = _ISspace;
1468 + static const mask print = _ISprint;
1469 + static const mask graph = _ISgraph;
1470 + static const mask cntrl = _IScntrl;
1471 + static const mask punct = _ISpunct;
1472 + static const mask alnum = _ISalnum;
1473 +#if __cplusplus >= 201103L
1474 + static const mask blank = _ISblank;
1475 +#endif
1478 +_GLIBCXX_END_NAMESPACE_VERSION
1479 +} // namespace
1480 diff -ruN gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_configure_char.cc gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_configure_char.cc
1481 --- gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_configure_char.cc 1970-01-01 01:00:00.000000000 +0100
1482 +++ gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_configure_char.cc 2018-06-24 23:30:25.240834987 +0100
1483 @@ -0,0 +1,99 @@
1484 +// Locale support -*- C++ -*-
1486 +// Copyright (C) 2011-2013 Free Software Foundation, Inc.
1488 +// This file is part of the GNU ISO C++ Library. This library is free
1489 +// software; you can redistribute it and/or modify it under the
1490 +// terms of the GNU General Public License as published by the
1491 +// Free Software Foundation; either version 3, or (at your option)
1492 +// any later version.
1494 +// This library is distributed in the hope that it will be useful,
1495 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
1496 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1497 +// GNU General Public License for more details.
1499 +// Under Section 7 of GPL version 3, you are granted additional
1500 +// permissions described in the GCC Runtime Library Exception, version
1501 +// 3.1, as published by the Free Software Foundation.
1503 +// You should have received a copy of the GNU General Public License and
1504 +// a copy of the GCC Runtime Library Exception along with this program;
1505 +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
1506 +// <http://www.gnu.org/licenses/>.
1508 +/** @file ctype_configure_char.cc */
1511 +// ISO C++ 14882: 22.1 Locales
1514 +#include <locale>
1515 +#include <cstdlib>
1516 +#include <cstring>
1518 +namespace std _GLIBCXX_VISIBILITY(default)
1520 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
1522 +// Information as gleaned from /usr/include/ctype.h
1524 + const ctype_base::mask*
1525 + ctype<char>::classic_table() throw()
1526 + { return 0; }
1528 + ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
1529 + size_t __refs)
1530 + : facet(__refs), _M_del(__table != 0 && __del),
1531 + _M_toupper(NULL), _M_tolower(NULL),
1532 + _M_table(__table ? __table : classic_table())
1533 + {
1534 + memset(_M_widen, 0, sizeof(_M_widen));
1535 + _M_widen_ok = 0;
1536 + memset(_M_narrow, 0, sizeof(_M_narrow));
1537 + _M_narrow_ok = 0;
1540 + ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
1541 + : facet(__refs), _M_del(__table != 0 && __del),
1542 + _M_toupper(NULL), _M_tolower(NULL),
1543 + _M_table(__table ? __table : classic_table())
1544 + {
1545 + memset(_M_widen, 0, sizeof(_M_widen));
1546 + _M_widen_ok = 0;
1547 + memset(_M_narrow, 0, sizeof(_M_narrow));
1548 + _M_narrow_ok = 0;
1551 + char
1552 + ctype<char>::do_toupper(char __c) const
1553 + { return ::toupper((int) __c); }
1555 + const char*
1556 + ctype<char>::do_toupper(char* __low, const char* __high) const
1558 + while (__low < __high)
1560 + *__low = ::toupper((int) *__low);
1561 + ++__low;
1563 + return __high;
1566 + char
1567 + ctype<char>::do_tolower(char __c) const
1568 + { return ::tolower((int) __c); }
1570 + const char*
1571 + ctype<char>::do_tolower(char* __low, const char* __high) const
1573 + while (__low < __high)
1575 + *__low = ::tolower((int) *__low);
1576 + ++__low;
1578 + return __high;
1581 +_GLIBCXX_END_NAMESPACE_VERSION
1582 +} // namespace
1583 diff -ruN gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_inline.h gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_inline.h
1584 --- gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_inline.h 1970-01-01 01:00:00.000000000 +0100
1585 +++ gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_inline.h 2018-06-24 23:30:25.240834987 +0100
1586 @@ -0,0 +1,173 @@
1587 +// Locale support -*- C++ -*-
1589 +// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
1591 +// This file is part of the GNU ISO C++ Library. This library is free
1592 +// software; you can redistribute it and/or modify it under the
1593 +// terms of the GNU General Public License as published by the
1594 +// Free Software Foundation; either version 2, or (at your option)
1595 +// any later version.
1597 +// This library is distributed in the hope that it will be useful,
1598 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
1599 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1600 +// GNU General Public License for more details.
1602 +// You should have received a copy of the GNU General Public License along
1603 +// with this library; see the file COPYING. If not, write to the Free
1604 +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
1605 +// USA.
1607 +// As a special exception, you may use this file as part of a free software
1608 +// library without restriction. Specifically, if other files instantiate
1609 +// templates or use macros or inline functions from this file, or you compile
1610 +// this file and link it with other files to produce an executable, this
1611 +// file does not by itself cause the resulting executable to be covered by
1612 +// the GNU General Public License. This exception does not however
1613 +// invalidate any other reasons why the executable file might be covered by
1614 +// the GNU General Public License.
1616 +/** @file ctype_inline.h
1617 + * This is an internal header file, included by other library headers.
1618 + * You should not attempt to use it directly.
1619 + */
1622 +// ISO C++ 14882: 22.1 Locales
1625 +// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
1626 +// functions go in ctype.cc
1628 +// The following definitions are portable, but insanely slow. If one
1629 +// cares at all about performance, then specialized ctype
1630 +// functionality should be added for the native os in question: see
1631 +// the config/os/bits/ctype_*.h files.
1633 +// Constructing a synthetic "C" table should be seriously considered...
1635 +namespace std _GLIBCXX_VISIBILITY(default)
1637 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
1639 + bool
1640 + ctype<char>::
1641 + is(mask __m, char __c) const
1642 + {
1643 + if (_M_table)
1644 + return _M_table[static_cast<unsigned char>(__c)] & __m;
1645 + else
1647 + bool __ret = false;
1648 + const size_t __bitmasksize = 15;
1649 + size_t __bitcur = 0; // Lowest bitmask in ctype_base == 0
1650 + for (; __bitcur <= __bitmasksize; ++__bitcur)
1652 + const mask __bit = static_cast<mask>(1 << __bitcur);
1653 + if (__m & __bit)
1655 + bool __testis;
1656 + switch (__bit)
1658 + case space:
1659 + __testis = isspace(__c);
1660 + break;
1661 + case print:
1662 + __testis = isprint(__c);
1663 + break;
1664 + case cntrl:
1665 + __testis = iscntrl(__c);
1666 + break;
1667 + case upper:
1668 + __testis = isupper(__c);
1669 + break;
1670 + case lower:
1671 + __testis = islower(__c);
1672 + break;
1673 + case alpha:
1674 + __testis = isalpha(__c);
1675 + break;
1676 + case digit:
1677 + __testis = isdigit(__c);
1678 + break;
1679 + case punct:
1680 + __testis = ispunct(__c);
1681 + break;
1682 + case xdigit:
1683 + __testis = isxdigit(__c);
1684 + break;
1685 + case alnum:
1686 + __testis = isalnum(__c);
1687 + break;
1688 + case graph:
1689 + __testis = isgraph(__c);
1690 + break;
1691 + default:
1692 + __testis = false;
1693 + break;
1695 + __ret |= __testis;
1698 + return __ret;
1702 + const char*
1703 + ctype<char>::
1704 + is(const char* __low, const char* __high, mask* __vec) const
1706 + if (_M_table)
1707 + while (__low < __high)
1708 + *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
1709 + else
1711 + // Highest bitmask in ctype_base == 10.
1712 + const size_t __bitmasksize = 15;
1713 + for (;__low < __high; ++__vec, ++__low)
1715 + mask __m = 0;
1716 + // Lowest bitmask in ctype_base == 0
1717 + size_t __i = 0;
1718 + for (;__i <= __bitmasksize; ++__i)
1720 + const mask __bit = static_cast<mask>(1 << __i);
1721 + if (this->is(__bit, *__low))
1722 + __m |= __bit;
1724 + *__vec = __m;
1727 + return __high;
1730 + const char*
1731 + ctype<char>::
1732 + scan_is(mask __m, const char* __low, const char* __high) const
1734 + if (_M_table)
1735 + while (__low < __high
1736 + && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
1737 + ++__low;
1738 + else
1739 + while (__low < __high && !this->is(__m, *__low))
1740 + ++__low;
1741 + return __low;
1744 + const char*
1745 + ctype<char>::
1746 + scan_not(mask __m, const char* __low, const char* __high) const
1748 + if (_M_table)
1749 + while (__low < __high
1750 + && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
1751 + ++__low;
1752 + else
1753 + while (__low < __high && this->is(__m, *__low) != 0)
1754 + ++__low;
1755 + return __low;
1758 +_GLIBCXX_END_NAMESPACE_VERSION
1759 +} // namespace
1760 diff -ruN gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_noninline.h gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_noninline.h
1761 --- gcc-8.1.0/libstdc++-v3/config/os/aros/ctype_noninline.h 1970-01-01 01:00:00.000000000 +0100
1762 +++ gcc-8.1.0.aros/libstdc++-v3/config/os/aros/ctype_noninline.h 2018-06-24 23:30:25.240834987 +0100
1763 @@ -0,0 +1,56 @@
1764 + const ctype_base::mask*
1765 + ctype<char>::classic_table() throw()
1766 + { return *__ctype_b_ptr; }
1768 + ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
1769 + size_t __refs)
1770 + : facet(__refs), _M_del(__table != 0 && __del),
1771 + _M_toupper(NULL), _M_tolower(NULL),
1772 + _M_table(__table ? __table : classic_table())
1773 + {
1774 + memset(_M_widen, 0, sizeof(_M_widen));
1775 + _M_widen_ok = 0;
1776 + memset(_M_narrow, 0, sizeof(_M_narrow));
1777 + _M_narrow_ok = 0;
1780 + ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
1781 + : facet(__refs), _M_del(__table != 0 && __del),
1782 + _M_toupper(NULL), _M_tolower(NULL),
1783 + _M_table(__table ? __table : classic_table())
1784 + {
1785 + memset(_M_widen, 0, sizeof(_M_widen));
1786 + _M_widen_ok = 0;
1787 + memset(_M_narrow, 0, sizeof(_M_narrow));
1788 + _M_narrow_ok = 0;
1791 + char
1792 + ctype<char>::do_toupper(char __c) const
1793 + { return ::toupper((int) __c); }
1795 + const char*
1796 + ctype<char>::do_toupper(char* __low, const char* __high) const
1798 + while (__low < __high)
1800 + *__low = ::toupper((int) *__low);
1801 + ++__low;
1803 + return __high;
1806 + char
1807 + ctype<char>::do_tolower(char __c) const
1808 + { return ::tolower((int) __c); }
1810 + const char*
1811 + ctype<char>::do_tolower(char* __low, const char* __high) const
1813 + while (__low < __high)
1815 + *__low = ::tolower((int) *__low);
1816 + ++__low;
1818 + return __high;
1820 diff -ruN gcc-8.1.0/libstdc++-v3/config/os/aros/os_defines.h gcc-8.1.0.aros/libstdc++-v3/config/os/aros/os_defines.h
1821 --- gcc-8.1.0/libstdc++-v3/config/os/aros/os_defines.h 1970-01-01 01:00:00.000000000 +0100
1822 +++ gcc-8.1.0.aros/libstdc++-v3/config/os/aros/os_defines.h 2018-06-24 23:30:25.240834987 +0100
1823 @@ -0,0 +1,11 @@
1824 +// Specific definitions for AROS -*- C++ -*-
1826 +#ifndef _GLIBCXX_OS_DEFINES
1827 +#define _GLIBCXX_OS_DEFINES
1829 +#define __off64_t off_t
1831 +// No support for referencing weak symbols without a definition.
1832 +#define _GLIBCXX_USE_WEAK_REF 0
1834 +#endif
1835 diff -ruN gcc-8.1.0/libstdc++-v3/configure gcc-8.1.0.aros/libstdc++-v3/configure
1836 --- gcc-8.1.0/libstdc++-v3/configure 2018-04-24 17:45:26.000000000 +0100
1837 +++ gcc-8.1.0.aros/libstdc++-v3/configure 2018-06-24 23:30:25.240834987 +0100
1838 @@ -5375,12 +5375,12 @@
1841 # Libtool setup.
1842 -if test "x${with_newlib}" != "xyes"; then
1843 - enable_dlopen=yes
1848 +#if test "x${with_newlib}" != "xyes"; then
1849 +# AC_LIBTOOL_DLOPEN
1853 +#fi
1854 case `pwd` in
1855 *\ * | *\ *)
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1857 @@ -8111,6 +8111,8 @@
1861 + enable_dlopen=no
1864 enable_win32_dll=no
1866 @@ -19651,6 +19653,7 @@
1868 struct iovec iov[2];
1869 writev(0, iov, 0);
1870 +#error be sure to fail
1872 return 0;
1874 @@ -19673,6 +19676,7 @@
1876 struct iovec iov[2];
1877 writev(0, iov, 0);
1878 +#error be sure to fail
1880 return 0;
1882 @@ -28973,6 +28977,58 @@
1884 # Base decisions on target environment.
1885 case "${host}" in
1886 + *-aros*)
1887 + for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
1888 + machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h
1889 +do :
1890 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1891 +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1892 +eval as_val=\$$as_ac_Header
1893 + if test "x$as_val" = x""yes; then :
1894 + cat >>confdefs.h <<_ACEOF
1895 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1896 +_ACEOF
1900 +done
1903 + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
1904 + GLIBCXX_CHECK_WCHAR_T_SUPPORT
1906 + $as_echo "#define HAVE_FINITE 1" >>confdefs.h
1908 + $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
1910 + $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
1912 + $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
1914 + $as_echo "#define HAVE_ISINF 1" >>confdefs.h
1916 + $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
1918 + $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
1920 + $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
1922 + $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
1924 + $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
1926 + if test x"long_double_math_on_this_cpu" = x"yes"; then
1927 + $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
1929 + $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
1931 + $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
1933 + $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
1935 + fi
1936 + ;;
1938 arm*-*-symbianelf*)
1939 # This is a freestanding configuration; there is nothing to do here.
1941 diff -ruN gcc-8.1.0/libstdc++-v3/configure.ac gcc-8.1.0.aros/libstdc++-v3/configure.ac
1942 --- gcc-8.1.0/libstdc++-v3/configure.ac 2018-02-15 20:56:41.000000000 +0000
1943 +++ gcc-8.1.0.aros/libstdc++-v3/configure.ac 2018-06-24 23:30:25.240834987 +0100
1944 @@ -89,9 +89,9 @@
1945 GLIBCXX_CONFIGURE
1947 # Libtool setup.
1948 -if test "x${with_newlib}" != "xyes"; then
1949 - AC_LIBTOOL_DLOPEN
1951 +#if test "x${with_newlib}" != "xyes"; then
1952 +# AC_LIBTOOL_DLOPEN
1953 +#fi
1954 AM_PROG_LIBTOOL
1955 ACX_LT_HOST_FLAGS
1956 AC_SUBST(enable_shared)
1957 diff -ruN gcc-8.1.0/libstdc++-v3/configure.host gcc-8.1.0.aros/libstdc++-v3/configure.host
1958 --- gcc-8.1.0/libstdc++-v3/configure.host 2017-02-02 16:24:03.000000000 +0000
1959 +++ gcc-8.1.0.aros/libstdc++-v3/configure.host 2018-06-24 23:30:25.240834987 +0100
1960 @@ -222,6 +222,9 @@
1961 os_include_dir="os/generic"
1962 atomicity_dir="cpu/generic"
1964 + aros*)
1965 + os_include_dir="os/aros"
1966 + ;;
1967 bsd*)
1968 # Plain BSD attempts to share FreeBSD files.
1969 os_include_dir="os/bsd/freebsd"
1970 diff -ruN gcc-8.1.0/libstdc++-v3/crossconfig.m4 gcc-8.1.0.aros/libstdc++-v3/crossconfig.m4
1971 --- gcc-8.1.0/libstdc++-v3/crossconfig.m4 2018-03-12 22:52:16.000000000 +0000
1972 +++ gcc-8.1.0.aros/libstdc++-v3/crossconfig.m4 2018-06-24 23:30:25.240834987 +0100
1973 @@ -5,6 +5,31 @@
1974 AC_DEFUN([GLIBCXX_CROSSCONFIG],[
1975 # Base decisions on target environment.
1976 case "${host}" in
1977 + *-aros*)
1978 + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
1979 + machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h])
1981 + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
1982 + GLIBCXX_CHECK_WCHAR_T_SUPPORT
1984 + AC_DEFINE(HAVE_FINITE)
1985 + AC_DEFINE(HAVE_FINITEF)
1986 + AC_DEFINE(HAVE_FREXPF)
1987 + AC_DEFINE(HAVE_HYPOTF)
1988 + AC_DEFINE(HAVE_ISINF)
1989 + AC_DEFINE(HAVE_ISINFF)
1990 + AC_DEFINE(HAVE_ISNAN)
1991 + AC_DEFINE(HAVE_ISNANF)
1992 + AC_DEFINE(HAVE_SINCOS)
1993 + AC_DEFINE(HAVE_SINCOSF)
1994 + if test x"long_double_math_on_this_cpu" = x"yes"; then
1995 + AC_DEFINE(HAVE_FINITEL)
1996 + AC_DEFINE(HAVE_HYPOTL)
1997 + AC_DEFINE(HAVE_ISINFL)
1998 + AC_DEFINE(HAVE_ISNANL)
1999 + fi
2000 + ;;
2002 arm*-*-symbianelf*)
2003 # This is a freestanding configuration; there is nothing to do here.
2005 diff -ruN gcc-8.1.0/libstdc++-v3/include/c_global/cstdint gcc-8.1.0.aros/libstdc++-v3/include/c_global/cstdint
2006 --- gcc-8.1.0/libstdc++-v3/include/c_global/cstdint 2018-01-03 10:03:58.000000000 +0000
2007 +++ gcc-8.1.0.aros/libstdc++-v3/include/c_global/cstdint 2018-06-24 23:30:25.240834987 +0100
2008 @@ -41,7 +41,7 @@
2009 # include <stdint.h>
2010 #endif
2012 -#ifdef _GLIBCXX_USE_C99_STDINT_TR1
2013 +#if defined(_GLIBCXX_USE_C99_STDINT_TR1)
2015 namespace std
2017 @@ -74,8 +74,10 @@
2018 using ::uint_fast64_t;
2020 using ::uint_least8_t;
2021 +#if !defined (__UINT_LEAST16_TYPE__) || !defined(__UINT_LEAST32_TYPE__)
2022 using ::uint_least16_t;
2023 using ::uint_least32_t;
2024 +#endif
2025 using ::uint_least64_t;
2027 using ::uintmax_t;
2028 diff -ruN gcc-8.1.0/libstdc++-v3/include/Makefile.in gcc-8.1.0.aros/libstdc++-v3/include/Makefile.in
2029 --- gcc-8.1.0/libstdc++-v3/include/Makefile.in 2018-02-15 20:56:41.000000000 +0000
2030 +++ gcc-8.1.0.aros/libstdc++-v3/include/Makefile.in 2018-06-24 23:30:25.240834987 +0100
2031 @@ -1711,6 +1711,7 @@
2032 -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
2033 -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
2034 -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \
2035 + -e 's/_GLIBCXX___AROS__/__AROS__/g' \
2036 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
2037 < $< > $@
2039 diff -ruN gcc-8.1.0/libstdc++-v3/include/std/ratio gcc-8.1.0.aros/libstdc++-v3/include/std/ratio
2040 --- gcc-8.1.0/libstdc++-v3/include/std/ratio 2018-01-03 10:03:58.000000000 +0000
2041 +++ gcc-8.1.0.aros/libstdc++-v3/include/std/ratio 2018-06-24 23:30:25.240834987 +0100
2042 @@ -211,10 +211,10 @@
2044 private:
2045 static_assert(__d != 0, "Internal library error");
2046 - static_assert(sizeof (uintmax_t) == sizeof (unsigned long long),
2047 - "This library calls __builtin_clzll on uintmax_t, which "
2048 - "is unsafe on your platform. Please complain to "
2049 - "http://gcc.gnu.org/bugzilla/");
2050 +// static_assert(sizeof (uintmax_t) == sizeof (unsigned long long),
2051 +// "This library calls __builtin_clzll on uintmax_t, which "
2052 +// "is unsafe on your platform. Please complain to "
2053 +// "http://gcc.gnu.org/bugzilla/");
2054 static constexpr int __shift = __builtin_clzll(__d);
2055 static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift;
2056 static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0;