Fixup fromcvs/togit conversion
[minix-pkgsrc.git] / lang / gcc47 / patches / patch-gcc_config.gcc
blob17b205103a822e9e0066d392545f409fae331c6a
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
9 +++ gcc/config.gcc
10 @@ -589,6 +589,26 @@ case ${target} in
11    # need_64bit_hwint=yes # system compiler has this for all arch!
12    use_gcc_stdint=wrap
13    ;;
14 +*-*-dragonfly*)
15 +  gas=yes
16 +  gnu_ld=yes
17 +  tmake_file="t-slibgcc"
18 +  case ${enable_threads} in
19 +    "" | yes | posix)
20 +      thread_file='posix'
21 +      ;;
22 +    no | gnat | single)
23 +      # Let these non-posix thread selections fall through if requested
24 +      ;;
25 +    *)
26 +      echo 'Unknown thread configuration for DragonFly BSD'
27 +      exit 1
28 +      ;;
29 +  esac
30 +  extra_options="$extra_options rpath.opt dragonfly.opt"
31 +  default_use_cxa_atexit=yes
32 +  use_gcc_stdint=wrap
33 +  ;;
34  *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu)
35    extra_options="$extra_options gnu-user.opt"
36    gas=yes
37 @@ -644,6 +664,7 @@ case ${target} in
38    esac
39    ;;
40  *-*-netbsd*)
41 +  use_gcc_stdint=wrap
42    tmake_file="t-slibgcc"
43    gas=yes
44    gnu_ld=yes
45 @@ -1196,6 +1217,14 @@ i[34567]86-*-elf*)
46  x86_64-*-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"
48         ;;
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"
52 +       ;;
53 +x86_64-*-dragonfly*)
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"
56 +       ;;
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"
59         ;;
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"
62         ;;
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"
68         ;;
69  x86_64-*-netbsd*)
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"
74         ;;
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
78                 ;;
79         i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
80                 ;;
81 +       i[34567]86-*-dragonfly* | x86_64-*-dragonfly*)
82 +               ;;
83         i[34567]86-*-freebsd* | x86_64-*-freebsd*)
84                 ;;
85         ia64*-*-linux*)