1*0a6a1f1dSLionel Sambucdiff -rNU3 dist.nbsd/gcc/config.gcc dist/gcc/config.gcc 2*0a6a1f1dSLionel Sambuc--- dist.nbsd/gcc/config.gcc 2015-10-16 12:40:18.000000000 +0200 3*0a6a1f1dSLionel Sambuc+++ dist/gcc/config.gcc 2015-10-16 13:35:51.000000000 +0200 4*0a6a1f1dSLionel Sambuc@@ -704,6 +704,12 @@ 5*0a6a1f1dSLionel Sambuc tmake_file="${tmake_file} t-glibc" 6*0a6a1f1dSLionel Sambuc target_has_targetcm=yes 7*0a6a1f1dSLionel Sambuc ;; 8*0a6a1f1dSLionel Sambuc+*-*-minix*) 9*0a6a1f1dSLionel Sambuc+ tmake_file="t-slibgcc" 10*0a6a1f1dSLionel Sambuc+ gas=yes 11*0a6a1f1dSLionel Sambuc+ gnu_ld=yes 12*0a6a1f1dSLionel Sambuc+ default_use_cxa_atexit=yes 13*0a6a1f1dSLionel Sambuc+ ;; 14*0a6a1f1dSLionel Sambuc *-*-netbsd*) 15*0a6a1f1dSLionel Sambuc tmake_file="t-slibgcc" 16*0a6a1f1dSLionel Sambuc gas=yes 17*0a6a1f1dSLionel Sambuc@@ -887,6 +893,34 @@ 18*0a6a1f1dSLionel Sambuc extra_options="${extra_options} arm/vxworks.opt" 19*0a6a1f1dSLionel Sambuc tmake_file="${tmake_file} arm/t-arm arm/t-vxworks" 20d19d7d58SLionel Sambuc ;; 21b86af8beSLionel Sambuc+arm*-*-minix*) 22*0a6a1f1dSLionel Sambuc+ tmake_file="${tmake_file} arm/t-arm arm/t-arm-elf" 23*0a6a1f1dSLionel Sambuc+ tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h" 24*0a6a1f1dSLionel Sambuc+ extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 25*0a6a1f1dSLionel Sambuc+ 26*0a6a1f1dSLionel Sambuc+ tm_file="$tm_file arm/bpabi.h" 27*0a6a1f1dSLionel Sambuc+ tmake_file="$tmake_file arm/t-bpabi t-minix" 28*0a6a1f1dSLionel Sambuc+ 2984d9c625SLionel Sambuc+ # The BPABI long long divmod functions return a 128-bit value in 3084d9c625SLionel Sambuc+ # registers r0-r3. Correctly modeling that requires the use of 3184d9c625SLionel Sambuc+ # TImode. 3284d9c625SLionel Sambuc+ need_64bit_hwint=yes 33*0a6a1f1dSLionel Sambuc+ # The EABI requires the use of __cxa_atexit. 3484d9c625SLionel Sambuc+ default_use_cxa_atexit=yes 3584d9c625SLionel Sambuc+ 36*0a6a1f1dSLionel Sambuc+ case ${target} in 37*0a6a1f1dSLionel Sambuc+ arm*-*-minix-*hf*) 38*0a6a1f1dSLionel Sambuc+ tm_defines="${tm_defines} TARGET_DEFAULT_FLOAT_ABI=ARM_FLOAT_ABI_HARD" 39b86af8beSLionel Sambuc+ ;; 40*0a6a1f1dSLionel Sambuc+ esac 41*0a6a1f1dSLionel Sambuc+ case ${target} in 42*0a6a1f1dSLionel Sambuc+ armv4*) with_cpu=${with_cpu:-strongarm};; 43*0a6a1f1dSLionel Sambuc+ armv6*) with_cpu=${with_cpu:-arm1176jzf-s};; 44*0a6a1f1dSLionel Sambuc+ armv7*) with_cpu=${with_cpu:-cortex-a8};; 45*0a6a1f1dSLionel Sambuc+ esac 46*0a6a1f1dSLionel Sambuc+ tm_file="$tm_file arm/eabi.h newlib-stdint.h minix-spec.h arm/minix.h minix.h" 47*0a6a1f1dSLionel Sambuc+ tmake_file="$tmake_file arm/t-arm-softfp soft-fp/t-softfp" 48*0a6a1f1dSLionel Sambuc+ ;; 49*0a6a1f1dSLionel Sambuc arm*-*-netbsdelf*) 50*0a6a1f1dSLionel Sambuc tmake_file="${tmake_file} arm/t-arm" 51*0a6a1f1dSLionel Sambuc tm_file="dbxelf.h elfos.h ${nbsd_tm_file} arm/elf.h arm/aout.h arm/arm.h" 52*0a6a1f1dSLionel Sambuc@@ -1287,6 +1321,11 @@ 53*0a6a1f1dSLionel Sambuc x86_64-*-freebsd*) 54d19d7d58SLionel Sambuc 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" 55d19d7d58SLionel Sambuc ;; 56d19d7d58SLionel Sambuc+i[34567]86-*-minix) 570cdf705cSLionel Sambuc+ tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h minix-spec.h i386/minix.h minix.h" 58*0a6a1f1dSLionel Sambuc+ tmake_file="${tmake_file} i386/t-crtstuff" 59*0a6a1f1dSLionel Sambuc+ extra_options="${extra_options} netbsd.opt netbsd-elf.opt" 60d19d7d58SLionel Sambuc+ ;; 61d19d7d58SLionel Sambuc i[34567]86-*-netbsdelf*) 62*0a6a1f1dSLionel Sambuc tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${nbsd_tm_file} i386/netbsd-elf.h" 63d19d7d58SLionel Sambuc tmake_file="${tmake_file} i386/t-crtstuff" 64*0a6a1f1dSLionel Sambucdiff -rNU3 dist.nbsd/gcc/gcov.c dist/gcc/gcov.c 65*0a6a1f1dSLionel Sambuc--- dist.nbsd/gcc/gcov.c 2015-10-16 12:40:18.000000000 +0200 66*0a6a1f1dSLionel Sambuc+++ dist/gcc/gcov.c 2015-10-16 13:36:18.000000000 +0200 67*0a6a1f1dSLionel Sambuc@@ -62,6 +62,10 @@ 68d19d7d58SLionel Sambuc 69*0a6a1f1dSLionel Sambuc /* This is the size of the buffer used to read in source file lines. */ 70d19d7d58SLionel Sambuc 718e4736f2SLionel Sambuc+#if defined(__minix) 72d19d7d58SLionel Sambuc+#define block_t gcc_block_t 73d19d7d58SLionel Sambuc+#endif 74d19d7d58SLionel Sambuc+ 75d19d7d58SLionel Sambuc struct function_info; 76d19d7d58SLionel Sambuc struct block_info; 77d19d7d58SLionel Sambuc struct source_info; 78*0a6a1f1dSLionel Sambucdiff -rNU3 dist.nbsd/gcc/ginclude/stddef.h dist/gcc/ginclude/stddef.h 79*0a6a1f1dSLionel Sambuc--- dist.nbsd/gcc/ginclude/stddef.h 2015-10-16 12:40:18.000000000 +0200 80*0a6a1f1dSLionel Sambuc+++ dist/gcc/ginclude/stddef.h 2015-10-16 13:35:25.000000000 +0200 81*0a6a1f1dSLionel Sambuc@@ -48,7 +48,7 @@ 82d19d7d58SLionel Sambuc 8384d9c625SLionel Sambuc /* On 4.3bsd-net2, make sure ansi.h is included, so we have 8484d9c625SLionel Sambuc one less case to deal with in the following. */ 8584d9c625SLionel Sambuc-#if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__) 8684d9c625SLionel Sambuc+#if defined (__BSD_NET2__) || defined (____386BSD____) || (defined (__FreeBSD__) && (__FreeBSD__ < 5)) || defined(__NetBSD__) || defined(__minix) 8784d9c625SLionel Sambuc #ifndef inhibit_libc 8884d9c625SLionel Sambuc #include <machine/ansi.h> 8984d9c625SLionel Sambuc #endif 90*0a6a1f1dSLionel Sambucdiff -rNU3 dist.nbsd/libgcc/config.host dist/libgcc/config.host 91*0a6a1f1dSLionel Sambuc--- dist.nbsd/libgcc/config.host 2015-10-16 12:40:19.000000000 +0200 92*0a6a1f1dSLionel Sambuc+++ dist/libgcc/config.host 2015-10-16 13:36:44.000000000 +0200 93*0a6a1f1dSLionel Sambuc@@ -325,6 +325,10 @@ 94*0a6a1f1dSLionel Sambuc tmake_file="$tmake_file arm/t-arm arm/t-vxworks t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" 95*0a6a1f1dSLionel Sambuc extra_parts="$extra_parts crti.o crtn.o" 96d19d7d58SLionel Sambuc ;; 97d19d7d58SLionel Sambuc+arm*-*-minix*) 98*0a6a1f1dSLionel Sambuc+ tmake_file="$tmake_file arm/t-arm" 99*0a6a1f1dSLionel Sambuc+ unwind_header=config/arm/unwind-arm.h 100d19d7d58SLionel Sambuc+ ;; 101d19d7d58SLionel Sambuc arm*-*-netbsdelf*) 102*0a6a1f1dSLionel Sambuc tmake_file="$tmake_file arm/t-arm" 103*0a6a1f1dSLionel Sambuc case ${host} in 104*0a6a1f1dSLionel Sambuc@@ -525,6 +529,8 @@ 105*0a6a1f1dSLionel Sambuc x86_64-*-freebsd*) 106*0a6a1f1dSLionel Sambuc tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" 107d19d7d58SLionel Sambuc ;; 108d19d7d58SLionel Sambuc+i[34567]86-*-minix*) 109d19d7d58SLionel Sambuc+ ;; 110*0a6a1f1dSLionel Sambuc i[34567]86-*-netbsdelf*) 111d19d7d58SLionel Sambuc ;; 112*0a6a1f1dSLionel Sambuc x86_64-*-netbsd*) 113