| @@ -1,31 +1,33 @@ | | | @@ -1,31 +1,33 @@ |
1 | $NetBSD: patch-gcc_config.gcc,v 1.1.1.1 2012/04/16 04:27:18 sbd Exp $ | | 1 | $NetBSD: patch-gcc_config.gcc,v 1.2 2012/04/17 04:11:12 sbd Exp $ |
2 | | | 2 | |
3 | * Add t-crtstuff to tmake_file on NetBSD. | | 3 | * Add t-crtstuff to tmake_file on NetBSD. |
4 | * Add netbsd-stdint.h to tm_file on NetBSD. | | 4 | * Add netbsd-stdint.h to tm_file on NetBSD. |
5 | * wrap the system stdint.h on NetBSD. | | 5 | * wrap the system stdint.h on NetBSD. |
6 | | | 6 | |
7 | --- gcc/config.gcc.orig 2012-03-05 10:43:22.000000000 +0000 | | 7 | --- gcc/config.gcc.orig 2012-03-05 10:43:22.000000000 +0000 |
8 | +++ gcc/config.gcc | | 8 | +++ gcc/config.gcc |
9 | @@ -644,6 +644,7 @@ case ${target} in | | 9 | @@ -644,6 +644,7 @@ case ${target} in |
10 | esac | | 10 | esac |
11 | ;; | | 11 | ;; |
12 | *-*-netbsd*) | | 12 | *-*-netbsd*) |
13 | + use_gcc_stdint=wrap | | 13 | + use_gcc_stdint=wrap |
14 | tmake_file="t-slibgcc" | | 14 | tmake_file="t-slibgcc" |
15 | gas=yes | | 15 | gas=yes |
16 | gnu_ld=yes | | 16 | gnu_ld=yes |
17 | @@ -1203,11 +1204,12 @@ x86_64-*-freebsd*) | | 17 | @@ -1203,12 +1204,14 @@ x86_64-*-freebsd*) |
18 | 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" | | 18 | 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" |
19 | ;; | | 19 | ;; |
20 | i[34567]86-*-netbsdelf*) | | 20 | i[34567]86-*-netbsdelf*) |
21 | - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" | | 21 | - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" |
22 | + 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" | | 22 | + 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" |
23 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | | 23 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
24 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 24 | + tmake_file="${tmake_file} i386/t-crtstuff" |
25 | ;; | | 25 | ;; |
26 | x86_64-*-netbsd*) | | 26 | x86_64-*-netbsd*) |
27 | - 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" | | 27 | - 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" |
28 | + 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" | | 28 | + 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" |
29 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | | 29 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
| | | 30 | + tmake_file="${tmake_file} i386/t-crtstuff" |
30 | ;; | | 31 | ;; |
31 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | | 32 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) |
| | | 33 | 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" |