diff options
Diffstat (limited to 'contrib/gcc/config.gcc')
-rw-r--r-- | contrib/gcc/config.gcc | 67 |
1 files changed, 18 insertions, 49 deletions
diff --git a/contrib/gcc/config.gcc b/contrib/gcc/config.gcc index 6736c3a..80664e1 100644 --- a/contrib/gcc/config.gcc +++ b/contrib/gcc/config.gcc @@ -365,6 +365,16 @@ esac case $machine in *-*-linux*) xm_defines=POSIX + case $machine in + *-*-linux*ecoff* | *-*-linux*libc1* | *-*-linux*oldld* | *-*-linux*aout*) + ;; + *) + case x${enable_threads} in + x | xyes | xposix) thread_file='posix' + ;; + esac + ;; + esac ;; *-*-gnu*) # On the Hurd, the setup is just about the same on @@ -558,9 +568,6 @@ alpha*-*-linux*) tmake_file="t-slibgcc-elf-ver t-linux alpha/t-crtfm alpha/t-alpha alpha/t-ieee" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" gas=yes gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; alpha*-*-freebsd*) tm_file="${tm_file} ${fbsd_tm_file} alpha/elf.h alpha/freebsd.h" @@ -572,7 +579,6 @@ alpha*-*-netbsd*) tm_file="${tm_file} netbsd.h alpha/elf.h netbsd-elf.h alpha/netbsd.h" target_cpu_default="MASK_GAS" tmake_file="${tmake_file} alpha/t-alpha alpha/t-ieee" - extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" ;; alpha*-*-openbsd*) @@ -872,9 +878,6 @@ hppa*-*-linux* | parisc*-*-linux*) tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux" extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gas=yes gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; hppa*-*-openbsd*) target_cpu_default="MASK_PA_11" @@ -1118,9 +1121,6 @@ i370-*-linux*) gnu_ld=yes gas=yes elf=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; i[34567]86-*-chorusos*) xm_defines=POSIX @@ -1317,9 +1317,6 @@ i[34567]86-*-linux*) # Intel 80386's running GNU/Linux extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gnu_ld=yes float_format=i386 - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; x86_64-*-linux*) tm_file="${tm_file} i386/att.h dbxelf.h elfos.h svr4.h linux.h \ @@ -1328,9 +1325,6 @@ x86_64-*-linux*) extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gnu_ld=yes float_format=i386 - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; i[34567]86-*-gnu*) float_format=i386 @@ -1706,9 +1700,6 @@ ia64*-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h ia64/sysv4.h ia64/linux.h" tmake_file="t-slibgcc-elf-ver t-linux ia64/t-ia64 ia64/t-glibc" target_cpu_default="MASK_GNU_AS|MASK_GNU_LD" - if test x$enable_threads = xyes; then - thread_file='posix' - fi float_format=i386 ;; ia64*-*-hpux*) @@ -2099,9 +2090,6 @@ m68k-*-linux*) # Motorola m68k's running GNU/Linux extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" float_format=m68k gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; m68k-*-psos*) tmake_file=m68k/t-m68kbare @@ -2379,6 +2367,7 @@ mips*-*-netbsd*) # NetBSD/mips, either endian. tm_file="mips/little.h $tm_file" ;; esac + tmake_file="${tmake_file} mips/t-netbsd" ;; mips*-*-linux*) # Linux MIPS, either endian. tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h" @@ -2397,9 +2386,6 @@ mips*-*-linux*) # Linux MIPS, either endian. extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gnu_ld=yes gas=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; mips*el-*-openbsd*) # mips little endian target_cpu_default="MASK_GAS|MASK_ABICALLS" @@ -2867,17 +2853,11 @@ powerpc-*-linux-gnualtivec*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h" out_file=rs6000/rs6000.c tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; powerpc-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/linux.h" out_file=rs6000/rs6000.c tmake_file="rs6000/t-ppcos t-slibgcc-elf-ver t-linux rs6000/t-ppccomm" - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; powerpc-*-gnu-gnualtivec*) tm_file="${cpu_type}/${cpu_type}.h elfos.h svr4.h freebsd-spec.h gnu.h rs6000/sysv4.h rs6000/linux.h rs6000/linuxaltivec.h rs6000/gnu.h" @@ -2993,9 +2973,6 @@ s390-*-linux*) tm_file="s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; s390x-*-linux*) tm_file="s390/s390x.h s390/s390.h dbxelf.h elfos.h svr4.h linux.h s390/linux.h" @@ -3004,9 +2981,6 @@ s390x-*-linux*) out_file=s390/s390.c tmake_file="t-slibgcc-elf-ver t-linux s390/t-linux s390/t-linux64" extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; sh-*-elf*) tmake_file="sh/t-sh sh/t-elf" @@ -3045,9 +3019,6 @@ sh-*-linux*) tm_file="${tm_file} sh/elf.h sh/linux.h" tmake_file="sh/t-sh sh/t-elf sh/t-linux" gas=yes gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi float_format=sh ;; sh-*-*) @@ -3087,6 +3058,13 @@ sparc-*-openbsd*) # we need collect2 until our bug is fixed... use_collect2=yes ;; +sparc64-*-openbsd*) + tm_file="sparc/openbsd1-64.h sparc/sparc.h elfos.h svr4.h sparc/sysv4.h sparc/sol2.h sparc/sp64-elf.h openbsd.h sparc/openbsd64.h" + xm_file=sparc/xm-sp64.h + gas=yes gnu_ld=yes + with_cpu=ultrasparc + float_format=i128 + ;; sparc-*-bsd*) tm_file="${tm_file} sparc/bsd.h" ;; @@ -3124,9 +3102,6 @@ sparc-*-linux*) # Sparc's running GNU/Linux, libc6 tmake_file="t-slibgcc-elf-ver t-linux sparc/t-crtfm" extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi float_format=sparc ;; sparc-*-lynxos*) @@ -3325,9 +3300,6 @@ sparc64-*-linux*) # 64-bit Sparc's running GNU/Linux tm_file="sparc/biarch64.h ${tm_file} dbxelf.h elfos.h svr4.h sparc/sysv4.h sparc/linux64.h" extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi float_format=sparc ;; sparc64-*-netbsd*) @@ -3457,9 +3429,6 @@ xtensa-*-linux*) tmake_file="t-linux xtensa/t-xtensa" extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o" gas=yes gnu_ld=yes - if test x$enable_threads = xyes; then - thread_file='posix' - fi ;; *) echo "Configuration $machine not supported" 1>&2 |