| @@ -39,73 +39,73 @@ | | | @@ -39,73 +39,73 @@ |
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 | @@ -652,6 +675,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 | @@ -893,7 +917,32 @@ | | 52 | @@ -903,7 +927,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 arm/unknown-elf.h arm/elf.h arm/aout.h arm/arm.h arm/rtems-elf.h rtems.h newlib-stdint.h" |
54 | tmake_file="arm/t-arm arm/t-arm-elf" | | 54 | tmake_file="arm/t-arm arm/t-arm-elf t-rtems arm/t-rtems" |
55 | ;; | | 55 | ;; |
56 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 56 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) |
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" |
66 | + | | 66 | + |
67 | + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC ANDROID_DEFAULT=1" | | 67 | + tm_defines="$tm_defines DEFAULT_LIBC=LIBC_BIONIC ANDROID_DEFAULT=1" |
68 | + case $target in | | 68 | + case $target in |
69 | + arm*b-*) | | 69 | + arm*b-*) |
70 | + tm_defines="$tm_defines TARGET_BIG_ENDIAN_DEFAULT=1" | | 70 | + tm_defines="$tm_defines TARGET_BIG_ENDIAN_DEFAULT=1" |
71 | + ;; | | 71 | + ;; |
72 | + esac | | 72 | + esac |
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*-*-rtems*) |
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 | @@ -902,11 +951,6 @@ | | 86 | @@ -912,11 +961,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*-*-rtems*) |
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 | @@ -1208,19 +1252,31 @@ | | 98 | @@ -1216,19 +1260,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 | @@ -3554,6 +3610,8 @@ | | 132 | @@ -3577,6 +3633,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. |
| @@ -758,37 +758,37 @@ | | | @@ -758,37 +758,37 @@ |
758 | @@ -266,8 +278,10 @@ | | 758 | @@ -266,8 +278,10 @@ |
759 | esac | | 759 | esac |
760 | | | 760 | |
761 | case ${host} in | | 761 | case ${host} in |
762 | -*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \ | | 762 | -*-*-darwin* | *-*-freebsd* | *-*-netbsd* | *-*-openbsd* | *-*-solaris2* | \ |
763 | - alpha*-dec-osf5.1*) | | 763 | - alpha*-dec-osf5.1*) |
764 | +*-*-freebsd* | *-*-dragonfly* | *-*-netbsd* | *-*-openbsd*) | | 764 | +*-*-freebsd* | *-*-dragonfly* | *-*-netbsd* | *-*-openbsd*) |
765 | + enable_execute_stack=enable-execute-stack-freebsd.c | | 765 | + enable_execute_stack=enable-execute-stack-freebsd.c |
766 | + ;; | | 766 | + ;; |
767 | +*-*-darwin* | *-*-solaris2* | alpha*-dec-osf5.1*) | | 767 | +*-*-darwin* | *-*-solaris2* | alpha*-dec-osf5.1*) |
768 | enable_execute_stack=enable-execute-stack-mprotect.c | | 768 | enable_execute_stack=enable-execute-stack-mprotect.c |
769 | ;; | | 769 | ;; |
770 | i[34567]86-*-mingw* | x86_64-*-mingw*) | | 770 | i[34567]86-*-mingw* | x86_64-*-mingw*) |
771 | @@ -354,11 +368,11 @@ | | 771 | @@ -358,11 +372,11 @@ |
772 | 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" |
773 | extra_parts="$extra_parts crti.o crtn.o" | | 773 | extra_parts="$extra_parts crti.o crtn.o" |
774 | ;; | | 774 | ;; |
775 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 775 | -arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*) |
776 | +arm*-*-symbianelf* | arm*-*-rtemseabi*) | | 776 | +arm*-*-symbianelf* | arm*-*-rtems*) |
777 | 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" |
778 | tm_file="$tm_file arm/bpabi-lib.h" | | 778 | tm_file="$tm_file arm/bpabi-lib.h" |
779 | case ${host} in | | 779 | case ${host} in |
780 | - arm*-*-eabi* | arm*-*-rtemseabi*) | | 780 | - arm*-*-eabi* | arm*-*-rtems*) |
781 | + arm*-*-rtemseabi*) | | 781 | + arm*-*-rtems*) |
782 | tmake_file="${tmake_file} arm/t-bpabi" | | 782 | tmake_file="${tmake_file} arm/t-bpabi" |
783 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" | | 783 | extra_parts="crtbegin.o crtend.o crti.o crtn.o" |
784 | ;; | | 784 | ;; |
785 | @@ -526,16 +540,29 @@ | | 785 | @@ -526,16 +540,29 @@ |
786 | x86_64-*-elf*) | | 786 | x86_64-*-elf*) |
787 | 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" |
788 | ;; | | 788 | ;; |
789 | +i[34567]86-*-dragonfly*) | | 789 | +i[34567]86-*-dragonfly*) |
790 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | | 790 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" |
791 | + md_unwind_header=i386/dragonfly-unwind.h | | 791 | + md_unwind_header=i386/dragonfly-unwind.h |
792 | + ;; | | 792 | + ;; |
793 | +x86_64-*-dragonfly*) | | 793 | +x86_64-*-dragonfly*) |
794 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" | | 794 | + tmake_file="${tmake_file} i386/t-dragonfly i386/t-crtstuff" |
| @@ -802,27 +802,27 @@ | | | @@ -802,27 +802,27 @@ |
802 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" | | 802 | tmake_file="${tmake_file} i386/t-freebsd i386/t-crtstuff" |
803 | + md_unwind_header=i386/freebsd-unwind.h | | 803 | + md_unwind_header=i386/freebsd-unwind.h |
804 | ;; | | 804 | ;; |
805 | i[34567]86-*-netbsdelf*) | | 805 | i[34567]86-*-netbsdelf*) |
806 | + tmake_file="${tmake_file} i386/t-crtstuff" | | 806 | + tmake_file="${tmake_file} i386/t-crtstuff" |
807 | + md_unwind_header=i386/netbsd-unwind.h | | 807 | + md_unwind_header=i386/netbsd-unwind.h |
808 | ;; | | 808 | ;; |
809 | x86_64-*-netbsd*) | | 809 | x86_64-*-netbsd*) |
810 | tmake_file="${tmake_file} i386/t-crtstuff" | | 810 | tmake_file="${tmake_file} i386/t-crtstuff" |
811 | + md_unwind_header=i386/netbsd-unwind.h | | 811 | + md_unwind_header=i386/netbsd-unwind.h |
812 | ;; | | 812 | ;; |
813 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) | | 813 | i[34567]86-*-openbsd2.*|i[34567]86-*openbsd3.[0123]) |
814 | ;; | | 814 | ;; |
815 | @@ -1163,6 +1190,7 @@ | | 815 | @@ -1167,6 +1194,7 @@ |
816 | i[34567]86-*-gnu* | \ | | 816 | i[34567]86-*-gnu* | \ |
817 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \ | | 817 | i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]* | \ |
818 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ | | 818 | i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw* | \ |
819 | + i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \ | | 819 | + i[34567]86-*-dragonfly* | x86_64-*-dragonfly* | \ |
820 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) | | 820 | i[34567]86-*-freebsd* | x86_64-*-freebsd*) |
821 | tmake_file="${tmake_file} t-softfp-tf" | | 821 | tmake_file="${tmake_file} t-softfp-tf" |
822 | if test "${host_address}" = 32; then | | 822 | if test "${host_address}" = 32; then |
823 | --- libgcc/crtstuff.c.orig | | 823 | --- libgcc/crtstuff.c.orig |
824 | +++ libgcc/crtstuff.c | | 824 | +++ libgcc/crtstuff.c |
825 | @@ -81,11 +81,19 @@ | | 825 | @@ -81,11 +81,19 @@ |
826 | } | | 826 | } |
827 | #endif | | 827 | #endif |
828 | | | 828 | |
| @@ -915,28 +915,28 @@ | | | @@ -915,28 +915,28 @@ |
915 | + && (defined(__FreeBSD__) || defined(__DragonFly__)) | | 915 | + && (defined(__FreeBSD__) || defined(__DragonFly__)) |
916 | # define ElfW __ElfN | | 916 | # define ElfW __ElfN |
917 | # define USE_PT_GNU_EH_FRAME | | 917 | # define USE_PT_GNU_EH_FRAME |
918 | #endif | | 918 | #endif |
919 | | | 919 | |
920 | +#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ | | 920 | +#if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ |
921 | + && defined(TARGET_DL_ITERATE_PHDR) \ | | 921 | + && defined(TARGET_DL_ITERATE_PHDR) \ |
922 | + && (defined(__OpenBSD__) || defined(__NetBSD__)) | | 922 | + && (defined(__OpenBSD__) || defined(__NetBSD__)) |
923 | +# define ElfW(n) Elf_##n | | 923 | +# define ElfW(n) Elf_##n |
924 | +# define USE_PT_GNU_EH_FRAME | | 924 | +# define USE_PT_GNU_EH_FRAME |
925 | +#endif | | 925 | +#endif |
926 | + | | 926 | + |
927 | #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ | | 927 | #if !defined(inhibit_libc) && defined(HAVE_LD_EH_FRAME_HDR) \ |
928 | && defined(TARGET_DL_ITERATE_PHDR) \ | | 928 | && defined(__OpenBSD__) |
929 | && defined(__sun__) && defined(__svr4__) | | 929 | # define ElfW(type) Elf_##type |
930 | --- /dev/null | | 930 | --- /dev/null |
931 | +++ libgcc/config/i386/dragonfly-unwind.h | | 931 | +++ libgcc/config/i386/dragonfly-unwind.h |
932 | @@ -0,0 +1,158 @@ | | 932 | @@ -0,0 +1,158 @@ |
933 | +/* DWARF2 EH unwinding support for DragonFly BSD: AMD x86-64 and x86. | | 933 | +/* DWARF2 EH unwinding support for DragonFly BSD: AMD x86-64 and x86. |
934 | + Copyright (C) 2010 John Marino <draco@marino.st> */ | | 934 | + Copyright (C) 2010 John Marino <draco@marino.st> */ |
935 | + | | 935 | + |
936 | +/* Do code reading to identify a signal frame, and set the frame | | 936 | +/* Do code reading to identify a signal frame, and set the frame |
937 | + state data appropriately. See unwind-dw2.c for the structs. */ | | 937 | + state data appropriately. See unwind-dw2.c for the structs. */ |
938 | + | | 938 | + |
939 | +#include <sys/types.h> | | 939 | +#include <sys/types.h> |
940 | +#include <sys/sysctl.h> | | 940 | +#include <sys/sysctl.h> |
941 | +#include <signal.h> | | 941 | +#include <signal.h> |
942 | +#include <sys/ucontext.h> | | 942 | +#include <sys/ucontext.h> |
| @@ -1463,137 +1463,137 @@ | | | @@ -1463,137 +1463,137 @@ |
1463 | void | | 1463 | void |
1464 | setproctitle (const char *name ATTRIBUTE_UNUSED, ...) | | 1464 | setproctitle (const char *name ATTRIBUTE_UNUSED, ...) |
1465 | { | | 1465 | { |
1466 | +#ifndef __ANDROID__ | | 1466 | +#ifndef __ANDROID__ |
1467 | #ifdef PR_SET_NAME | | 1467 | #ifdef PR_SET_NAME |
1468 | /* On GNU/Linux this sets the top visible "comm", but not | | 1468 | /* On GNU/Linux this sets the top visible "comm", but not |
1469 | necessarily the name visible in ps. */ | | 1469 | necessarily the name visible in ps. */ |
1470 | prctl (PR_SET_NAME, name); | | 1470 | prctl (PR_SET_NAME, name); |
1471 | #endif | | 1471 | #endif |
1472 | +#endif | | 1472 | +#endif |
1473 | } | | 1473 | } |
1474 | --- gcc/configure.orig | | 1474 | --- gcc/configure.orig |
1475 | +++ gcc/configure | | 1475 | +++ gcc/configure |
1476 | @@ -26856,6 +26856,20 @@ | | 1476 | @@ -26902,6 +26902,20 @@ |
1477 | gcc_cv_target_dl_iterate_phdr=no | | 1477 | gcc_cv_target_dl_iterate_phdr=no |
1478 | fi | | 1478 | fi |
1479 | ;; | | 1479 | ;; |
1480 | + *-*-dragonfly* | *-*-freebsd*) | | 1480 | + *-*-dragonfly* | *-*-freebsd*) |
1481 | + 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 |
1482 | + gcc_cv_target_dl_iterate_phdr=yes | | 1482 | + gcc_cv_target_dl_iterate_phdr=yes |
1483 | + else | | 1483 | + else |
1484 | + gcc_cv_target_dl_iterate_phdr=no | | 1484 | + gcc_cv_target_dl_iterate_phdr=no |
1485 | + fi | | 1485 | + fi |
1486 | + ;; | | 1486 | + ;; |
1487 | + *-*-netbsd*) | | 1487 | + *-*-netbsd*) |
1488 | + 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 |
1489 | + gcc_cv_target_dl_iterate_phdr=yes | | 1489 | + gcc_cv_target_dl_iterate_phdr=yes |
1490 | + else | | 1490 | + else |
1491 | + gcc_cv_target_dl_iterate_phdr=no | | 1491 | + gcc_cv_target_dl_iterate_phdr=no |
1492 | + fi | | 1492 | + fi |
1493 | + ;; | | 1493 | + ;; |
1494 | esac | | 1494 | esac |
1495 | | | 1495 | |
1496 | if test x$gcc_cv_target_dl_iterate_phdr = xyes; then | | 1496 | if test x$gcc_cv_target_dl_iterate_phdr = xyes; then |
1497 | --- gcc/Makefile.in.orig | | 1497 | --- gcc/Makefile.in.orig |
1498 | +++ gcc/Makefile.in | | 1498 | +++ gcc/Makefile.in |
1499 | @@ -1150,7 +1150,6 @@ | | 1499 | @@ -1165,7 +1165,6 @@ |
1500 | insn-automata.o \ | | 1500 | insn-automata.o \ |
1501 | insn-emit.o \ | | 1501 | insn-emit.o \ |
1502 | insn-extract.o \ | | 1502 | insn-extract.o \ |
1503 | - insn-modes.o \ | | 1503 | - insn-modes.o \ |
1504 | insn-opinit.o \ | | 1504 | insn-opinit.o \ |
1505 | insn-output.o \ | | 1505 | insn-output.o \ |
1506 | insn-peep.o \ | | 1506 | insn-peep.o \ |
1507 | @@ -1469,13 +1468,18 @@ | | 1507 | @@ -1484,13 +1483,18 @@ |
1508 | ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \ | | 1508 | ALL_HOST_BACKEND_OBJS = $(GCC_OBJS) $(OBJS) $(OBJS-libcommon) \ |
1509 | $(OBJS-libcommon-target) @TREEBROWSER@ main.o gccspec.o cppspec.o \ | | 1509 | $(OBJS-libcommon-target) @TREEBROWSER@ main.o gccspec.o cppspec.o \ |
1510 | $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) mips-tfile.o mips-tdump.o \ | | 1510 | $(COLLECT2_OBJS) $(EXTRA_GCC_OBJS) mips-tfile.o mips-tdump.o \ |
1511 | - $(GCOV_OBJS) $(GCOV_DUMP_OBJS) | | 1511 | - $(GCOV_OBJS) $(GCOV_DUMP_OBJS) |
1512 | + $(GCOV_OBJS) $(GCOV_DUMP_OBJS) insn-modes.o insn-modes-ada.o | | 1512 | + $(GCOV_OBJS) $(GCOV_DUMP_OBJS) insn-modes.o insn-modes-ada.o |
1513 | | | 1513 | |
1514 | # This lists all host object files, whether they are included in this | | 1514 | # This lists all host object files, whether they are included in this |
1515 | # compilation or not. | | 1515 | # compilation or not. |
1516 | ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS) | | 1516 | ALL_HOST_OBJS = $(ALL_HOST_FRONTEND_OBJS) $(ALL_HOST_BACKEND_OBJS) |
1517 | | | 1517 | |
1518 | -BACKEND = main.o @TREEBROWSER@ libbackend.a libcommon-target.a libcommon.a \ | | 1518 | -BACKEND = main.o @TREEBROWSER@ libbackend.a libcommon-target.a libcommon.a \ |
1519 | +BACKEND = main.o @TREEBROWSER@ insn-modes.o libbackend.a \ | | 1519 | +BACKEND = main.o @TREEBROWSER@ insn-modes.o libbackend.a \ |
1520 | + libcommon-target.a libcommon.a \ | | 1520 | + libcommon-target.a libcommon.a \ |
1521 | + $(CPPLIB) $(LIBDECNUMBER) | | 1521 | + $(CPPLIB) $(LIBDECNUMBER) |
1522 | + | | 1522 | + |
1523 | +BACKEND2 = main.o @TREEBROWSER@ insn-modes-ada.o libbackend.a \ | | 1523 | +BACKEND2 = main.o @TREEBROWSER@ insn-modes-ada.o libbackend.a \ |
1524 | + libcommon-target.a libcommon.a \ | | 1524 | + libcommon-target.a libcommon.a \ |
1525 | $(CPPLIB) $(LIBDECNUMBER) | | 1525 | $(CPPLIB) $(LIBDECNUMBER) |
1526 | | | 1526 | |
1527 | MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \ | | 1527 | MOSTLYCLEANFILES = insn-flags.h insn-config.h insn-codes.h \ |
1528 | @@ -3506,6 +3510,8 @@ | | 1528 | @@ -3522,6 +3526,8 @@ |
1529 | $(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H) | | 1529 | $(TM_H) $(RTL_H) $(DIAGNOSTIC_CORE_H) insn-config.h $(RECOG_H) |
1530 | insn-modes.o : insn-modes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ | | 1530 | insn-modes.o : insn-modes.c $(CONFIG_H) $(SYSTEM_H) coretypes.h $(TM_H) \ |
1531 | $(MACHMODE_H) | | 1531 | $(MACHMODE_H) |
1532 | +insn-modes-ada.o : insn-modes-ada.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ | | 1532 | +insn-modes-ada.o : insn-modes-ada.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ |
1533 | + $(TM_H) $(MACHMODE_H) | | 1533 | + $(TM_H) $(MACHMODE_H) |
1534 | insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ | | 1534 | insn-opinit.o : insn-opinit.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ |
1535 | $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(FLAGS_H) $(RECOG_H) \ | | 1535 | $(TM_H) $(RTL_H) $(TM_P_H) insn-config.h $(FLAGS_H) $(RECOG_H) \ |
1536 | $(EXPR_H) $(OPTABS_H) reload.h | | 1536 | $(EXPR_H) $(OPTABS_H) reload.h |
1537 | @@ -3599,6 +3605,7 @@ | | 1537 | @@ -3615,6 +3621,7 @@ |
1538 | | | 1538 | |
1539 | insn-modes.c: s-modes; @true | | 1539 | insn-modes.c: s-modes; @true |
1540 | insn-modes.h: s-modes-h; @true | | 1540 | insn-modes.h: s-modes-h; @true |
1541 | +insn-modes-ada.c: s-modes-ada; @true | | 1541 | +insn-modes-ada.c: s-modes-ada; @true |
1542 | min-insn-modes.c: s-modes-m; @true | | 1542 | min-insn-modes.c: s-modes-m; @true |
1543 | | | 1543 | |
1544 | s-modes: build/genmodes$(build_exeext) | | 1544 | s-modes: build/genmodes$(build_exeext) |
1545 | @@ -3616,6 +3623,12 @@ | | 1545 | @@ -3632,6 +3639,12 @@ |
1546 | $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c | | 1546 | $(SHELL) $(srcdir)/../move-if-change tmp-min-modes.c min-insn-modes.c |
1547 | $(STAMP) s-modes-m | | 1547 | $(STAMP) s-modes-m |
1548 | | | 1548 | |
1549 | +s-modes-ada: s-modes | | 1549 | +s-modes-ada: s-modes |
1550 | + $(shell sed -e 's/: TARGET_96_ROUND_53_LONG_DOUBLE \? &ieee_extended_intel_96_round_53_format //' \ | | 1550 | + $(shell sed -e 's/: TARGET_96_ROUND_53_LONG_DOUBLE \? &ieee_extended_intel_96_round_53_format //' \ |
1551 | + < insn-modes.c > tmp-modes-ada.c) | | 1551 | + < insn-modes.c > tmp-modes-ada.c) |
1552 | + $(SHELL) $(srcdir)/../move-if-change tmp-modes-ada.c insn-modes-ada.c | | 1552 | + $(SHELL) $(srcdir)/../move-if-change tmp-modes-ada.c insn-modes-ada.c |
1553 | + $(STAMP) s-modes-ada | | 1553 | + $(STAMP) s-modes-ada |
1554 | + | | 1554 | + |
1555 | insn-preds.c: s-preds; @true | | 1555 | insn-preds.c: s-preds; @true |
1556 | tm-preds.h: s-preds-h; @true | | 1556 | tm-preds.h: s-preds-h; @true |
1557 | tm-constrs.h: s-constrs-h; @true | | 1557 | tm-constrs.h: s-constrs-h; @true |
1558 | @@ -4378,7 +4391,7 @@ | | 1558 | @@ -4394,7 +4407,7 @@ |
1559 | DESTDIR=$(@D) \ | | 1559 | DESTDIR=$(@D) \ |
1560 | $(SHELL) $(srcdir)/doc/install.texi2html | | 1560 | $(SHELL) $(srcdir)/doc/install.texi2html |
1561 | | | 1561 | |
1562 | -MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7 | | 1562 | -MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 doc/gfdl.7 doc/gpl.7 doc/fsf-funding.7 |
1563 | +MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 | | 1563 | +MANFILES = doc/gcov.1 doc/cpp.1 doc/gcc.1 |
1564 | | | 1564 | |
1565 | generated-manpages: man | | 1565 | generated-manpages: man |
1566 | | | 1566 | |
1567 | @@ -4530,7 +4543,7 @@ | | 1567 | @@ -4546,7 +4559,7 @@ |
1568 | # Install the driver last so that the window when things are | | 1568 | # Install the driver last so that the window when things are |
1569 | # broken is small. | | 1569 | # broken is small. |
1570 | install: install-common $(INSTALL_HEADERS) \ | | 1570 | install: install-common $(INSTALL_HEADERS) \ |
1571 | - install-cpp install-man install-info install-@POSUB@ \ | | 1571 | - install-cpp install-man install-info install-@POSUB@ \ |
1572 | + install-cpp install-man install-@POSUB@ \ | | 1572 | + install-cpp install-man install-@POSUB@ \ |
1573 | install-driver install-lto-wrapper install-gcc-ar | | 1573 | install-driver install-lto-wrapper install-gcc-ar |
1574 | | | 1574 | |
1575 | ifeq ($(enable_plugin),yes) | | 1575 | ifeq ($(enable_plugin),yes) |
1576 | @@ -4655,6 +4668,9 @@ | | 1576 | @@ -4671,6 +4684,9 @@ |
1577 | -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext) | | 1577 | -rm -f $(DESTDIR)$(bindir)/$(target_noncanonical)-gcc-$(version)$(exeext) |
1578 | -( cd $(DESTDIR)$(bindir) && \ | | 1578 | -( cd $(DESTDIR)$(bindir) && \ |
1579 | $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) ) | | 1579 | $(LN) $(GCC_INSTALL_NAME)$(exeext) $(target_noncanonical)-gcc-$(version)$(exeext) ) |
1580 | + -if [ -f gnat1$(exeext) ] ; then \ | | 1580 | + -if [ -f gnat1$(exeext) ] ; then \ |
1581 | + ( cd $(DESTDIR)$(bindir) && $(LN) $(GCC_INSTALL_NAME)$(exeext) ada$(exeext) ) \ | | 1581 | + ( cd $(DESTDIR)$(bindir) && $(LN) $(GCC_INSTALL_NAME)$(exeext) ada$(exeext) ) \ |
1582 | + fi | | 1582 | + fi |
1583 | -if [ -f gcc-cross$(exeext) ] ; then \ | | 1583 | -if [ -f gcc-cross$(exeext) ] ; then \ |
1584 | if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ | | 1584 | if [ -d $(DESTDIR)$(gcc_tooldir)/bin/. ] ; then \ |
1585 | rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ | | 1585 | rm -f $(DESTDIR)$(gcc_tooldir)/bin/gcc$(exeext); \ |
1586 | @@ -4728,10 +4744,7 @@ | | 1586 | @@ -4744,10 +4760,7 @@ |
1587 | install-man: lang.install-man \ | | 1587 | install-man: lang.install-man \ |
1588 | $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ | | 1588 | $(DESTDIR)$(man1dir)/$(GCC_INSTALL_NAME)$(man1ext) \ |
1589 | $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ | | 1589 | $(DESTDIR)$(man1dir)/$(CPP_INSTALL_NAME)$(man1ext) \ |
1590 | - $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ | | 1590 | - $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) \ |
1591 | - $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ | | 1591 | - $(DESTDIR)$(man7dir)/fsf-funding$(man7ext) \ |
1592 | - $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ | | 1592 | - $(DESTDIR)$(man7dir)/gfdl$(man7ext) \ |
1593 | - $(DESTDIR)$(man7dir)/gpl$(man7ext) | | 1593 | - $(DESTDIR)$(man7dir)/gpl$(man7ext) |
1594 | + $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) | | 1594 | + $(DESTDIR)$(man1dir)/$(GCOV_INSTALL_NAME)$(man1ext) |
1595 | | | 1595 | |
1596 | $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs | | 1596 | $(DESTDIR)$(man7dir)/%$(man7ext): doc/%.7 installdirs |
1597 | -rm -f $@ | | 1597 | -rm -f $@ |
1598 | --- configure.orig | | 1598 | --- configure.orig |
1599 | +++ configure | | 1599 | +++ configure |