diff options
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 99 |
1 files changed, 79 insertions, 20 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index 3e889ae2280..6493ccf5fe1 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -1,5 +1,5 @@ # GCC build-, host- and target-specific configuration file. -# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. +# Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003 Free Software Foundation, Inc. #This file is part of GCC. @@ -212,14 +212,62 @@ target_gtfiles= # Obsolete configurations. case $machine in - m88k-*-aout* \ - | m88k-*-openbsd* \ - | m88k-*-sysv4* \ - | mips-sni-sysv4 \ - | mn10200-*-* \ - | ns32k-*-openbsd* \ - | romp-*-openbsd* \ - | vax-*-vms* \ + m88k-*-* \ + | mn10200-*-* \ + | romp-*-* \ + | alpha*-*-interix* \ + | alpha*-*-linux*libc1* \ + | alpha*-*-linux*ecoff* \ + | arm*-*-aout* \ + | arm*-*-conix* \ + | arm*-*-oabi \ + | strongarm-*-coff* \ + | hppa1.0-*-osf* \ + | hppa1.0-*-bsd* \ + | hppa1.[01]-*-hpux[789]* \ + | hppa*-*-hiux* \ + | hppa*-*-lites* \ + | i?86-*-win32 \ + | m68000-hp-bsd* \ + | m68000-sun-sunos* \ + | m68000-att-sysv* \ + | m68k-atari-sysv* \ + | m68k-motorola-sysv* \ + | m68k-ncr-sysv* \ + | m68k-plexus-sysv* \ + | m68k-tti-* \ + | m68k-crds-unos* \ + | m68k-cbm-sysv* \ + | m68k-ccur-rtu* \ + | m68k-hp-bsd* \ + | m68k-sun-mach* \ + | m68k-sun-sunos* \ + | m68k-*-linux*aout* \ + | m68k-*-linux*libc1* \ + | m68k-*-psos* \ + | mips*-*-ecoff* \ + | mips-sni-sysv4 \ + | mips64orion-*-rtems* \ + | ns32k-*-openbsd* \ + | powerpc*-*-sysv* \ + | powerpc*-*-linux*libc1* \ + | rs6000-ibm-aix[123]* \ + | rs6000-bull-bosx \ + | rs6000-*-mach* \ + | sparc-*-aout* \ + | sparc-*-netbsd*aout* \ + | sparc-*-bsd* \ + | sparc-*-chorusos* \ + | sparc-*-linux*aout* \ + | sparc-*-linux*libc1* \ + | sparc-*-lynxos* \ + | sparc-hal-solaris2* \ + | sparc-*-sunos[34]* \ + | sparclet-*-aout* \ + | sparclite-*-aout* \ + | sparc86x-*-aout* \ + | v850-*-rtems* \ + | vax-*-vms* \ ) if test "x$enable_obsolete" != xyes; then echo "*** Configuration $machine is obsolete." >&2 @@ -367,7 +415,18 @@ case $machine in xm_defines=POSIX gas=yes gnu_ld=yes + + # NetBSD 2.0 and later get POSIX threads enabled by default. + # Allow them to be explicitly enabled on any other version. case x${enable_threads} in + x) + case $machine in + *-*-netbsd[2-9]* | *-*-netbsdelf[2-9]*) + thread_file='posix' + tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" + ;; + esac + ;; xyes | xposix) thread_file='posix' tm_defines="${tm_defines} NETBSD_ENABLE_PTHREADS" @@ -753,7 +812,7 @@ hppa*64*-*-linux* | parisc*64*-*-linux*) gas=yes gnu_ld=yes ;; hppa*-*-linux* | parisc*-*-linux*) - target_cpu_default="MASK_PA_11" + target_cpu_default="MASK_PA_11 | MASK_NO_SPACE_REGS" tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h pa/pa-linux.h \ pa/pa32-regs.h pa/pa32-linux.h" tmake_file="t-slibgcc-elf-ver t-linux pa/t-linux" @@ -779,8 +838,11 @@ hppa1.1-*-rtems*) xm_defines=POSIX target_cpu_default="(MASK_JUMP_IN_DELAY | MASK_PORTABLE_RUNTIME | MASK_GAS | MASK_NO_SPACE_REGS | MASK_SOFT_FLOAT)" tm_file="${tm_file} pa/pa32-regs.h dbxelf.h elfos.h pa/elf.h pa/pa-pro-end.h libgloss.h pa/rtems.h rtems.h" - tmake_file="pa/t-bsd pa/t-pro" + tmake_file="pa/t-bsd pa/t-pro t-rtems" xmake_file="pa/x-ada" + if test x$enable_threads = xyes; then + thread_file='rtems' + fi ;; hppa1.0-*-osf*) tm_file="${tm_file} pa/pa32-regs.h pa/som.h pa/pa-osf.h" @@ -894,7 +956,7 @@ hppa*64*-*-hpux11*) tmake_file="pa/t-pa64 pa/t-pa-hpux" xmake_file="pa/x-ada" target_cpu_default="(MASK_PA_11|MASK_PA_20|MASK_GAS)" - + extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtbeginT.o" if test x$gnu_ld = xyes then target_cpu_default="${target_cpu_default}|MASK_GNU_LD" @@ -907,7 +969,6 @@ hppa*64*-*-hpux11*) # tmake_file="${tmake_file} pa/t-dce-thr" # fi install_headers_dir=install-headers-cpio - use_collect2=yes ;; hppa1.1-*-hpux11* | hppa2*-*-hpux11*) target_cpu_default="MASK_PA_11" @@ -1441,7 +1502,7 @@ ip2k-*-elf) ;; m32r-*-elf*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file}" - extra_parts="crtinit.o crtfini.o" + extra_parts="crtinit.o crtfini.o m32rx/crtinit.o m32rx/crtfini.o" ;; # m68hc11 and m68hc12 share the same machine description. m68hc11-*-*|m6811-*-*) @@ -1679,8 +1740,6 @@ m68k-*-linux*) # Motorola m68k's running GNU/Linux # aka the GNU/Linux C library 6. tm_file=m68k/linux.h tmake_file="t-slibgcc-elf-ver t-linux m68k/t-linux" - extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o" - gnu_ld=yes ;; m68k-*-psos*) tmake_file=m68k/t-m68kbare @@ -1727,7 +1786,7 @@ mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h" if test x$stabs = xyes then - tm_file="${tm_file} dbx.h" + tm_file="${tm_file} dbx.h mips/dbxmdebug.h" fi tmake_file=mips/t-iris5-gas else @@ -1801,7 +1860,7 @@ mips-sgi-irix5*) # SGI System V.4., IRIX 5 tm_file="mips/iris5.h mips/iris5gas.h" if test x$stabs = xyes then - tm_file="${tm_file} dbx.h" + tm_file="${tm_file} dbx.h mips/dbxmdebug.h" fi tmake_file=mips/t-iris5-gas else @@ -2055,7 +2114,7 @@ powerpc-*-eabi*) powerpc-*-rtems*) xm_defines=POSIX tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/rtems.h rtems.h" - tmake_file="rs6000/t-ppcgas t-rtems rs6000/t-ppccomm" + tmake_file="rs6000/t-rtems t-rtems rs6000/t-ppccomm" if test x$enable_threads = xyes; then thread_file='rtems' fi @@ -2703,7 +2762,7 @@ xtensa-*-elf*) ;; xtensa-*-linux*) tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h xtensa/linux.h" - tmake_file="t-linux xtensa/t-xtensa" + tmake_file="t-slibgcc-elf-ver t-linux xtensa/t-xtensa" ;; *) echo "*** Configuration $machine not supported" 1>&2 |