1 $NetBSD: patch-gcc_config.gcc,v 1.2 2012/04/17 04:11:12 sbd Exp $
3 * Add t-crtstuff to tmake_file on NetBSD.
4 * Add netbsd-stdint.h to tm_file on NetBSD.
5 * wrap the system stdint.h on NetBSD.
6 * Add DragonFly support.
8 --- gcc/config.gcc.orig 2012-03-05 10:43:22.000000000 +0000
10 @@ -589,6 +589,26 @@ case ${target} in
11 # need_64bit_hwint=yes # system compiler has this for all arch!
17 + tmake_file="t-slibgcc"
18 + case ${enable_threads} in
23 + # Let these non-posix thread selections fall through if requested
26 + echo 'Unknown thread configuration for DragonFly BSD'
30 + extra_options="$extra_options rpath.opt dragonfly.opt"
31 + default_use_cxa_atexit=yes
34 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
35 extra_options="$extra_options gnu-user.opt"
37 @@ -644,6 +664,7 @@ case ${target} in
42 tmake_file="t-slibgcc"
45 @@ -1196,6 +1217,14 @@ i[34567]86-*-elf*)
47 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h"
49 +i[34567]86-*-dragonfly*)
50 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h"
51 + tmake_file="${tmake_file} i386/t-crtstuff"
54 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/x86-64.h i386/dragonfly.h"
55 + tmake_file="${tmake_file} i386/t-crtstuff"
57 i[34567]86-*-freebsd*)
58 tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h"
60 @@ -1203,12 +1232,14 @@ x86_64-*-freebsd*)
61 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"
63 i[34567]86-*-netbsdelf*)
64 - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h"
65 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h netbsd-stdint.h"
66 extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
67 + tmake_file="${tmake_file} i386/t-crtstuff"
70 - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h"
71 + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/x86-64.h i386/netbsd64.h netbsd-stdint.h"
72 extra_options="${extra_options} netbsd.opt netbsd-elf.opt"
73 + tmake_file="${tmake_file} i386/t-crtstuff"
75 i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123])
76 tm_file="i386/i386.h i386/unix.h i386/bsd.h i386/gas.h i386/gstabs.h openbsd-oldgas.h openbsd.h i386/openbsd.h"
77 @@ -3518,6 +3549,8 @@ case ${target} in
79 i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
81 + i[34567]86-*-dragonfly* | x86_64-*-dragonfly*)
83 i[34567]86-*-freebsd* | x86_64-*-freebsd*)