1 diff -ruN gcc-5-20150208/boehm-gc/include/gc_amiga_redirects.h gcc-5-20150208.aros/boehm-gc/include/gc_amiga_redirects.h
2 --- gcc-5-20150208/boehm-gc/include/gc_amiga_redirects.h 2001-08-17 19:30:51.000000000 +0100
3 +++ gcc-5-20150208.aros/boehm-gc/include/gc_amiga_redirects.h 2015-02-11 12:11:29.591059272 +0000
6 # define GC_AMIGA_REDIRECTS_H
8 -# if ( defined(_AMIGA) && !defined(GC_AMIGA_MAKINGLIB) )
9 +# if !defined(__AROS__) && ( defined(_AMIGA) && !defined(GC_AMIGA_MAKINGLIB) )
10 extern void *GC_amiga_realloc(void *old_object,size_t new_size_in_bytes);
11 # define GC_realloc(a,b) GC_amiga_realloc(a,b)
12 extern void GC_amiga_set_toany(void (*func)(void));
13 diff -ruN gcc-5-20150208/boehm-gc/include/gc.h gcc-5-20150208.aros/boehm-gc/include/gc.h
14 --- gcc-5-20150208/boehm-gc/include/gc.h 2014-10-23 09:39:19.000000000 +0100
15 +++ gcc-5-20150208.aros/boehm-gc/include/gc.h 2015-02-11 12:11:10.150863455 +0000
17 GC_API void GC_win32_free_heap ();
20 -#if ( defined(_AMIGA) && !defined(GC_AMIGA_MAKINGLIB) )
21 +#if !defined(__AROS__) && ( defined(_AMIGA) && !defined(GC_AMIGA_MAKINGLIB) )
22 /* Allocation really goes through GC_amiga_allocwrapper_do */
23 # include "gc_amiga_redirects.h"
25 diff -ruN gcc-5-20150208/configure gcc-5-20150208.aros/configure
26 --- gcc-5-20150208/configure 2015-01-09 21:23:09.000000000 +0000
27 +++ gcc-5-20150208.aros/configure 2015-02-08 21:24:55.289352061 +0000
30 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
33 + noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv gdb"
36 noconfigdirs="$noconfigdirs gdb"
40 host_makefile_frag="config/mh-ppc-aix"
47 diff -ruN gcc-5-20150208/configure.ac gcc-5-20150208.aros/configure.ac
48 --- gcc-5-20150208/configure.ac 2015-01-09 21:23:09.000000000 +0000
49 +++ gcc-5-20150208.aros/configure.ac 2015-02-08 21:24:55.289352061 +0000
52 noconfigdirs="$noconfigdirs gdb sim tcl tk itcl"
55 + noconfigdirs="$noconfigdirs patch diff make tk tcl expect dejagnu autoconf automake texinfo bison send-pr gprof rcs guile perl itcl tix gnuserv gdb"
58 noconfigdirs="$noconfigdirs gdb"
62 host_makefile_frag="config/mh-ppc-aix"
69 diff -ruN gcc-5-20150208/fixincludes/configure gcc-5-20150208.aros/fixincludes/configure
70 --- gcc-5-20150208/fixincludes/configure 2012-05-29 20:28:57.000000000 +0100
71 +++ gcc-5-20150208.aros/fixincludes/configure 2015-02-08 21:24:55.289352061 +0000
77 i?86-*-msdosdjgpp* | \
80 diff -ruN gcc-5-20150208/fixincludes/configure.ac gcc-5-20150208.aros/fixincludes/configure.ac
81 --- gcc-5-20150208/fixincludes/configure.ac 2012-05-29 20:28:57.000000000 +0100
82 +++ gcc-5-20150208.aros/fixincludes/configure.ac 2015-02-08 21:24:55.289352061 +0000
88 i?86-*-msdosdjgpp* | \
91 diff -ruN gcc-5-20150208/gcc/config/arm/aros.h gcc-5-20150208.aros/gcc/config/arm/aros.h
92 --- gcc-5-20150208/gcc/config/arm/aros.h 1970-01-01 01:00:00.000000000 +0100
93 +++ gcc-5-20150208.aros/gcc/config/arm/aros.h 2015-02-08 21:24:55.289352061 +0000
95 +/* Configuration file for ARM AROS EABI targets.
96 + Copyright (C) 2004, 2005, 2006, 2007, 2010
97 + Free Software Foundation, Inc.
98 + Contributed by Pavel Fedin
99 + Based on linux-eabi.h and other AROS targets
101 + This file is part of GCC.
103 + GCC is free software; you can redistribute it and/or modify it
104 + under the terms of the GNU General Public License as published
105 + by the Free Software Foundation; either version 3, or (at your
106 + option) any later version.
108 + GCC is distributed in the hope that it will be useful, but WITHOUT
109 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
110 + or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
111 + License for more details.
113 + You should have received a copy of the GNU General Public License
114 + along with GCC; see the file COPYING3. If not see
115 + <http://www.gnu.org/licenses/>. */
117 +/* On EABI GNU/Linux, we want both the BPABI builtins and the
118 + GNU/Linux builtins. */
119 +#undef TARGET_OS_CPP_BUILTINS
120 +#define TARGET_OS_CPP_BUILTINS() \
123 + TARGET_BPABI_CPP_BUILTINS(); \
124 + builtin_define_std ("AROS"); \
125 + builtin_define ("AMIGA"); \
126 + builtin_define ("_AMIGA"); \
127 + builtin_assert ("system=posix"); \
130 + builtin_define ("__PIC__"); \
131 + builtin_define ("__pic__"); \
136 +/* We default to a softfp ABI so that we are compatible
137 + with the Linux EABI (as used by the linker). */
138 +#undef TARGET_DEFAULT_FLOAT_ABI
139 +#define TARGET_DEFAULT_FLOAT_ABI ARM_FLOAT_ABI_SOFTFP
141 +/* We default to the "aapcs-linux" ABI so that enums are int-sized by
143 +#undef ARM_DEFAULT_ABI
144 +#define ARM_DEFAULT_ABI ARM_ABI_AAPCS_LINUX
146 +/* Default to armv5t so that thumb shared libraries work.
147 + The ARM10TDMI core is the default for armv5t, so set
148 + SUBTARGET_CPU_DEFAULT to achieve this. */
149 +#undef SUBTARGET_CPU_DEFAULT
150 +#define SUBTARGET_CPU_DEFAULT TARGET_CPU_arm10tdmi
152 +/* TARGET_BIG_ENDIAN_DEFAULT is set in
153 + config.gcc for big endian configurations. */
154 +#undef TARGET_LINKER_EMULATION
155 +#if TARGET_BIG_ENDIAN_DEFAULT
156 +#define TARGET_LINKER_EMULATION "armelfb_aros"
158 +#define TARGET_LINKER_EMULATION "armelf_aros"
161 +#undef SUBTARGET_CPP_SPEC
162 +#define SUBTARGET_CPP_SPEC "-D__ELF__ %{!nostdinc:-isystem %R/include%{!nostdc:%{!noposixc: -isystem %R/include/aros/posixc} -isystem %R/include/aros/stdc}}"
164 +#undef SUBTARGET_EXTRA_LINK_SPEC
165 +#define SUBTARGET_EXTRA_LINK_SPEC " -m " TARGET_LINKER_EMULATION
167 +/* Provide a LINK_SPEC appropriate for AROS. */
169 +#define LINK_SPEC "-m armelf_aros -L %R/lib"
171 +/* Use own supplement to libgcc. */
173 +#define LIBGCC_SPEC "-laeabi -lgcc"
175 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
176 +#undef MD_FALLBACK_FRAME_STATE_FOR
177 diff -ruN gcc-5-20150208/gcc/config/arm/t-aros gcc-5-20150208.aros/gcc/config/arm/t-aros
178 --- gcc-5-20150208/gcc/config/arm/t-aros 1970-01-01 01:00:00.000000000 +0100
179 +++ gcc-5-20150208.aros/gcc/config/arm/t-aros 2015-02-08 21:24:55.289352061 +0000
181 +# Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
182 +# 2008, 2010 Free Software Foundation, Inc.
184 +# This file is part of GCC.
186 +# GCC is free software; you can redistribute it and/or modify
187 +# it under the terms of the GNU General Public License as published by
188 +# the Free Software Foundation; either version 3, or (at your option)
189 +# any later version.
191 +# GCC is distributed in the hope that it will be useful,
192 +# but WITHOUT ANY WARRANTY; without even the implied warranty of
193 +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
194 +# GNU General Public License for more details.
196 +# You should have received a copy of the GNU General Public License
197 +# along with GCC; see the file COPYING3. If not see
198 +# <http://www.gnu.org/licenses/>.
200 +MULTILIB_OPTIONS = marm mfloat-abi=hard
201 +MULTILIB_DIRNAMES = arm fpu
202 diff -ruN gcc-5-20150208/gcc/config/aros.h gcc-5-20150208.aros/gcc/config/aros.h
203 --- gcc-5-20150208/gcc/config/aros.h 1970-01-01 01:00:00.000000000 +0100
204 +++ gcc-5-20150208.aros/gcc/config/aros.h 2015-02-08 21:24:55.289352061 +0000
206 +/* Definitions for AROS
207 + Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
208 + Contributed by Fabio Alemagna
209 + Based upon linux.h, contributed by Eric Youngdale.
211 +This file is part of GNU CC.
213 +GNU CC is free software; you can redistribute it and/or modify
214 +it under the terms of the GNU General Public License as published by
215 +the Free Software Foundation; either version 2, or (at your option)
218 +GNU CC is distributed in the hope that it will be useful,
219 +but WITHOUT ANY WARRANTY; without even the implied warranty of
220 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
221 +GNU General Public License for more details.
223 +You should have received a copy of the GNU General Public License
224 +along with GNU CC; see the file COPYING. If not, write to
225 +the Free Software Foundation, 59 Temple Place - Suite 330,
226 +Boston, MA 02111-1307, USA. */
228 +/* Don't assume anything about the header files. */
229 +#define NO_IMPLICIT_EXTERN_C
232 +#define SIZE_TYPE "long unsigned int"
235 +#define WCHAR_TYPE "char"
237 +#undef WCHAR_TYPE_SIZE
238 +#define WCHAR_TYPE_SIZE 8
241 +#define PTRDIFF_TYPE "long int"
243 +#undef TARGET_OS_CPP_BUILTINS
244 +#define TARGET_OS_CPP_BUILTINS() \
247 + builtin_define_std ("AROS"); \
248 + builtin_define ("AMIGA"); \
249 + builtin_define ("_AMIGA"); \
250 + builtin_define ("__ELF__"); \
251 + builtin_assert ("system=posix"); \
256 +#define ASM_APP_ON "#APP\n"
259 +#define ASM_APP_OFF "#NO_APP\n"
261 +#undef MD_EXEC_PREFIX
262 +#undef MD_STARTFILE_PREFIX
264 +/* Provide a STARTFILE_SPEC appropriate for AROS. AROS has its own
265 + set of startup files which also take care of handling C++
266 + constructors/destructors. */
268 +#undef STARTFILE_SPEC
269 +#define STARTFILE_SPEC \
270 + "startup.o%s %{detach:detach.o%s} %{nix:nixmain.o%s}"
272 +/* Provide a ENDFILE_SPEC appropriate for AROS. */
275 +#define ENDFILE_SPEC \
278 +/* The compiler is configured with ONLY the gcc/g++ standard headers.
279 + N.B-: STANDARD_INCLUDE_DIR must come before GCC_INCLUDE_DIR on AROS */
280 +#undef INCLUDE_DEFAULTS
281 +#define INCLUDE_DEFAULTS \
283 + { GPLUSPLUS_INCLUDE_DIR, "G++", 1, 1, GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, \
284 + { GPLUSPLUS_TOOL_INCLUDE_DIR, "G++", 1, 1, GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 1 }, \
285 + { GPLUSPLUS_BACKWARD_INCLUDE_DIR, "G++", 1, 1, GPLUSPLUS_INCLUDE_DIR_ADD_SYSROOT, 0 }, \
286 + { NATIVE_SYSTEM_HEADER_DIR, NATIVE_SYSTEM_HEADER_COMPONENT, 0, 0, 1, 0 }, \
287 + { GCC_INCLUDE_DIR, "GCC", 0, 0, 0, 0 }, \
288 + { 0, 0, 0, 0, 0, 0 } \
292 +#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:-isystem %R/include/aros/posixc} -isystem %R/include/aros/stdc} -isystem %R/include}"
294 +/* This is for -profile to use -lc_p instead of -lc. */
296 +#define CC1_SPEC "%{profile:-p}"
299 +/* The GNU C++ standard library requires that these macros be defined. */
300 +#undef CPLUSPLUS_CPP_SPEC
301 +#define CPLUSPLUS_CPP_SPEC "-D_GNU_SOURCE %(cpp)"
305 + "--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"
307 +#undef LIBSTDCXX_STATIC
308 +#define LIBSTDCXX_STATIC "pthread"
310 +#if !defined(USE_GNULIBC_1) && defined(HAVE_LD_EH_FRAME_HDR)
311 +#define LINK_EH_SPEC "%{!static:--eh-frame-hdr} "
314 +/* AROS uses its own collect-like program for the moment. */
316 +#define LINKER_NAME "collect-aros"
318 +#define TARGET_HAS_F_SETLKW
319 diff -ruN gcc-5-20150208/gcc/config/aros.opt gcc-5-20150208.aros/gcc/config/aros.opt
320 --- gcc-5-20150208/gcc/config/aros.opt 1970-01-01 01:00:00.000000000 +0100
321 +++ gcc-5-20150208.aros/gcc/config/aros.opt 2015-02-08 21:24:55.289352061 +0000
323 +; Processor-independent options for AROS.
325 +; Copyright (C) 2015 Free Software Foundation, Inc.
327 +; This file is part of GCC.
329 +; GCC is free software; you can redistribute it and/or modify it under
330 +; the terms of the GNU General Public License as published by the Free
331 +; Software Foundation; either version 3, or (at your option) any later
334 +; GCC is distributed in the hope that it will be useful, but WITHOUT ANY
335 +; WARRANTY; without even the implied warranty of MERCHANTABILITY or
336 +; FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
339 +; You should have received a copy of the GNU General Public License
340 +; along with GCC; see the file COPYING3. If not see
341 +; <http://www.gnu.org/licenses/>.
358 diff -ruN gcc-5-20150208/gcc/config/i386/aros64.h gcc-5-20150208.aros/gcc/config/i386/aros64.h
359 --- gcc-5-20150208/gcc/config/i386/aros64.h 1970-01-01 01:00:00.000000000 +0100
360 +++ gcc-5-20150208.aros/gcc/config/i386/aros64.h 2015-02-08 21:24:55.289352061 +0000
362 +/* Definitions for AMD x86_64 running AROS systems with ELF64 format.
363 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
364 + Free Software Foundation, Inc.
365 + Contributed by Stanislaw Szymczyk <sszymczy@gmail.com>. Based on aros.h.
367 +This file is part of GNU CC.
369 +GNU CC is free software; you can redistribute it and/or modify
370 +it under the terms of the GNU General Public License as published by
371 +the Free Software Foundation; either version 2, or (at your option)
374 +GNU CC is distributed in the hope that it will be useful,
375 +but WITHOUT ANY WARRANTY; without even the implied warranty of
376 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
377 +GNU General Public License for more details.
379 +You should have received a copy of the GNU General Public License
380 +along with GNU CC; see the file COPYING. If not, write to
381 +the Free Software Foundation, 59 Temple Place - Suite 330,
382 +Boston, MA 02111-1307, USA. */
384 +/* The svr4 ABI for the i386 says that records and unions are returned
385 + in memory. In the 64bit compilation we will turn this flag off in
386 + override_options, as we never do pcc_struct_return scheme on this target. */
387 +#undef DEFAULT_PCC_STRUCT_RETURN
388 +#define DEFAULT_PCC_STRUCT_RETURN 1
390 +/* Provide a LINK_SPEC appropriate for AROS. */
393 +#define LINK_SPEC "%{!m32:-m elf_x86_64} %{m32:-m elf_i386} -L %R/lib"
395 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
396 diff -ruN gcc-5-20150208/gcc/config/i386/aros.h gcc-5-20150208.aros/gcc/config/i386/aros.h
397 --- gcc-5-20150208/gcc/config/i386/aros.h 1970-01-01 01:00:00.000000000 +0100
398 +++ gcc-5-20150208.aros/gcc/config/i386/aros.h 2015-02-08 21:24:55.289352061 +0000
400 +/* Definitions for Intel 386 running AROS systems with ELF format.
401 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
402 + Free Software Foundation, Inc.
403 + Contributed by Fabio Alemagna.
404 + Based upon i386/linux.h by Eric Youngdale.
406 +This file is part of GNU CC.
408 +GNU CC is free software; you can redistribute it and/or modify
409 +it under the terms of the GNU General Public License as published by
410 +the Free Software Foundation; either version 2, or (at your option)
413 +GNU CC is distributed in the hope that it will be useful,
414 +but WITHOUT ANY WARRANTY; without even the implied warranty of
415 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
416 +GNU General Public License for more details.
418 +You should have received a copy of the GNU General Public License
419 +along with GNU CC; see the file COPYING. If not, write to
420 +the Free Software Foundation, 59 Temple Place - Suite 330,
421 +Boston, MA 02111-1307, USA. */
424 +#define LINK_SPEC "-m elf_i386 -L%R/lib"
425 diff -ruN gcc-5-20150208/gcc/config/m68k/m68k.c gcc-5-20150208.aros/gcc/config/m68k/m68k.c
426 --- gcc-5-20150208/gcc/config/m68k/m68k.c 2015-01-15 13:28:42.000000000 +0000
427 +++ gcc-5-20150208.aros/gcc/config/m68k/m68k.c 2015-02-08 21:24:55.289352061 +0000
428 @@ -4469,7 +4469,7 @@
429 else if (letter == '/')
430 asm_fprintf (file, "%R");
431 else if (letter == '?')
432 - asm_fprintf (file, m68k_library_id_string);
433 + asm_fprintf (file, "%s", m68k_library_id_string);
434 else if (letter == 'p')
436 output_addr_const (file, op);
437 diff -ruN gcc-5-20150208/gcc/config/m68k/m68k.h gcc-5-20150208.aros/gcc/config/m68k/m68k.h
438 --- gcc-5-20150208/gcc/config/m68k/m68k.h 2015-01-05 12:33:28.000000000 +0000
439 +++ gcc-5-20150208.aros/gcc/config/m68k/m68k.h 2015-02-08 21:24:55.289352061 +0000
441 register elimination. */
442 #define FIRST_PSEUDO_REGISTER 25
444 -/* All m68k targets (except AmigaOS) use %a5 as the PIC register */
445 +/* All m68k targets (except AmigaOS) use %a5 as the PIC register.
446 + * On AmigaOS, we use %a4
448 #define PIC_OFFSET_TABLE_REGNUM \
449 (!flag_pic ? INVALID_REGNUM \
450 : reload_completed ? REGNO (pic_offset_table_rtx) \
452 /* Most m68k targets use %a6 as a frame pointer. The AmigaOS
453 ABI uses %a6 for shared library calls, therefore the frame
454 pointer is shifted to %a5 on this target. */
455 -#define FRAME_POINTER_REGNUM A6_REG
456 +#define FRAME_POINTER_REGNUM A5_REG
457 +#define PIC_REG A4_REG
459 /* Base register for access to arguments of the function.
460 * This isn't a hardware register. It will be eliminated to the
461 diff -ruN gcc-5-20150208/gcc/config/m68k/m68k.md gcc-5-20150208.aros/gcc/config/m68k/m68k.md
462 --- gcc-5-20150208/gcc/config/m68k/m68k.md 2015-01-22 21:24:28.000000000 +0000
463 +++ gcc-5-20150208.aros/gcc/config/m68k/m68k.md 2015-02-08 21:24:55.289352061 +0000
474 @@ -7093,7 +7094,7 @@
476 if (TARGET_ID_SHARED_LIBRARY)
478 - operands[1] = gen_rtx_REG (Pmode, PIC_REG);
479 + operands[1] = gen_rtx_REG (Pmode, A4_REG);
480 return MOTOROLA ? "move.l %?(%1),%0" : "movel %1@(%?), %0";
483 diff -ruN gcc-5-20150208/gcc/config/m68k/t-aros gcc-5-20150208.aros/gcc/config/m68k/t-aros
484 --- gcc-5-20150208/gcc/config/m68k/t-aros 1970-01-01 01:00:00.000000000 +0100
485 +++ gcc-5-20150208.aros/gcc/config/m68k/t-aros 2015-02-08 21:24:55.289352061 +0000
487 +# Custom multilibs for AROS
488 +M68K_MLIB_CPU += && match(MLIB, "^68")
489 diff -ruN gcc-5-20150208/gcc/config/rs6000/aros.h gcc-5-20150208.aros/gcc/config/rs6000/aros.h
490 --- gcc-5-20150208/gcc/config/rs6000/aros.h 1970-01-01 01:00:00.000000000 +0100
491 +++ gcc-5-20150208.aros/gcc/config/rs6000/aros.h 2015-02-08 21:24:55.289352061 +0000
493 +/* Definitions for Powerpc running AROS systems with ELF format.
494 + Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2001, 2002
495 + Free Software Foundation, Inc.
496 + Contributed by Markus Weiss.
497 + Based upon i386/aros.h by Fabio Alemagna.
499 +This file is part of GNU CC.
501 +GNU CC is free software; you can redistribute it and/or modify
502 +it under the terms of the GNU General Public License as published by
503 +the Free Software Foundation; either version 2, or (at your option)
506 +GNU CC is distributed in the hope that it will be useful,
507 +but WITHOUT ANY WARRANTY; without even the implied warranty of
508 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
509 +GNU General Public License for more details.
511 +You should have received a copy of the GNU General Public License
512 +along with GNU CC; see the file COPYING. If not, write to
513 +the Free Software Foundation, 59 Temple Place - Suite 330,
514 +Boston, MA 02111-1307, USA. */
516 +/* Symbols missing in comparison to i386/aros.h are either
517 + defined in elfos.h, rs6000/rs6000.h rs6000/sysv4.h
518 + or not needed for PowerPC.
521 +/* We need to define __powerpc__. */
523 +#undef TARGET_OS_CPP_BUILTINS
524 +#define TARGET_OS_CPP_BUILTINS() \
527 + builtin_define_std ("AROS"); \
528 + builtin_define ("AMIGA"); \
529 + builtin_define ("_AMIGA"); \
530 + builtin_define ("__powerpc__"); \
531 + builtin_define ("__ELF__"); \
532 + builtin_assert ("system=posix"); \
535 + builtin_define ("__PIC__"); \
536 + builtin_define ("__pic__"); \
541 +/* This one taken from linux.h. */
542 +/* We are 32-bit all the time, so optimize a little. */
544 +#define TARGET_64BIT 0
546 +/* The svr4 ABI for the i386 says that records and unions are returned
548 +/*#undef DEFAULT_PCC_STRUCT_RETURN
549 +#define DEFAULT_PCC_STRUCT_RETURN 1
554 +#undef ASM_COMMENT_START
555 +#define ASM_COMMENT_START "#"
560 +#undef DBX_REGISTER_NUMBER
561 +#define DBX_REGISTER_NUMBER(n) \
562 + (TARGET_64BIT ? dbx64_register_map[n] : svr4_dbx_register_map[n])
566 +/* Output assembler code to FILE to call the profiler.
567 + To the best of my knowledge, no Linux libc has required the label
568 + argument to mcount. */
571 +#define NO_PROFILE_COUNTERS 1
572 +not used by other similar ppc compilers
573 +only in darwin.h rs6000/linux64.h rs6000/rs6000.c
578 +#define MCOUNT_NAME "mcount"
579 +see rs6000/sysv4.h RS6000_MCOUNT
582 +/* The GLIBC version of mcount for the x86 assumes that there is a
583 + frame, so we cannot allow profiling without a frame pointer. */
585 +#undef SUBTARGET_FRAME_POINTER_REQUIRED
586 +#define SUBTARGET_FRAME_POINTER_REQUIRED crtl->profile
587 +seems to be handled by rs6000/rs6000.h
591 +#define CC1_SPEC "%(cc1_cpu) %{profile:-p}"
593 +/* Provide a LINK_SPEC appropriate for AROS. */
596 +#define LINK_SPEC "-m elf32ppc -L %R/lib"
598 +/* A C statement (sans semicolon) to output to the stdio stream
599 + FILE the assembler definition of uninitialized global DECL named
600 + NAME whose size is SIZE bytes and alignment is ALIGN bytes.
601 + Try to use asm_output_aligned_bss to implement this macro. */
603 +#define ASM_OUTPUT_ALIGNED_BSS(FILE, DECL, NAME, SIZE, ALIGN) \
604 + asm_output_aligned_bss (FILE, DECL, NAME, SIZE, ALIGN)
608 +/* A C statement to output to the stdio stream FILE an assembler
609 + command to advance the location counter to a multiple of 1<<LOG
610 + bytes if it is within MAX_SKIP bytes.
612 + This is used to align code labels according to Intel recommendations. */
614 +#ifdef HAVE_GAS_MAX_SKIP_P2ALIGN
615 +#define ASM_OUTPUT_MAX_SKIP_ALIGN(FILE,LOG,MAX_SKIP) \
617 + if ((LOG) != 0) { \
618 + if ((MAX_SKIP) == 0) fprintf ((FILE), "\t.p2align %d\n", (LOG)); \
619 + else fprintf ((FILE), "\t.p2align %d,,%d\n", (LOG), (MAX_SKIP)); \
626 +/* Handle special EH pointer encodings. Absolute, pc-relative, and
627 + indirect are handled automatically. */
629 +#define ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX(FILE, ENCODING, SIZE, ADDR, DONE) \
631 + if ((SIZE) == 4 && ((ENCODING) & 0x70) == DW_EH_PE_datarel) \
633 + fputs (ASM_LONG, FILE); \
634 + assemble_name (FILE, XSTR (ADDR, 0)); \
635 + fputs (((ENCODING) & DW_EH_PE_indirect ? "@GOT" : "@GOTOFF"), FILE); \
639 +not used for PowerPC
642 +/* FIXME: AROS doesn't support dw2 unwinding yet. */
643 +#undef MD_FALLBACK_FRAME_STATE_FOR
644 diff -ruN gcc-5-20150208/gcc/config/rs6000/rs6000.c gcc-5-20150208.aros/gcc/config/rs6000/rs6000.c
645 --- gcc-5-20150208/gcc/config/rs6000/rs6000.c 2015-01-23 23:02:25.000000000 +0000
646 +++ gcc-5-20150208.aros/gcc/config/rs6000/rs6000.c 2015-02-08 21:24:55.289352061 +0000
647 @@ -1316,6 +1316,8 @@
649 { "shortcall", 0, 0, false, true, true, rs6000_handle_longcall_attribute,
651 + { "stackparm", 0, 0, false, true, true, rs6000_handle_longcall_attribute,
653 { "ms_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute,
655 { "gcc_struct", 0, 0, false, false, false, rs6000_handle_struct_attribute,
656 @@ -9269,6 +9271,9 @@
657 && !lookup_attribute ("shortcall", TYPE_ATTRIBUTES (fntype))))
658 cum->call_cookie |= CALL_LONG;
660 + cum->stackparm = fntype && lookup_attribute("stackparm",
661 + TYPE_ATTRIBUTES(fntype));
663 if (TARGET_DEBUG_ARG)
665 fprintf (stderr, "\ninit_cumulative_args:");
666 @@ -10404,6 +10409,9 @@
668 rs6000_discover_homogeneous_aggregate (mode, type, &elt_mode, &n_elts);
670 + if (cum->stackparm)
673 if (TARGET_MACHO && rs6000_darwin64_struct_check_p (mode, type))
675 rtx rslt = rs6000_darwin64_record_arg (cum, type, named, /*retval= */false);
676 @@ -11006,6 +11014,9 @@
677 int first_reg_offset;
680 + if (cum->stackparm)
683 /* Skip the last named argument. */
684 next_cum = *get_cumulative_args (cum);
685 rs6000_function_arg_advance_1 (&next_cum, mode, type, true, 0);
686 diff -ruN gcc-5-20150208/gcc/config/rs6000/rs6000.h gcc-5-20150208.aros/gcc/config/rs6000/rs6000.h
687 --- gcc-5-20150208/gcc/config/rs6000/rs6000.h 2015-01-16 16:31:37.000000000 +0000
688 +++ gcc-5-20150208.aros/gcc/config/rs6000/rs6000.h 2015-02-08 21:24:55.289352061 +0000
689 @@ -1765,6 +1765,7 @@
690 int nargs_prototype; /* # args left in the current prototype */
691 int prototype; /* Whether a prototype was defined */
692 int stdarg; /* Whether function is a stdarg function. */
693 + int stackparm; /* Whether function has all args on the stack */
694 int call_cookie; /* Do special things for this call */
695 int sysv_gregno; /* next available GP register */
696 int intoffset; /* running offset in struct (darwin64) */
697 diff -ruN gcc-5-20150208/gcc/config/t-aros gcc-5-20150208.aros/gcc/config/t-aros
698 --- gcc-5-20150208/gcc/config/t-aros 1970-01-01 01:00:00.000000000 +0100
699 +++ gcc-5-20150208.aros/gcc/config/t-aros 2015-02-08 21:24:55.289352061 +0000
701 +# In AROS, "/usr" is a four-letter word.
702 +# Must match NATIVE_SYSTEM_HEADER_COMPONENT in aros.h !
703 +NATIVE_SYSTEM_HEADER_DIR = /include
705 +# Don't add AROS target include path when compiling host compiler
708 +# Copy AROS specific include replacement files
709 +LIBGCC_DEPS += stmp-aros-hrds
711 +EXTRA_AROS_HEADERS = aros/types/size_t.h aros/types/ptrdiff_t.h \
712 + aros/types/wchar_t.h aros/types/wint_t.h aros/types/null.h
714 +stmp-int-hdrs : | include/aros/types
716 +include/aros/types : $(addprefix $(srcdir)/ginclude/,$(EXTRA_AROS_HEADERS))
717 + -if [ -d include ] ; then true; else mkdir include; chmod a+rx include; fi
718 + -if [ -d include/aros/types ] ; \
721 + mkdir include/aros; chmod a+rx include/aros; \
722 + mkdir include/aros/types; chmod a+rx include/aros/types; \
724 + for file in $(EXTRA_AROS_HEADERS); do \
725 + $(STAMP) include/$$file; \
726 + rm -fr include/$$file; \
727 + cp $(srcdir)/ginclude/$$file include/$$file; \
728 + chmod a+r include/$$file; \
730 diff -ruN gcc-5-20150208/gcc/config.build gcc-5-20150208.aros/gcc/config.build
731 --- gcc-5-20150208/gcc/config.build 2015-01-05 12:33:28.000000000 +0000
732 +++ gcc-5-20150208.aros/gcc/config.build 2015-02-08 21:24:55.289352061 +0000
735 build_install_headers_dir=install-headers-cpio
738 + build_xm_file=xm-aros.h
741 # All other System V variants.
742 build_install_headers_dir=install-headers-cpio
743 diff -ruN gcc-5-20150208/gcc/config.gcc gcc-5-20150208.aros/gcc/config.gcc
744 --- gcc-5-20150208/gcc/config.gcc 2015-01-15 20:11:12.000000000 +0000
745 +++ gcc-5-20150208.aros/gcc/config.gcc 2015-02-08 21:24:55.289352061 +0000
755 + xm_defines='STDC_HEADERS=1'
756 + extra_options="${extra_options} aros.opt"
760 tmake_file="t-openbsd"
761 case ${enable_threads} in
763 tm_file="${tm_file} vms/vms.h alpha/vms.h"
764 tmake_file="${tmake_file} alpha/t-vms"
767 + tm_file="dbxelf.h elfos.h arm/elf.h arm/bpabi.h aros.h arm/aros.h arm/aout.h arm/arm.h"
768 + tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h"
769 + tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf arm/t-arm-softfp arm/t-bpabi arm/t-aros t-aros"
770 + xm_file="xm-aros.h"
771 + # The BPABI long long divmod functions return a 128-bit value in
772 + # registers r0-r3. Correctly modeling that requires the use of
774 + need_64bit_hwint=yes
777 extra_headers="arc-simd.h"
778 tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
779 @@ -1540,6 +1559,16 @@
781 TM_MULTILIB_CONFIG=`echo $TM_MULTILIB_CONFIG | sed 's/^,//'`
784 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h i386/i386elf.h aros.h i386/aros.h"
786 + tmake_file="${tmake_file} i386/t-i386elf t-aros"
789 + 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"
790 + tmake_file="${tmake_file} i386/t-i386elf t-aros"
793 i[34567]86-pc-msdosdjgpp*)
794 xm_file=i386/xm-djgpp.h
795 tm_file="dbxcoff.h ${tm_file} i386/unix.h i386/bsd.h i386/gas.h i386/djgpp.h i386/djgpp-stdint.h"
796 @@ -1837,6 +1866,16 @@
801 + default_m68k_cpu=68000
802 + default_cf_cpu=5206
803 + tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h newlib-stdint.h m68k/m68kemb.h m68k/m68020-elf.h"
804 + tm_file="${tm_file} aros.h"
805 + tm_defines="${tm_defines} MOTOROLA=1"
806 + tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
807 + tmake_file="$tmake_file m68k/t-aros m68k/t-mlibs t-aros"
808 + extra_parts="crtbegin.o crtend.o"
810 m68k-*-elf* | fido-*-elf*)
813 @@ -2333,6 +2372,13 @@
814 extra_options="${extra_options} rs6000/sysv4.opt"
815 tmake_file="${tmake_file} rs6000/t-fprules rs6000/t-rtems rs6000/t-ppccomm"
818 + tm_file="${tm_file} dbxelf.h elfos.h freebsd-spec.h rs6000/sysv4.h aros.h"
819 + extra_options="${extra_options} rs6000/sysv4.opt"
820 + tm_file="${tm_file} rs6000/aros.h"
822 + tmake_file="$tmake_file t-aros"
825 tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h freebsd-spec.h rs6000/sysv4.h"
826 extra_options="${extra_options} rs6000/sysv4.opt"
827 diff -ruN gcc-5-20150208/gcc/config.host gcc-5-20150208.aros/gcc/config.host
828 --- gcc-5-20150208/gcc/config.host 2015-01-09 14:06:02.000000000 +0000
829 +++ gcc-5-20150208.aros/gcc/config.host 2015-02-08 21:24:55.289352061 +0000
831 out_host_hook_obj=host-hpux.o
832 host_xmake_file="${host_xmake_file} x-hpux"
835 + host_can_use_collect2=no
836 + host_xm_file=xm-aros.h
839 host_xm_file="vms/xm-vms.h"
840 host_xmake_file=vms/x-vms
841 diff -ruN gcc-5-20150208/gcc/ginclude/aros/types/null.h gcc-5-20150208.aros/gcc/ginclude/aros/types/null.h
842 --- gcc-5-20150208/gcc/ginclude/aros/types/null.h 1970-01-01 01:00:00.000000000 +0100
843 +++ gcc-5-20150208.aros/gcc/ginclude/aros/types/null.h 2015-02-08 21:24:55.289352061 +0000
845 +/* Replace AROS' NULL definition with gcc's one */
848 diff -ruN gcc-5-20150208/gcc/ginclude/aros/types/ptrdiff_t.h gcc-5-20150208.aros/gcc/ginclude/aros/types/ptrdiff_t.h
849 --- gcc-5-20150208/gcc/ginclude/aros/types/ptrdiff_t.h 1970-01-01 01:00:00.000000000 +0100
850 +++ gcc-5-20150208.aros/gcc/ginclude/aros/types/ptrdiff_t.h 2015-02-08 21:24:55.289352061 +0000
852 +/* Replace AROS' ptrdiff_t definition with gcc's one */
853 +#define __need_ptrdiff_t
855 diff -ruN gcc-5-20150208/gcc/ginclude/aros/types/size_t.h gcc-5-20150208.aros/gcc/ginclude/aros/types/size_t.h
856 --- gcc-5-20150208/gcc/ginclude/aros/types/size_t.h 1970-01-01 01:00:00.000000000 +0100
857 +++ gcc-5-20150208.aros/gcc/ginclude/aros/types/size_t.h 2015-02-08 21:24:55.289352061 +0000
859 +/* Replace AROS' size_t definition with gcc's one */
860 +#define __need_size_t
862 diff -ruN gcc-5-20150208/gcc/ginclude/aros/types/wchar_t.h gcc-5-20150208.aros/gcc/ginclude/aros/types/wchar_t.h
863 --- gcc-5-20150208/gcc/ginclude/aros/types/wchar_t.h 1970-01-01 01:00:00.000000000 +0100
864 +++ gcc-5-20150208.aros/gcc/ginclude/aros/types/wchar_t.h 2015-02-08 21:24:55.289352061 +0000
866 +/* Replace AROS' wchar_t definition with gcc's one */
867 +#define __need_wchar_t
869 diff -ruN gcc-5-20150208/gcc/ginclude/aros/types/wint_t.h gcc-5-20150208.aros/gcc/ginclude/aros/types/wint_t.h
870 --- gcc-5-20150208/gcc/ginclude/aros/types/wint_t.h 1970-01-01 01:00:00.000000000 +0100
871 +++ gcc-5-20150208.aros/gcc/ginclude/aros/types/wint_t.h 2015-02-08 21:24:55.289352061 +0000
873 +/* Replace AROS' wint_t definition with gcc's one */
874 +#define __need_wint_t
876 diff -ruN gcc-5-20150208/gcc/ginclude/stddef.h gcc-5-20150208.aros/gcc/ginclude/stddef.h
877 --- gcc-5-20150208/gcc/ginclude/stddef.h 2015-01-05 12:33:28.000000000 +0000
878 +++ gcc-5-20150208.aros/gcc/ginclude/stddef.h 2015-02-08 21:24:55.289352061 +0000
882 #ifndef _BSD_PTRDIFF_T_
883 +#ifndef _AROS_TYPES_PTRDIFF_T_H
884 #ifndef ___int_ptrdiff_t_h
885 #ifndef _GCC_PTRDIFF_T
886 #ifndef _PTRDIFF_T_DECLARED /* DragonFly */
890 #define _BSD_PTRDIFF_T_
891 +#define _AROS_TYPES_PTRDIFF_T_H
892 #define ___int_ptrdiff_t_h
893 #define _GCC_PTRDIFF_T
894 #define _PTRDIFF_T_DECLARED
896 #endif /* _PTRDIFF_T_DECLARED */
897 #endif /* _GCC_PTRDIFF_T */
898 #endif /* ___int_ptrdiff_t_h */
899 +#endif /* _AROS_TYPES_PTRDIFF_T_H */
900 #endif /* _BSD_PTRDIFF_T_ */
901 #endif /* _PTRDIFF_T_ */
902 #endif /* __PTRDIFF_T */
907 +#ifndef _AROS_TYPES_SIZE_T_H
908 #ifndef _SIZE_T_DEFINED_
909 #ifndef _SIZE_T_DEFINED
910 #ifndef _BSD_SIZE_T_DEFINED_ /* Darwin */
915 +#define _AROS_TYPES_SIZE_T_H
916 #define _SIZE_T_DEFINED_
917 #define _SIZE_T_DEFINED
918 #define _BSD_SIZE_T_DEFINED_ /* Darwin */
920 #endif /* _BSD_SIZE_T_DEFINED_ */
921 #endif /* _SIZE_T_DEFINED */
922 #endif /* _SIZE_T_DEFINED_ */
923 +#endif /* _AROS_TYPES_SIZE_T_H */
924 #endif /* _BSD_SIZE_T_ */
925 #endif /* _SIZE_T_ */
926 #endif /* __SIZE_T */
927 diff -ruN gcc-5-20150208/include/filenames.h gcc-5-20150208.aros/include/filenames.h
928 --- gcc-5-20150208/include/filenames.h 2014-11-11 23:33:25.000000000 +0000
929 +++ gcc-5-20150208.aros/include/filenames.h 2015-02-08 21:24:55.289352061 +0000
931 # define HAS_DRIVE_SPEC(f) HAS_DOS_DRIVE_SPEC (f)
932 # define IS_DIR_SEPARATOR(c) IS_DOS_DIR_SEPARATOR (c)
933 # define IS_ABSOLUTE_PATH(f) IS_DOS_ABSOLUTE_PATH (f)
934 +#elif defined __AROS__
935 +# define IS_DIR_SEPARATOR(c) ((c) == '/' || (c) == ':')
936 +# define IS_ABSOLUTE_PATH(f) (IS_DIR_SEPARATOR((f)[0]) || (strchr((f), ':')))
937 +# define HAVE_CASE_INSENSITIVE_FILE_SYSTEM
938 #else /* not DOSish */
939 # if defined(__APPLE__)
940 # ifndef HAVE_CASE_INSENSITIVE_FILE_SYSTEM
941 diff -ruN gcc-5-20150208/libgcc/config.host gcc-5-20150208.aros/libgcc/config.host
942 --- gcc-5-20150208/libgcc/config.host 2015-01-23 19:46:43.000000000 +0000
943 +++ gcc-5-20150208.aros/libgcc/config.host 2015-02-08 21:24:55.289352061 +0000
946 tmake_file="$tmake_file m32r/t-linux t-fdpbit"
948 -m68k-*-elf* | fido-*-elf)
949 +m68k-*-elf* | fido-*-elf | m68k-*-aros*)
950 tmake_file="$tmake_file m68k/t-floatlib"
953 @@ -1277,6 +1277,9 @@
954 tmake_file="$tmake_file nvptx/t-nvptx"
961 echo "*** Configuration ${host} not supported" 1>&2
963 diff -ruN gcc-5-20150208/libgcc/gthr.h gcc-5-20150208.aros/libgcc/gthr.h
964 --- gcc-5-20150208/libgcc/gthr.h 2015-01-05 12:33:28.000000000 +0000
965 +++ gcc-5-20150208.aros/libgcc/gthr.h 2015-02-08 21:24:55.289352061 +0000
967 #define GTHREAD_USE_WEAK 0
971 +#undef GTHREAD_USE_WEAK
972 +#define GTHREAD_USE_WEAK 0
975 #ifndef GTHREAD_USE_WEAK
976 #define GTHREAD_USE_WEAK 1
978 diff -ruN gcc-5-20150208/libgcc/unwind-dw2-fde.c gcc-5-20150208.aros/libgcc/unwind-dw2-fde.c
979 --- gcc-5-20150208/libgcc/unwind-dw2-fde.c 2015-01-05 12:33:28.000000000 +0000
980 +++ gcc-5-20150208.aros/libgcc/unwind-dw2-fde.c 2015-02-08 21:24:55.289352061 +0000
984 init_object_mutex_once ();
985 +#ifndef __AROS__ /* This is called when SysBase is not yet set up */
986 __gthread_mutex_lock (&object_mutex);
989 ob->next = unseen_objects;
993 __gthread_mutex_unlock (&object_mutex);
998 diff -ruN gcc-5-20150208/libiberty/filename_cmp.c gcc-5-20150208.aros/libiberty/filename_cmp.c
999 --- gcc-5-20150208/libiberty/filename_cmp.c 2014-11-11 23:33:25.000000000 +0000
1000 +++ gcc-5-20150208.aros/libiberty/filename_cmp.c 2015-02-08 21:24:55.289352061 +0000
1003 filename_cmp (const char *s1, const char *s2)
1005 -#if !defined(HAVE_DOS_BASED_FILE_SYSTEM) \
1006 - && !defined(HAVE_CASE_INSENSITIVE_FILE_SYSTEM)
1007 +#if !defined(HAVE_DOS_BASED_FILE_SYSTEM)
1008 +#if defined(HAVE_CASE_INSENSITIVE_FILE_SYSTEM)
1009 + return strcasecmp(s1, s2);
1011 return strcmp(s1, s2);
1016 diff -ruN gcc-5-20150208/libobjc/configure gcc-5-20150208.aros/libobjc/configure
1017 --- gcc-5-20150208/libobjc/configure 2015-01-26 02:53:23.000000000 +0000
1018 +++ gcc-5-20150208.aros/libobjc/configure 2015-02-08 21:24:55.289352061 +0000
1019 @@ -11256,214 +11256,7 @@
1022 # Check if we have thread-local storage
1025 - # Check whether --enable-tls was given.
1026 -if test "${enable_tls+set}" = set; then :
1027 - enableval=$enable_tls;
1028 - case "$enableval" in
1030 - *) as_fn_error "Argument to enable/disable tls must be yes or no" "$LINENO" 5 ;;
1038 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports thread-local storage" >&5
1039 -$as_echo_n "checking whether the target supports thread-local storage... " >&6; }
1040 -if test "${gcc_cv_have_tls+set}" = set; then :
1041 - $as_echo_n "(cached) " >&6
1044 - if test "$cross_compiling" = yes; then :
1045 - if test x$gcc_no_link = xyes; then
1046 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1048 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1049 -/* end confdefs.h. */
1050 -__thread int a; int b; int main() { return a = b; }
1052 -if ac_fn_c_try_link "$LINENO"; then :
1053 - chktls_save_LDFLAGS="$LDFLAGS"
1056 - LDFLAGS="-shared -Wl,--no-undefined $LDFLAGS"
1059 - chktls_save_CFLAGS="$CFLAGS"
1060 - CFLAGS="-fPIC $CFLAGS"
1061 - if test x$gcc_no_link = xyes; then
1062 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1064 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1065 -/* end confdefs.h. */
1066 -int f() { return 0; }
1068 -if ac_fn_c_try_link "$LINENO"; then :
1069 - if test x$gcc_no_link = xyes; then
1070 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1072 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1073 -/* end confdefs.h. */
1074 -__thread int a; int b; int f() { return a = b; }
1076 -if ac_fn_c_try_link "$LINENO"; then :
1077 - gcc_cv_have_tls=yes
1079 - gcc_cv_have_tls=no
1081 -rm -f core conftest.err conftest.$ac_objext \
1082 - conftest$ac_exeext conftest.$ac_ext
1084 - gcc_cv_have_tls=yes
1086 -rm -f core conftest.err conftest.$ac_objext \
1087 - conftest$ac_exeext conftest.$ac_ext
1088 - CFLAGS="$chktls_save_CFLAGS"
1089 - LDFLAGS="$chktls_save_LDFLAGS"
1091 - gcc_cv_have_tls=no
1093 -rm -f core conftest.err conftest.$ac_objext \
1094 - conftest$ac_exeext conftest.$ac_ext
1098 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1099 -/* end confdefs.h. */
1100 -__thread int a; int b; int main() { return a = b; }
1102 -if ac_fn_c_try_run "$LINENO"; then :
1103 - chktls_save_LDFLAGS="$LDFLAGS"
1104 - LDFLAGS="-static $LDFLAGS"
1105 - if test x$gcc_no_link = xyes; then
1106 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1108 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1109 -/* end confdefs.h. */
1110 -int main() { return 0; }
1112 -if ac_fn_c_try_link "$LINENO"; then :
1113 - if test "$cross_compiling" = yes; then :
1114 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1115 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1116 -as_fn_error "cannot run test program while cross compiling
1117 -See \`config.log' for more details." "$LINENO" 5; }
1119 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1120 -/* end confdefs.h. */
1121 -__thread int a; int b; int main() { return a = b; }
1123 -if ac_fn_c_try_run "$LINENO"; then :
1124 - gcc_cv_have_tls=yes
1126 - gcc_cv_have_tls=no
1128 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1129 - conftest.$ac_objext conftest.beam conftest.$ac_ext
1133 - gcc_cv_have_tls=yes
1135 -rm -f core conftest.err conftest.$ac_objext \
1136 - conftest$ac_exeext conftest.$ac_ext
1137 - LDFLAGS="$chktls_save_LDFLAGS"
1138 - if test $gcc_cv_have_tls = yes; then
1139 - chktls_save_CFLAGS="$CFLAGS"
1140 - thread_CFLAGS=failed
1141 - for flag in '' '-pthread' '-lpthread'; do
1142 - CFLAGS="$flag $chktls_save_CFLAGS"
1143 - if test x$gcc_no_link = xyes; then
1144 - as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1146 -cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1147 -/* end confdefs.h. */
1148 -#include <pthread.h>
1149 - void *g(void *d) { return NULL; }
1153 -pthread_t t; pthread_create(&t,NULL,g,NULL);
1158 -if ac_fn_c_try_link "$LINENO"; then :
1159 - thread_CFLAGS="$flag"
1161 -rm -f core conftest.err conftest.$ac_objext \
1162 - conftest$ac_exeext conftest.$ac_ext
1163 - if test "X$thread_CFLAGS" != Xfailed; then
1167 - CFLAGS="$chktls_save_CFLAGS"
1168 - if test "X$thread_CFLAGS" != Xfailed; then
1169 - CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS"
1170 - if test "$cross_compiling" = yes; then :
1171 - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1172 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1173 -as_fn_error "cannot run test program while cross compiling
1174 -See \`config.log' for more details." "$LINENO" 5; }
1176 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1177 -/* end confdefs.h. */
1178 -#include <pthread.h>
1180 - static int *volatile a_in_other_thread;
1182 - thread_func (void *arg)
1184 - a_in_other_thread = &a;
1191 - void *thread_retval;
1192 - int *volatile a_in_main_thread;
1193 - a_in_main_thread = &a;
1194 - if (pthread_create (&thread, (pthread_attr_t *)0,
1195 - thread_func, (void *)0))
1197 - if (pthread_join (thread, &thread_retval))
1199 - return (a_in_other_thread == a_in_main_thread);
1204 -if ac_fn_c_try_run "$LINENO"; then :
1205 - gcc_cv_have_tls=yes
1207 - gcc_cv_have_tls=no
1209 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1210 - conftest.$ac_objext conftest.beam conftest.$ac_ext
1213 - CFLAGS="$chktls_save_CFLAGS"
1217 - gcc_cv_have_tls=no
1219 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
1220 - conftest.$ac_objext conftest.beam conftest.$ac_ext
1224 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_have_tls" >&5
1225 -$as_echo "$gcc_cv_have_tls" >&6; }
1226 - if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then
1228 -$as_echo "#define HAVE_TLS 1" >>confdefs.h
1231 +#dnl GCC_ENABLE_TLS
1233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exception model to use" >&5
1234 $as_echo_n "checking for exception model to use... " >&6; }
1235 diff -ruN gcc-5-20150208/libobjc/configure.ac gcc-5-20150208.aros/libobjc/configure.ac
1236 --- gcc-5-20150208/libobjc/configure.ac 2015-01-05 12:33:28.000000000 +0000
1237 +++ gcc-5-20150208.aros/libobjc/configure.ac 2015-02-08 21:24:55.289352061 +0000
1241 # Check if we have thread-local storage
1245 AC_MSG_CHECKING([for exception model to use])
1247 diff -ruN gcc-5-20150208/libobjc/thr.c gcc-5-20150208.aros/libobjc/thr.c
1248 --- gcc-5-20150208/libobjc/thr.c 2015-01-05 12:33:28.000000000 +0000
1249 +++ gcc-5-20150208.aros/libobjc/thr.c 2015-02-08 21:24:55.289352061 +0000
1251 #include "objc/runtime.h"
1252 #include "objc-private/module-abi-8.h"
1253 #include "objc-private/runtime.h"
1254 +#define __typedef_BOOL /* Remove definition of BOOL */
1258 diff -ruN gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_base.h gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_base.h
1259 --- gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_base.h 1970-01-01 01:00:00.000000000 +0100
1260 +++ gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_base.h 2015-02-08 21:24:55.289352061 +0000
1262 +namespace std _GLIBCXX_VISIBILITY(default)
1264 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
1266 +struct ctype_base {
1267 + /* Non-standard typedefs */
1268 + typedef int * __to_type;
1270 + /* NB: Offsets into ctype<char>::_M_table force a particular size
1271 + on the mask type. Because of this, we don't use an enum. */
1272 + typedef unsigned short int mask;
1274 + static const mask upper = _ISupper;
1275 + static const mask lower = _ISlower;
1276 + static const mask alpha = _ISalpha;
1277 + static const mask digit = _ISdigit;
1278 + static const mask xdigit = _ISxdigit;
1279 + static const mask space = _ISspace;
1280 + static const mask print = _ISprint;
1281 + static const mask graph = _ISgraph;
1282 + static const mask cntrl = _IScntrl;
1283 + static const mask punct = _ISpunct;
1284 + static const mask alnum = _ISalnum;
1285 +#if __cplusplus >= 201103L
1286 + static const mask blank = _ISblank;
1290 +_GLIBCXX_END_NAMESPACE_VERSION
1292 diff -ruN gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_configure_char.cc gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_configure_char.cc
1293 --- gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_configure_char.cc 1970-01-01 01:00:00.000000000 +0100
1294 +++ gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_configure_char.cc 2015-02-08 21:24:55.289352061 +0000
1296 +// Locale support -*- C++ -*-
1298 +// Copyright (C) 2011-2013 Free Software Foundation, Inc.
1300 +// This file is part of the GNU ISO C++ Library. This library is free
1301 +// software; you can redistribute it and/or modify it under the
1302 +// terms of the GNU General Public License as published by the
1303 +// Free Software Foundation; either version 3, or (at your option)
1304 +// any later version.
1306 +// This library is distributed in the hope that it will be useful,
1307 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
1308 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1309 +// GNU General Public License for more details.
1311 +// Under Section 7 of GPL version 3, you are granted additional
1312 +// permissions described in the GCC Runtime Library Exception, version
1313 +// 3.1, as published by the Free Software Foundation.
1315 +// You should have received a copy of the GNU General Public License and
1316 +// a copy of the GCC Runtime Library Exception along with this program;
1317 +// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
1318 +// <http://www.gnu.org/licenses/>.
1320 +/** @file ctype_configure_char.cc */
1323 +// ISO C++ 14882: 22.1 Locales
1330 +namespace std _GLIBCXX_VISIBILITY(default)
1332 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
1334 +// Information as gleaned from /usr/include/ctype.h
1336 + const ctype_base::mask*
1337 + ctype<char>::classic_table() throw()
1340 + ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
1342 + : facet(__refs), _M_del(__table != 0 && __del),
1343 + _M_toupper(NULL), _M_tolower(NULL),
1344 + _M_table(__table ? __table : classic_table())
1346 + memset(_M_widen, 0, sizeof(_M_widen));
1348 + memset(_M_narrow, 0, sizeof(_M_narrow));
1352 + ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
1353 + : facet(__refs), _M_del(__table != 0 && __del),
1354 + _M_toupper(NULL), _M_tolower(NULL),
1355 + _M_table(__table ? __table : classic_table())
1357 + memset(_M_widen, 0, sizeof(_M_widen));
1359 + memset(_M_narrow, 0, sizeof(_M_narrow));
1364 + ctype<char>::do_toupper(char __c) const
1365 + { return ::toupper((int) __c); }
1368 + ctype<char>::do_toupper(char* __low, const char* __high) const
1370 + while (__low < __high)
1372 + *__low = ::toupper((int) *__low);
1379 + ctype<char>::do_tolower(char __c) const
1380 + { return ::tolower((int) __c); }
1383 + ctype<char>::do_tolower(char* __low, const char* __high) const
1385 + while (__low < __high)
1387 + *__low = ::tolower((int) *__low);
1393 +_GLIBCXX_END_NAMESPACE_VERSION
1395 diff -ruN gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_inline.h gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_inline.h
1396 --- gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_inline.h 1970-01-01 01:00:00.000000000 +0100
1397 +++ gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_inline.h 2015-02-08 21:24:55.289352061 +0000
1399 +// Locale support -*- C++ -*-
1401 +// Copyright (C) 2000, 2003 Free Software Foundation, Inc.
1403 +// This file is part of the GNU ISO C++ Library. This library is free
1404 +// software; you can redistribute it and/or modify it under the
1405 +// terms of the GNU General Public License as published by the
1406 +// Free Software Foundation; either version 2, or (at your option)
1407 +// any later version.
1409 +// This library is distributed in the hope that it will be useful,
1410 +// but WITHOUT ANY WARRANTY; without even the implied warranty of
1411 +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1412 +// GNU General Public License for more details.
1414 +// You should have received a copy of the GNU General Public License along
1415 +// with this library; see the file COPYING. If not, write to the Free
1416 +// Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
1419 +// As a special exception, you may use this file as part of a free software
1420 +// library without restriction. Specifically, if other files instantiate
1421 +// templates or use macros or inline functions from this file, or you compile
1422 +// this file and link it with other files to produce an executable, this
1423 +// file does not by itself cause the resulting executable to be covered by
1424 +// the GNU General Public License. This exception does not however
1425 +// invalidate any other reasons why the executable file might be covered by
1426 +// the GNU General Public License.
1428 +/** @file ctype_inline.h
1429 + * This is an internal header file, included by other library headers.
1430 + * You should not attempt to use it directly.
1434 +// ISO C++ 14882: 22.1 Locales
1437 +// ctype bits to be inlined go here. Non-inlinable (ie virtual do_*)
1438 +// functions go in ctype.cc
1440 +// The following definitions are portable, but insanely slow. If one
1441 +// cares at all about performance, then specialized ctype
1442 +// functionality should be added for the native os in question: see
1443 +// the config/os/bits/ctype_*.h files.
1445 +// Constructing a synthetic "C" table should be seriously considered...
1447 +namespace std _GLIBCXX_VISIBILITY(default)
1449 +_GLIBCXX_BEGIN_NAMESPACE_VERSION
1453 + is(mask __m, char __c) const
1456 + return _M_table[static_cast<unsigned char>(__c)] & __m;
1459 + bool __ret = false;
1460 + const size_t __bitmasksize = 15;
1461 + size_t __bitcur = 0; // Lowest bitmask in ctype_base == 0
1462 + for (; __bitcur <= __bitmasksize; ++__bitcur)
1464 + const mask __bit = static_cast<mask>(1 << __bitcur);
1471 + __testis = isspace(__c);
1474 + __testis = isprint(__c);
1477 + __testis = iscntrl(__c);
1480 + __testis = isupper(__c);
1483 + __testis = islower(__c);
1486 + __testis = isalpha(__c);
1489 + __testis = isdigit(__c);
1492 + __testis = ispunct(__c);
1495 + __testis = isxdigit(__c);
1498 + __testis = isalnum(__c);
1501 + __testis = isgraph(__c);
1507 + __ret |= __testis;
1516 + is(const char* __low, const char* __high, mask* __vec) const
1519 + while (__low < __high)
1520 + *__vec++ = _M_table[static_cast<unsigned char>(*__low++)];
1523 + // Highest bitmask in ctype_base == 10.
1524 + const size_t __bitmasksize = 15;
1525 + for (;__low < __high; ++__vec, ++__low)
1528 + // Lowest bitmask in ctype_base == 0
1530 + for (;__i <= __bitmasksize; ++__i)
1532 + const mask __bit = static_cast<mask>(1 << __i);
1533 + if (this->is(__bit, *__low))
1544 + scan_is(mask __m, const char* __low, const char* __high) const
1547 + while (__low < __high
1548 + && !(_M_table[static_cast<unsigned char>(*__low)] & __m))
1551 + while (__low < __high && !this->is(__m, *__low))
1558 + scan_not(mask __m, const char* __low, const char* __high) const
1561 + while (__low < __high
1562 + && (_M_table[static_cast<unsigned char>(*__low)] & __m) != 0)
1565 + while (__low < __high && this->is(__m, *__low) != 0)
1570 +_GLIBCXX_END_NAMESPACE_VERSION
1572 diff -ruN gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_noninline.h gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_noninline.h
1573 --- gcc-5-20150208/libstdc++-v3/config/os/aros/ctype_noninline.h 1970-01-01 01:00:00.000000000 +0100
1574 +++ gcc-5-20150208.aros/libstdc++-v3/config/os/aros/ctype_noninline.h 2015-02-08 21:24:55.289352061 +0000
1576 + const ctype_base::mask*
1577 + ctype<char>::classic_table() throw()
1578 + { return *__ctype_b_ptr; }
1580 + ctype<char>::ctype(__c_locale, const mask* __table, bool __del,
1582 + : facet(__refs), _M_del(__table != 0 && __del),
1583 + _M_toupper(NULL), _M_tolower(NULL),
1584 + _M_table(__table ? __table : classic_table())
1586 + memset(_M_widen, 0, sizeof(_M_widen));
1588 + memset(_M_narrow, 0, sizeof(_M_narrow));
1592 + ctype<char>::ctype(const mask* __table, bool __del, size_t __refs)
1593 + : facet(__refs), _M_del(__table != 0 && __del),
1594 + _M_toupper(NULL), _M_tolower(NULL),
1595 + _M_table(__table ? __table : classic_table())
1597 + memset(_M_widen, 0, sizeof(_M_widen));
1599 + memset(_M_narrow, 0, sizeof(_M_narrow));
1604 + ctype<char>::do_toupper(char __c) const
1605 + { return ::toupper((int) __c); }
1608 + ctype<char>::do_toupper(char* __low, const char* __high) const
1610 + while (__low < __high)
1612 + *__low = ::toupper((int) *__low);
1619 + ctype<char>::do_tolower(char __c) const
1620 + { return ::tolower((int) __c); }
1623 + ctype<char>::do_tolower(char* __low, const char* __high) const
1625 + while (__low < __high)
1627 + *__low = ::tolower((int) *__low);
1632 diff -ruN gcc-5-20150208/libstdc++-v3/config/os/aros/os_defines.h gcc-5-20150208.aros/libstdc++-v3/config/os/aros/os_defines.h
1633 --- gcc-5-20150208/libstdc++-v3/config/os/aros/os_defines.h 1970-01-01 01:00:00.000000000 +0100
1634 +++ gcc-5-20150208.aros/libstdc++-v3/config/os/aros/os_defines.h 2015-02-08 21:24:55.289352061 +0000
1636 +#ifndef _GLIBCXX_OS_DEFINES
1637 +#define _GLIBCXX_OS_DEFINES
1639 +#define __off64_t off_t
1642 diff -ruN gcc-5-20150208/libstdc++-v3/configure gcc-5-20150208.aros/libstdc++-v3/configure
1643 --- gcc-5-20150208/libstdc++-v3/configure 2015-01-16 15:02:35.000000000 +0000
1644 +++ gcc-5-20150208.aros/libstdc++-v3/configure 2015-02-08 21:24:55.289352061 +0000
1645 @@ -5306,12 +5306,12 @@
1649 -if test "x${with_newlib}" != "xyes"; then
1655 +#if test "x${with_newlib}" != "xyes"; then
1656 +# AC_LIBTOOL_DLOPEN
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
1664 @@ -8042,6 +8042,8 @@
1673 @@ -18660,6 +18662,7 @@
1675 struct iovec iov[2];
1677 +#error be sure to fail
1681 @@ -18682,6 +18685,7 @@
1683 struct iovec iov[2];
1685 +#error be sure to fail
1689 @@ -27858,6 +27862,58 @@
1691 # Base decisions on target environment.
1694 + for ac_header in nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
1695 + machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h
1697 + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
1698 +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
1699 +eval as_val=\$$as_ac_Header
1700 + if test "x$as_val" = x""yes; then :
1701 + cat >>confdefs.h <<_ACEOF
1702 +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
1710 + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
1711 + GLIBCXX_CHECK_WCHAR_T_SUPPORT
1713 + $as_echo "#define HAVE_FINITE 1" >>confdefs.h
1715 + $as_echo "#define HAVE_FINITEF 1" >>confdefs.h
1717 + $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
1719 + $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
1721 + $as_echo "#define HAVE_ISINF 1" >>confdefs.h
1723 + $as_echo "#define HAVE_ISINFF 1" >>confdefs.h
1725 + $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
1727 + $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
1729 + $as_echo "#define HAVE_SINCOS 1" >>confdefs.h
1731 + $as_echo "#define HAVE_SINCOSF 1" >>confdefs.h
1733 + if test x"long_double_math_on_this_cpu" = x"yes"; then
1734 + $as_echo "#define HAVE_FINITEL 1" >>confdefs.h
1736 + $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
1738 + $as_echo "#define HAVE_ISINFL 1" >>confdefs.h
1740 + $as_echo "#define HAVE_ISNANL 1" >>confdefs.h
1746 # This is a freestanding configuration; there is nothing to do here.
1748 diff -ruN gcc-5-20150208/libstdc++-v3/configure.ac gcc-5-20150208.aros/libstdc++-v3/configure.ac
1749 --- gcc-5-20150208/libstdc++-v3/configure.ac 2014-12-19 18:16:39.000000000 +0000
1750 +++ gcc-5-20150208.aros/libstdc++-v3/configure.ac 2015-02-08 21:24:55.289352061 +0000
1755 -if test "x${with_newlib}" != "xyes"; then
1758 +#if test "x${with_newlib}" != "xyes"; then
1759 +# AC_LIBTOOL_DLOPEN
1763 AC_SUBST(enable_shared)
1764 diff -ruN gcc-5-20150208/libstdc++-v3/configure.host gcc-5-20150208.aros/libstdc++-v3/configure.host
1765 --- gcc-5-20150208/libstdc++-v3/configure.host 2015-01-09 14:06:02.000000000 +0000
1766 +++ gcc-5-20150208.aros/libstdc++-v3/configure.host 2015-02-08 21:24:55.289352061 +0000
1768 os_include_dir="os/generic"
1769 atomicity_dir="cpu/generic"
1772 + os_include_dir="os/aros"
1775 # Plain BSD attempts to share FreeBSD files.
1776 os_include_dir="os/bsd/freebsd"
1777 diff -ruN gcc-5-20150208/libstdc++-v3/crossconfig.m4 gcc-5-20150208.aros/libstdc++-v3/crossconfig.m4
1778 --- gcc-5-20150208/libstdc++-v3/crossconfig.m4 2014-04-22 13:30:59.000000000 +0100
1779 +++ gcc-5-20150208.aros/libstdc++-v3/crossconfig.m4 2015-02-08 21:24:55.289352061 +0000
1781 AC_DEFUN([GLIBCXX_CROSSCONFIG],[
1782 # Base decisions on target environment.
1785 + AC_CHECK_HEADERS([nan.h ieeefp.h endian.h sys/isa_defs.h machine/endian.h \
1786 + machine/param.h sys/machine.h sys/types.h fp.h locale.h float.h inttypes.h])
1788 + GLIBCXX_CHECK_COMPLEX_MATH_SUPPORT
1789 + GLIBCXX_CHECK_WCHAR_T_SUPPORT
1791 + AC_DEFINE(HAVE_FINITE)
1792 + AC_DEFINE(HAVE_FINITEF)
1793 + AC_DEFINE(HAVE_FREXPF)
1794 + AC_DEFINE(HAVE_HYPOTF)
1795 + AC_DEFINE(HAVE_ISINF)
1796 + AC_DEFINE(HAVE_ISINFF)
1797 + AC_DEFINE(HAVE_ISNAN)
1798 + AC_DEFINE(HAVE_ISNANF)
1799 + AC_DEFINE(HAVE_SINCOS)
1800 + AC_DEFINE(HAVE_SINCOSF)
1801 + if test x"long_double_math_on_this_cpu" = x"yes"; then
1802 + AC_DEFINE(HAVE_FINITEL)
1803 + AC_DEFINE(HAVE_HYPOTL)
1804 + AC_DEFINE(HAVE_ISINFL)
1805 + AC_DEFINE(HAVE_ISNANL)
1810 # This is a freestanding configuration; there is nothing to do here.
1812 diff -ruN gcc-5-20150208/libstdc++-v3/include/Makefile.in gcc-5-20150208.aros/libstdc++-v3/include/Makefile.in
1813 --- gcc-5-20150208/libstdc++-v3/include/Makefile.in 2015-01-16 23:38:48.000000000 +0000
1814 +++ gcc-5-20150208.aros/libstdc++-v3/include/Makefile.in 2015-02-08 21:24:55.289352061 +0000
1815 @@ -1597,6 +1597,7 @@
1816 -e '/^#/s/\(${uppercase}${uppercase}*\)/_GLIBCXX_\1/g' \
1817 -e 's/_GLIBCXX_SUPPORTS_WEAK/__GXX_WEAK__/g' \
1818 -e 's/_GLIBCXX___MINGW32_GLIBCXX___/__MINGW32__/g' \
1819 + -e 's/_GLIBCXX___AROS__/__AROS__/g' \
1820 -e 's,^#include "\(.*\)",#include <bits/\1>,g' \
1823 diff -ruN gcc-5-20150208/libstdc++-v3/include/std/ratio gcc-5-20150208.aros/libstdc++-v3/include/std/ratio
1824 --- gcc-5-20150208/libstdc++-v3/include/std/ratio 2015-01-05 12:33:28.000000000 +0000
1825 +++ gcc-5-20150208.aros/libstdc++-v3/include/std/ratio 2015-02-08 21:24:55.289352061 +0000
1826 @@ -211,10 +211,10 @@
1829 static_assert(__d != 0, "Internal library error");
1830 - static_assert(sizeof (uintmax_t) == sizeof (unsigned long long),
1831 - "This library calls __builtin_clzll on uintmax_t, which "
1832 - "is unsafe on your platform. Please complain to "
1833 - "http://gcc.gnu.org/bugzilla/");
1834 +// static_assert(sizeof (uintmax_t) == sizeof (unsigned long long),
1835 +// "This library calls __builtin_clzll on uintmax_t, which "
1836 +// "is unsafe on your platform. Please complain to "
1837 +// "http://gcc.gnu.org/bugzilla/");
1838 static constexpr int __shift = __builtin_clzll(__d);
1839 static constexpr int __coshift_ = sizeof(uintmax_t) * 8 - __shift;
1840 static constexpr int __coshift = (__shift != 0) ? __coshift_ : 0;