1 diff -rNU3 dist.org/gcc/config.gcc dist/gcc/config.gcc
2 --- dist.org/gcc/config.gcc 2015-12-11 12:26:57.000000000 +0100
3 +++ dist/gcc/config.gcc 2015-12-11 12:25:40.000000000 +0100
7 tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf"
8 - tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
9 + tm_file="dbxelf.h elfos.h netbsd-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h"
10 extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
12 - tm_file="$tm_file arm/bpabi.h"
13 + tm_file="$tm_file arm/bpabi.h minix-spec.h arm/minix.h minix.h"
14 tmake_file="$tmake_file arm/t-bpabi t-minix"
16 # The BPABI long long divmod functions return a 128-bit value in
18 armv6*) with_cpu=${with_cpu:-arm1176jzf-s};;
19 armv7*) with_cpu=${with_cpu:-cortex-a8};;
21 - tm_file="$tm_file arm/eabi.h newlib-stdint.h minix-spec.h arm/minix.h minix.h"
22 - tmake_file="$tmake_file arm/t-arm-softfp soft-fp/t-softfp"
23 + #tmake_file="$tmake_file arm/t-arm-softfp soft-fp/t-softfp"
26 tmake_file="${tmake_file} arm/t-arm"
28 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/x86-64.h i386/freebsd.h i386/freebsd64.h"
31 - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h minix-spec.h i386/minix.h minix.h"
32 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd-stdint.h minix-spec.h i386/minix.h minix.h"
33 tmake_file="${tmake_file} i386/t-crtstuff"
34 extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
36 diff -rNU3 dist.org/gcc/tree-ssa-ccp.c dist/gcc/tree-ssa-ccp.c
37 --- dist.org/gcc/tree-ssa-ccp.c 2015-12-11 12:26:57.000000000 +0100
38 +++ dist/gcc/tree-ssa-ccp.c 2015-12-11 12:24:50.000000000 +0100
43 -#if defined(__NetBSD__) && defined(NETBSD_NATIVE)
44 +#if (defined(__NetBSD__) || defined(__minix)) && defined(NETBSD_NATIVE)
46 * This is a big, ugly, temporary hack:
47 * http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59958
48 diff -rNU3 dist.org/libgcc/config/arm/unwind-arm.h dist/libgcc/config/arm/unwind-arm.h
49 --- dist.org/libgcc/config/arm/unwind-arm.h 2013-02-04 20:06:20.000000000 +0100
50 +++ dist/libgcc/config/arm/unwind-arm.h 2015-12-11 12:25:05.000000000 +0100
55 -#if (defined(linux) && !defined(__uClinux__)) || defined(__NetBSD__)
56 +#if (defined(linux) && !defined(__uClinux__)) || defined(__NetBSD__) || defined(__minix)
57 /* Pc-relative indirect. */
58 #define _GLIBCXX_OVERRIDE_TTYPE_ENCODING (DW_EH_PE_pcrel | DW_EH_PE_indirect)
60 diff -rNU3 dist.org/libstdc++-v3/libsupc++/atexit_arm.cc dist/libstdc++-v3/libsupc++/atexit_arm.cc
61 --- dist.org/libstdc++-v3/libsupc++/atexit_arm.cc 2015-12-11 12:26:57.000000000 +0100
62 +++ dist/libstdc++-v3/libsupc++/atexit_arm.cc 2015-12-11 12:25:13.000000000 +0100
67 -#if defined(__arm__) && defined(__ARM_EABI__) && !defined(__NetBSD__)
68 +#if defined(__arm__) && defined(__ARM_EABI__) && !defined(__NetBSD__) && !defined(__minix)