| @@ -1,65 +1,65 @@ | | | @@ -1,65 +1,65 @@ |
1 | --- gcc/DEV-PHASE.orig | | 1 | --- gcc/DEV-PHASE.orig |
2 | +++ gcc/DEV-PHASE | | 2 | +++ gcc/DEV-PHASE |
3 | @@ -0,0 +1 @@ | | 3 | @@ -0,0 +1 @@ |
4 | +release | | 4 | +release |
5 | --- gcc/config.gcc.orig | | 5 | --- gcc/config.gcc.orig |
6 | +++ gcc/config.gcc | | 6 | +++ gcc/config.gcc |
7 | @@ -573,6 +573,9 @@ | | 7 | @@ -581,6 +581,9 @@ |
8 | "" | yes | posix) | | 8 | "" | yes | posix) |
9 | thread_file='posix' | | 9 | thread_file='posix' |
10 | ;; | | 10 | ;; |
11 | + gnat | single) | | 11 | + gnat | single) |
12 | + # Let these non-posix thread selections fall through if requested | | 12 | + # Let these non-posix thread selections fall through if requested |
13 | + ;; | | 13 | + ;; |
14 | *) | | 14 | *) |
15 | echo 'Unknown thread configuration for FreeBSD' | | 15 | echo 'Unknown thread configuration for FreeBSD' |
16 | exit 1 | | 16 | exit 1 |
17 | @@ -589,6 +592,26 @@ | | 17 | @@ -597,6 +600,26 @@ |
18 | # need_64bit_hwint=yes # system compiler has this for all arch! | | 18 | # need_64bit_hwint=yes # system compiler has this for all arch! |
19 | use_gcc_stdint=wrap | | 19 | use_gcc_stdint=wrap |
20 | ;; | | 20 | ;; |
21 | +*-*-dragonfly*) | | 21 | +*-*-dragonfly*) |
22 | + gas=yes | | 22 | + gas=yes |
23 | + gnu_ld=yes | | 23 | + gnu_ld=yes |
24 | + tmake_file="t-slibgcc" | | 24 | + tmake_file="t-slibgcc" |
25 | + case ${enable_threads} in | | 25 | + case ${enable_threads} in |
26 | + "" | yes | posix) | | 26 | + "" | yes | posix) |
27 | + thread_file='posix' | | 27 | + thread_file='posix' |
28 | + ;; | | 28 | + ;; |
29 | + no | gnat | single) | | 29 | + no | gnat | single) |
30 | + # Let these non-posix thread selections fall through if requested | | 30 | + # Let these non-posix thread selections fall through if requested |
31 | + ;; | | 31 | + ;; |
32 | + *) | | 32 | + *) |
33 | + echo 'Unknown thread configuration for DragonFly BSD' | | 33 | + echo 'Unknown thread configuration for DragonFly BSD' |
34 | + exit 1 | | 34 | + exit 1 |
35 | + ;; | | 35 | + ;; |
36 | + esac | | 36 | + esac |
37 | + extra_options="$extra_options rpath.opt dragonfly.opt" | | 37 | + extra_options="$extra_options rpath.opt dragonfly.opt" |
38 | + default_use_cxa_atexit=yes | | 38 | + default_use_cxa_atexit=yes |
39 | + use_gcc_stdint=wrap | | 39 | + use_gcc_stdint=wrap |
40 | + ;; | | 40 | + ;; |
41 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) | | 41 | *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu* | *-*-kopensolaris*-gnu) |
42 | extra_options="$extra_options gnu-user.opt" | | 42 | extra_options="$extra_options gnu-user.opt" |
43 | gas=yes | | 43 | gas=yes |
44 | @@ -644,6 +667,7 @@ | | 44 | @@ -652,6 +675,7 @@ |
45 | esac | | 45 | esac |
46 | ;; | | 46 | ;; |
47 | *-*-netbsd*) | | 47 | *-*-netbsd*) |
48 | + use_gcc_stdint=wrap | | 48 | + use_gcc_stdint=wrap |
49 | tmake_file="t-slibgcc" | | 49 | tmake_file="t-slibgcc" |
50 | gas=yes | | 50 | gas=yes |
51 | gnu_ld=yes | | 51 | gnu_ld=yes |
52 | @@ -885,7 +909,32 @@ | | 52 | @@ -893,7 +917,32 @@ |
53 | tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" | | 53 | tm_file="dbxelf.h elfos.h newlib-stdint.h arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/ecos-elf.h" |
54 | tmake_file="arm/t-arm arm/t-arm-elf" | | 54 | tmake_file="arm/t-arm arm/t-arm-elf" |
55 | ;; | | 55 | ;; |
56 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 56 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) |
57 | +arm*-android-eabi*) | | 57 | +arm*-android-eabi*) |
58 | + gas=yes | | 58 | + gas=yes |
59 | + gnu_ld=yes | | 59 | + gnu_ld=yes |
60 | + case ${enable_threads} in | | 60 | + case ${enable_threads} in |
61 | + "" | yes | posix) thread_file='posix' ;; | | 61 | + "" | yes | posix) thread_file='posix' ;; |
62 | + esac | | 62 | + esac |
63 | + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h" | | 63 | + tm_file="dbxelf.h elfos.h gnu-user.h linux.h linux-android.h glibc-stdint.h" |
64 | + tm_file="$tm_file arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/bpabi.h arm/linux-eabi.h" | | 64 | + tm_file="$tm_file arm/elf.h arm/linux-gas.h arm/linux-elf.h arm/bpabi.h arm/linux-eabi.h" |
65 | + tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h arm/aout.h arm/arm.h" | | 65 | + tm_file="$tm_file ../../libgcc/config/arm/bpabi-lib.h arm/aout.h arm/arm.h" |
| @@ -73,39 +73,39 @@ | | | @@ -73,39 +73,39 @@ |
73 | + extra_options="$extra_options linux.opt linux-android.opt" | | 73 | + extra_options="$extra_options linux.opt linux-android.opt" |
74 | + default_use_cxa_atexit=yes | | 74 | + default_use_cxa_atexit=yes |
75 | + use_gcc_tgmath=no | | 75 | + use_gcc_tgmath=no |
76 | + use_gcc_stdint=wrap | | 76 | + use_gcc_stdint=wrap |
77 | + | | 77 | + |
78 | + # The BPABI long long divmod functions return a 128-bit value in registers r0-r3. | | 78 | + # The BPABI long long divmod functions return a 128-bit value in registers r0-r3. |
79 | + # Correctly modeling that requires the use of TImode. | | 79 | + # Correctly modeling that requires the use of TImode. |
80 | + need_64bit_hwint=yes | | 80 | + need_64bit_hwint=yes |
81 | + ;; | | 81 | + ;; |
82 | +arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 82 | +arm*-*-symbianelf* | arm*-*-rtemseabi*) |
83 | # The BPABI long long divmod functions return a 128-bit value in | | 83 | # The BPABI long long divmod functions return a 128-bit value in |
84 | # registers r0-r3. Correctly modeling that requires the use of | | 84 | # registers r0-r3. Correctly modeling that requires the use of |
85 | # TImode. | | 85 | # TImode. |
86 | @@ -894,11 +943,6 @@ | | 86 | @@ -902,11 +951,6 @@ |
87 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" | | 87 | tm_file="dbxelf.h elfos.h arm/unknown-elf.h arm/elf.h arm/bpabi.h" |
88 | tmake_file="arm/t-arm arm/t-arm-elf" | | 88 | tmake_file="arm/t-arm arm/t-arm-elf" |
89 | case ${target} in | | 89 | case ${target} in |
90 | - arm*-*-eabi*) | | 90 | - arm*-*-eabi*) |
91 | - tm_file="$tm_file newlib-stdint.h" | | 91 | - tm_file="$tm_file newlib-stdint.h" |
92 | - tmake_file="${tmake_file} arm/t-bpabi" | | 92 | - tmake_file="${tmake_file} arm/t-bpabi" |
93 | - use_gcc_stdint=wrap | | 93 | - use_gcc_stdint=wrap |
94 | - ;; | | 94 | - ;; |
95 | arm*-*-rtemseabi*) | | 95 | arm*-*-rtemseabi*) |
96 | tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h" | | 96 | tm_file="${tm_file} rtems.h arm/rtems-eabi.h newlib-stdint.h" |
97 | tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi" | | 97 | tmake_file="${tmake_file} arm/t-bpabi t-rtems arm/t-rtems-eabi" |
98 | @@ -1196,19 +1240,31 @@ | | 98 | @@ -1208,19 +1252,31 @@ |
99 | x86_64-*-elf*) | | 99 | x86_64-*-elf*) |
100 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" | | 100 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h newlib-stdint.h i386/i386elf.h i386/x86-64.h" |
101 | ;; | | 101 | ;; |
102 | +i[34567]86-*-dragonfly*) | | 102 | +i[34567]86-*-dragonfly*) |
103 | + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h" | | 103 | + tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h dragonfly.h dragonfly-stdint.h i386/dragonfly.h" |
104 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 104 | + tmake_file="${tmake_file} i386/t-crtstuff" |
105 | + ;; | | 105 | + ;; |
106 | +x86_64-*-dragonfly*) | | 106 | +x86_64-*-dragonfly*) |
107 | + 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" | | 107 | + 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" |
108 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 108 | + tmake_file="${tmake_file} i386/t-crtstuff" |
109 | + ;; | | 109 | + ;; |
110 | i[34567]86-*-freebsd*) | | 110 | i[34567]86-*-freebsd*) |
111 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" | | 111 | tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h ${fbsd_tm_file} i386/freebsd.h" |
| @@ -119,27 +119,27 @@ | | | @@ -119,27 +119,27 @@ |
119 | - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" | | 119 | - tm_file="${tm_file} i386/unix.h i386/att.h dbxelf.h elfos.h netbsd.h netbsd-elf.h i386/netbsd-elf.h" |
120 | + 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" | | 120 | + 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" |
121 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | | 121 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
122 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 122 | + tmake_file="${tmake_file} i386/t-crtstuff" |
123 | ;; | | 123 | ;; |
124 | x86_64-*-netbsd*) | | 124 | x86_64-*-netbsd*) |
125 | - 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" | | 125 | - 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" |
126 | + 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" | | 126 | + 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" |
127 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" | | 127 | extra_options="${extra_options} netbsd.opt netbsd-elf.opt" |
128 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 128 | + tmake_file="${tmake_file} i386/t-crtstuff" |
129 | ;; | | 129 | ;; |
130 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | | 130 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) |
131 | 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" | | 131 | 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" |
132 | @@ -3530,6 +3586,8 @@ | | 132 | @@ -3554,6 +3610,8 @@ |
133 | ;; | | 133 | ;; |
134 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) | | 134 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*) |
135 | ;; | | 135 | ;; |
136 | + i[34567]86-*-dragonfly* | x86_64-*-dragonfly*) | | 136 | + i[34567]86-*-dragonfly* | x86_64-*-dragonfly*) |
137 | + ;; | | 137 | + ;; |
138 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) | | 138 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) |
139 | ;; | | 139 | ;; |
140 | ia64*-*-linux*) | | 140 | ia64*-*-linux*) |
141 | --- /dev/null | | 141 | --- /dev/null |
142 | +++ gcc/config/dragonfly-stdint.h | | 142 | +++ gcc/config/dragonfly-stdint.h |
143 | @@ -0,0 +1,56 @@ | | 143 | @@ -0,0 +1,56 @@ |
144 | +/* Definitions for <stdint.h> types for DragonFly systems. | | 144 | +/* Definitions for <stdint.h> types for DragonFly systems. |
145 | + Copyright (C) 2009 Free Software Foundation, Inc. | | 145 | + Copyright (C) 2009 Free Software Foundation, Inc. |
| @@ -563,40 +563,61 @@ | | | @@ -563,40 +563,61 @@ |
563 | +#define LIBGCC2_TF_CEXT q | | 563 | +#define LIBGCC2_TF_CEXT q |
564 | +#define TF_SIZE 113 | | 564 | +#define TF_SIZE 113 |
565 | + | | 565 | + |
566 | +/* Static stack checking is supported by means of probes. */ | | 566 | +/* Static stack checking is supported by means of probes. */ |
567 | +#define STACK_CHECK_STATIC_BUILTIN 1 | | 567 | +#define STACK_CHECK_STATIC_BUILTIN 1 |
568 | + | | 568 | + |
569 | +/* Support for i386 has been removed from DragonFly for several releases */ | | 569 | +/* Support for i386 has been removed from DragonFly for several releases */ |
570 | +#define SUBTARGET32_DEFAULT_CPU "i486" | | 570 | +#define SUBTARGET32_DEFAULT_CPU "i486" |
571 | + | | 571 | + |
572 | +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack | | 572 | +#define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
573 | + | | 573 | + |
574 | --- gcc/config/i386/freebsd.h.orig | | 574 | --- gcc/config/i386/freebsd.h.orig |
575 | +++ gcc/config/i386/freebsd.h | | 575 | +++ gcc/config/i386/freebsd.h |
576 | @@ -102,6 +102,7 @@ | | 576 | @@ -91,6 +91,12 @@ |
| | | 577 | When the -shared link option is used a final link is not being |
| | | 578 | done. */ |
| | | 579 | |
| | | 580 | +#if FBSD_MAJOR < 9 |
| | | 581 | +#define ELF_HASH_STYLE "" |
| | | 582 | +#else |
| | | 583 | +#define ELF_HASH_STYLE "--hash-style=both " |
| | | 584 | +#endif |
| | | 585 | + |
| | | 586 | #undef LINK_SPEC |
| | | 587 | #define LINK_SPEC "\ |
| | | 588 | %{p:%nconsider using '-pg' instead of '-p' with gprof(1)} \ |
| | | 589 | @@ -102,6 +108,7 @@ |
577 | %{rdynamic:-export-dynamic} \ | | 590 | %{rdynamic:-export-dynamic} \ |
578 | -dynamic-linker %(fbsd_dynamic_linker) } \ | | 591 | -dynamic-linker %(fbsd_dynamic_linker) } \ |
579 | %{static:-Bstatic}} \ | | 592 | %{static:-Bstatic}} \ |
580 | + %{!static:--hash-style=both -rpath @PREFIX@/gcc-aux/lib} \ | | 593 | + %{!static:" ELF_HASH_STYLE "-rpath @PREFIX@/gcc-aux/lib} \ |
581 | %{symbolic:-Bsymbolic}" | | 594 | %{symbolic:-Bsymbolic}" |
582 | | | 595 | |
583 | /* A C statement to output to the stdio stream FILE an assembler | | 596 | /* A C statement to output to the stdio stream FILE an assembler |
584 | @@ -148,3 +149,5 @@ | | 597 | @@ -148,3 +155,5 @@ |
585 | | | 598 | |
586 | #define TARGET_ASM_FILE_END file_end_indicate_exec_stack | | 599 | #define TARGET_ASM_FILE_END file_end_indicate_exec_stack |
587 | | | 600 | |
588 | +/* Compile in __enable_execute_stack (void *) (see config.host) */ | | 601 | +/* Compile in __enable_execute_stack (void *) (see config.host) */ |
589 | +#define HAVE_ENABLE_EXECUTE_STACK | | 602 | +#define HAVE_ENABLE_EXECUTE_STACK |
| | | 603 | --- gcc/config/i386/freebsd64.h.orig |
| | | 604 | +++ gcc/config/i386/freebsd64.h |
| | | 605 | @@ -41,4 +41,5 @@ |
| | | 606 | %{rdynamic:-export-dynamic} \ |
| | | 607 | -dynamic-linker %(fbsd_dynamic_linker) } \ |
| | | 608 | %{static:-Bstatic}} \ |
| | | 609 | + %{!static:" ELF_HASH_STYLE "-rpath @PREFIX@/gcc-aux/lib} \ |
| | | 610 | %{symbolic:-Bsymbolic}" |
590 | --- gcc/config/i386/netbsd-elf.h.orig | | 611 | --- gcc/config/i386/netbsd-elf.h.orig |
591 | +++ gcc/config/i386/netbsd-elf.h | | 612 | +++ gcc/config/i386/netbsd-elf.h |
592 | @@ -38,7 +38,8 @@ | | 613 | @@ -38,7 +38,8 @@ |
593 | /* Provide a LINK_SPEC appropriate for a NetBSD/i386 ELF target. */ | | 614 | /* Provide a LINK_SPEC appropriate for a NetBSD/i386 ELF target. */ |
594 | | | 615 | |
595 | #undef LINK_SPEC | | 616 | #undef LINK_SPEC |
596 | -#define LINK_SPEC NETBSD_LINK_SPEC_ELF | | 617 | -#define LINK_SPEC NETBSD_LINK_SPEC_ELF |
597 | +#define LINK_SPEC NETBSD_LINK_SPEC_ELF \ | | 618 | +#define LINK_SPEC NETBSD_LINK_SPEC_ELF \ |
598 | +"%{!static:-rpath @PREFIX@/gcc-aux/lib}" | | 619 | +"%{!static:-rpath @PREFIX@/gcc-aux/lib}" |
599 | | | 620 | |
600 | #define NETBSD_ENTRY_POINT "__start" | | 621 | #define NETBSD_ENTRY_POINT "__start" |
601 | | | 622 | |
602 | @@ -119,3 +120,9 @@ | | 623 | @@ -119,3 +120,9 @@ |
| @@ -751,27 +772,27 @@ | | | @@ -751,27 +772,27 @@ |
751 | tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" | | 772 | tmake_file="$tmake_file arm/t-arm arm/t-elf t-softfp-sfdf t-softfp-excl arm/t-softfp t-softfp" |
752 | extra_parts="$extra_parts crti.o crtn.o" | | 773 | extra_parts="$extra_parts crti.o crtn.o" |
753 | ;; | | 774 | ;; |
754 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 775 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) |
755 | +arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 776 | +arm*-*-symbianelf* | arm*-*-rtemseabi*) |
756 | tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" | | 777 | tmake_file="${tmake_file} arm/t-arm arm/t-elf t-fixedpoint-gnu-prefix" |
757 | tm_file="$tm_file arm/bpabi-lib.h" | | 778 | tm_file="$tm_file arm/bpabi-lib.h" |
758 | case ${host} in | | 779 | case ${host} in |
759 | - arm*-*-eabi* | arm*-*-rtemseabi*) | | 780 | - arm*-*-eabi* | arm*-*-rtemseabi*) |
760 | + arm*-*-rtemseabi*) | | 781 | + arm*-*-rtemseabi*) |
761 | tmake_file="${tmake_file} arm/t-bpabi" | | 782 | tmake_file="${tmake_file} arm/t-bpabi" |
762 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" | | 783 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
763 | ;; | | 784 | ;; |
764 | @@ -523,16 +537,29 @@ | | 785 | @@ -526,16 +540,29 @@ |
765 | x86_64-*-elf*) | | 786 | x86_64-*-elf*) |
766 | tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" | | 787 | tmake_file="$tmake_file i386/t-crtstuff t-crtstuff-pic t-libgcc-pic" |
767 | ;; | | 788 | ;; |
768 | +i[34567]86-*-dragonfly*) | | 789 | +i[34567]86-*-dragonfly*) |
769 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | | 790 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" |
770 | + md_unwind_header=i386/dragonfly-unwind.h | | 791 | + md_unwind_header=i386/dragonfly-unwind.h |
771 | + ;; | | 792 | + ;; |
772 | +x86_64-*-dragonfly*) | | 793 | +x86_64-*-dragonfly*) |
773 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | | 794 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" |
774 | + md_unwind_header=i386/dragonfly-unwind.h | | 795 | + md_unwind_header=i386/dragonfly-unwind.h |
775 | + ;; | | 796 | + ;; |
776 | i[34567]86-*-freebsd*) | | 797 | i[34567]86-*-freebsd*) |
777 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" | | 798 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
| @@ -781,27 +802,27 @@ | | | @@ -781,27 +802,27 @@ |
781 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" | | 802 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
782 | + md_unwind_header=i386/freebsd-unwind.h | | 803 | + md_unwind_header=i386/freebsd-unwind.h |
783 | ;; | | 804 | ;; |
784 | i[34567]86-*-netbsdelf*) | | 805 | i[34567]86-*-netbsdelf*) |
785 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 806 | + tmake_file="${tmake_file} i386/t-crtstuff" |
786 | + md_unwind_header=i386/netbsd-unwind.h | | 807 | + md_unwind_header=i386/netbsd-unwind.h |
787 | ;; | | 808 | ;; |
788 | x86_64-*-netbsd*) | | 809 | x86_64-*-netbsd*) |
789 | tmake_file="${tmake_file} i386/t-crtstuff" | | 810 | tmake_file="${tmake_file} i386/t-crtstuff" |
790 | + md_unwind_header=i386/netbsd-unwind.h | | 811 | + md_unwind_header=i386/netbsd-unwind.h |
791 | ;; | | 812 | ;; |
792 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | | 813 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) |
793 | ;; | | 814 | ;; |
794 | @@ -1160,6 +1187,7 @@ | | 815 | @@ -1163,6 +1190,7 @@ |
795 | i[34567]86-*-gnu* | \ | | 816 | i[34567]86-*-gnu* | \ |
796 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \ | | 817 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \ |
797 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ | | 818 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ |
798 | + i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \ | | 819 | + i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \ |
799 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) | | 820 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) |
800 | tmake_file="${tmake_file} t-softfp-tf" | | 821 | tmake_file="${tmake_file} t-softfp-tf" |
801 | if test "${host_address}" = 32; then | | 822 | if test "${host_address}" = 32; then |
802 | --- libgcc/crtstuff.c.orig | | 823 | --- libgcc/crtstuff.c.orig |
803 | +++ libgcc/crtstuff.c | | 824 | +++ libgcc/crtstuff.c |
804 | @@ -81,11 +81,19 @@ | | 825 | @@ -81,11 +81,19 @@ |
805 | } | | 826 | } |
806 | #endif | | 827 | #endif |
807 | | | 828 | |
| @@ -1442,27 +1463,27 @@ | | | @@ -1442,27 +1463,27 @@ |
1442 | void | | 1463 | void |
1443 | setproctitle (const char *name ATTRIBUTE_UNUSED, ...) | | 1464 | setproctitle (const char *name ATTRIBUTE_UNUSED, ...) |
1444 | { | | 1465 | { |
1445 | +#ifndef __ANDROID__ | | 1466 | +#ifndef __ANDROID__ |
1446 | #ifdef PR_SET_NAME | | 1467 | #ifdef PR_SET_NAME |
1447 | /* On GNU/Linux this sets the top visible "comm", but not | | 1468 | /* On GNU/Linux this sets the top visible "comm", but not |
1448 | necessarily the name visible in ps. */ | | 1469 | necessarily the name visible in ps. */ |
1449 | prctl (PR_SET_NAME, name); | | 1470 | prctl (PR_SET_NAME, name); |
1450 | #endif | | 1471 | #endif |
1451 | +#endif | | 1472 | +#endif |
1452 | } | | 1473 | } |
1453 | --- gcc/configure.orig | | 1474 | --- gcc/configure.orig |
1454 | +++ gcc/configure | | 1475 | +++ gcc/configure |
1455 | @@ -26810,6 +26810,20 @@ | | 1476 | @@ -26856,6 +26856,20 @@ |
1456 | gcc_cv_target_dl_iterate_phdr=no | | 1477 | gcc_cv_target_dl_iterate_phdr=no |
1457 | fi | | 1478 | fi |
1458 | ;; | | 1479 | ;; |
1459 | + *-*-dragonfly* | *-*-freebsd*) | | 1480 | + *-*-dragonfly* | *-*-freebsd*) |
1460 | + if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then | | 1481 | + if grep dl_iterate_phdr $target_header_dir/sys/link_elf.h > /dev/null 2>&1; then |
1461 | + gcc_cv_target_dl_iterate_phdr=yes | | 1482 | + gcc_cv_target_dl_iterate_phdr=yes |
1462 | + else | | 1483 | + else |
1463 | + gcc_cv_target_dl_iterate_phdr=no | | 1484 | + gcc_cv_target_dl_iterate_phdr=no |
1464 | + fi | | 1485 | + fi |
1465 | + ;; | | 1486 | + ;; |
1466 | + *-*-netbsd*) | | 1487 | + *-*-netbsd*) |
1467 | + if grep dl_iterate_phdr $target_header_dir/link_elf.h > /dev/null 2>&1; then | | 1488 | + if grep dl_iterate_phdr $target_header_dir/link_elf.h > /dev/null 2>&1; then |
1468 | + gcc_cv_target_dl_iterate_phdr=yes | | 1489 | + gcc_cv_target_dl_iterate_phdr=yes |
| @@ -1566,22 +1587,22 @@ | | | @@ -1566,22 +1587,22 @@ |
1566 | install-man: lang.install-man \ | | 1587 | install-man: lang.install-man \ |
1567 | $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ | | 1588 | $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ |
1568 | $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ | | 1589 | $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ |
1569 | - $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ | | 1590 | - $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ |
1570 | - $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ | | 1591 | - $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ |
1571 | - $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ | | 1592 | - $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ |
1572 | - $(DESTDIR)$(man7dir)/gpl$(man7ext) | | 1593 | - $(DESTDIR)$(man7dir)/gpl$(man7ext) |
1573 | + $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) | | 1594 | + $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) |
1574 | | | 1595 | |
1575 | $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs | | 1596 | $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs |
1576 | -rm -f $@ | | 1597 | -rm -f $@ |
1577 | --- configure.orig | | 1598 | --- configure.orig |
1578 | +++ configure | | 1599 | +++ configure |
1579 | @@ -14412,7 +14412,7 @@ | | 1600 | @@ -14419,7 +14419,7 @@ |
1580 | _ACEOF | | 1601 | _ACEOF |
1581 | if ac_fn_c_try_compile "$LINENO"; then : | | 1602 | if ac_fn_c_try_compile "$LINENO"; then : |
1582 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | | 1603 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 |
1583 | -$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" | | 1604 | -$as_echo "yes" >&6; }; stage1_cflags="$stage1_cflags -fkeep-inline-functions" |
1584 | +$as_echo "yes" >&6; }; | | 1605 | +$as_echo "yes" >&6; }; |
1585 | else | | 1606 | else |
1586 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | | 1607 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 |
1587 | $as_echo "no" >&6; } | | 1608 | $as_echo "no" >&6; } |