OSDN Git Service

2008-07-08 H.J. Lu <hongjiu.lu@intel.com>
[pf3gnuchains/gcc-fork.git] / libgcc / config.host
index a6e6a10..93d1dbf 100644 (file)
@@ -1,6 +1,6 @@
 # libgcc host-specific configuration file.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
-# Free Software Foundation, Inc.
+# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+# 2008 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
@@ -71,23 +71,20 @@ alpha*-*-*)
 am33_2.0-*-linux*)
        cpu_type=mn10300
        ;;
-strongarm*-*-*)
-       cpu_type=arm
-       ;;
 arm*-*-*)
        cpu_type=arm
        ;;
+avr-*-*)
+       cpu_type=avr
+       ;;    
 bfin*-*)
        cpu_type=bfin
        ;;
-ep9312*-*-*)
-       cpu_type=arm
+fido-*-*)
+       cpu_type=m68k
        ;;
 frv*)  cpu_type=frv
        ;;
-xscale-*-*)
-       cpu_type=arm
-       ;;
 i[34567]86-*-*)
        cpu_type=i386
        ;;
@@ -96,15 +93,12 @@ x86_64-*-*)
        ;;
 ia64-*-*)
        ;;
-hppa*-*-* | parisc*-*-*)
+hppa*-*-*)
        cpu_type=pa
        ;;
 m32r*-*-*)
         cpu_type=m32r
         ;;
-m680[012]0-*-*)
-       cpu_type=m68k
-       ;;
 m68k-*-*)
        ;;
 mips*-*-*)
@@ -134,9 +128,6 @@ s390*-*-*)
 sh[123456789lbe]*-*-*)
        cpu_type=sh
        ;;
-tic4x-*-*)
-        cpu_type=c4x
-        ;;
 esac
 
 # Common parts for widely ported systems.
@@ -159,9 +150,6 @@ case ${host} in
   # machine-specific sections may refine and add to this
   # configuration.
   ;;
-*-*-linux*libc1* | *-*-linux*aout*)
-  # Avoid the generic linux case.
-  ;;
 *-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu)
   # Must come before *-*-gnu* (because of *-*-linux-gnu* systems).
   extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
@@ -188,10 +176,9 @@ case ${host} in
        then tmake_file=${cpu_type}/t-$rest
        fi
        ;;
-alpha*-*-unicosmk*)
-       ;;
 alpha*-*-linux*)
        tmake_file="${tmake_file} alpha/t-crtfm"
+       extra_parts="$extra_parts crtfastmath.o"
        ;;
 alpha*-*-gnu*)
        ;;
@@ -215,7 +202,7 @@ arm-semi-aof | armel-semi-aof)
        ;;
 arm-wrs-vxworks)
        ;;
-arm*-*-freebsd*|strongarm*-*-freebsd*)
+arm*-*-freebsd*)
        ;;
 arm*-*-netbsdelf*)
        ;;
@@ -231,59 +218,53 @@ arm*-*-eabi* | arm*-*-symbianelf* )
        ;;
 arm*-*-rtems*)
        ;;
-arm*-*-elf | ep9312-*-elf)
+arm*-*-elf)
        ;;
 arm*-wince-pe*)
        ;;
 arm-*-pe*)
        ;;
-arm*-*-kaos*)
-       ;;
 avr-*-rtems*)
        ;;
 avr-*-*)
+    # Make HImode functions for AVR
+    tmake_file=${cpu_type}/t-avr
        ;;
 bfin*-elf*)
         ;;
 bfin*-uclinux*)
         ;;
+bfin*-linux-uclibc*)
+       # No need to build crtbeginT.o on uClibc systems.  Should probably
+       # be moved to the OS specific section above.
+       extra_parts="crtbegin.o crtbeginS.o crtend.o crtendS.o"
+       ;;
 bfin*-*)
         ;;
-c4x-*-rtems* | tic4x-*-rtems*)
-       ;;
-c4x-* | tic4x-*)
-       ;;
-cris-*-aout)
+crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
+       extra_parts="crtbegin.o crtend.o"
        ;;
-cris-*-elf | cris-*-none)
-       ;;
-cris-*-linux*)
+cris-*-linux* | crisv32-*-linux*)
        ;;
 crx-*-elf)
        ;;
+fido-*-elf)
+       ;;
 fr30-*-elf)
        ;;
 frv-*-elf)
        ;;
 frv-*-*linux*)
        ;;
-h8300-*-rtemscoff*)
-       ;;
 h8300-*-rtems*)
        ;;
 h8300-*-elf*)
        ;;
 h8300-*-*)
        ;;
-hppa*64*-*-linux* | parisc*64*-*-linux*)
-       ;;
-hppa*-*-linux* | parisc*-*-linux*)
+hppa*64*-*-linux*)
        ;;
-hppa1.1-*-pro*)
-       ;;
-hppa1.1-*-osf*)
-       ;;
-hppa1.1-*-bsd*)
+hppa*-*-linux*)
        ;;
 hppa[12]*-*-hpux10*)
        ;;
@@ -298,12 +279,10 @@ x86_64-*-darwin*)
        ;;
 i[34567]86-*-elf*)
        ;;
-i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
+x86_64-*-elf*)
        ;;
 i[34567]86-*-aout*)
        ;;
-i[34567]86-*-beoself* | i[34567]86-*-beos*)
-       ;;
 i[34567]86-*-freebsd*)
        ;;
 x86_64-*-freebsd*)
@@ -321,12 +300,12 @@ i[34567]86-*-openbsd*)
 i[34567]86-*-coff*)
        ;;
 i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
-       extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="${tmake_file} i386/t-crtfm"
+       extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
+       tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
        ;;
 x86_64-*-linux* | x86_64-*-kfreebsd*-gnu | x86_64-*-knetbsd*-gnu)
-       extra_parts="$extra_parts crtfastmath.o"
-       tmake_file="${tmake_file} i386/t-crtfm"
+       extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
+       tmake_file="${tmake_file} i386/t-crtpc i386/t-crtfm"
        ;;
 i[34567]86-*-gnu*)
        ;;
@@ -345,27 +324,23 @@ i[34567]86-*-nto-qnx*)
        ;;
 i[34567]86-*-rtems*)
        ;;
-i[34567]86-*-sco3.2v5*)        # 80386 running SCO Open Server 5
-       ;;
 i[34567]86-*-solaris2*)
        ;;
-i[34567]86-*-sysv5*)           # Intel x86 on System V Release 5
-       ;;
-i[34567]86-*-sysv4*)           # Intel 80386's running system V.4
-       ;;
 i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
        ;;
-i[34567]86-*-pe | i[34567]86-*-cygwin*)
+i[34567]86-*-pe)
        ;;
-i[34567]86-*-mingw32*)
+i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
+       extra_parts="crtbegin.o crtend.o crtfastmath.o"
+       tmake_file="i386/t-cygming i386/t-crtfm"
        ;;
-i[34567]86-*-uwin*)
+x86_64-*-mingw*)
        ;;
 i[34567]86-*-interix3*)
        ;;
-i[34567]86-*-kaos*)
-       ;;
 ia64*-*-elf*)
+       extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
+       tmake_file="ia64/t-ia64"
        ;;
 ia64*-*-freebsd*)
        ;;
@@ -393,9 +368,9 @@ m68k-*-aout*)
        ;;
 m68k-*-coff*)
        ;;
-m68020-*-elf* | m68k-*-elf*)
+m68k-*-elf*)
        ;;
-m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
+m68k*-*-netbsdelf*)
        ;;
 m68k*-*-openbsd*)
        ;;
@@ -443,21 +418,12 @@ mips*-*-rtems*)
        ;;
 mips-wrs-vxworks)
        ;;
-mips-wrs-windiss)      # Instruction-level simulator for VxWorks.
-       ;;
 mipstx39-*-elf* | mipstx39el-*-elf*)
        ;;
 mmix-knuth-mmixware)
        ;;
 mn10300-*-*)
        ;;
-mt-*-elf)
-        ;;
-ns32k-*-netbsdelf*)
-       echo "GCC does not yet support the ${host} target"; exit 1
-       ;;
-ns32k-*-netbsd*)
-       ;;
 pdp11-*-bsd)
         ;;
 pdp11-*-*)
@@ -468,8 +434,6 @@ powerpc64-*-linux*)
 powerpc64-*-gnu*)
        tmake_file="${tmake_file} rs6000/t-ldbl128"
        ;;
-powerpc-*-beos*)
-       ;;
 powerpc-*-darwin*)
        ;;
 powerpc64-*-darwin*)
@@ -478,8 +442,6 @@ powerpc*-*-freebsd*)
        ;;
 powerpc-*-netbsd*)
        ;;
-powerpc-*-chorusos*)
-       ;;
 powerpc-*-eabispe*)
        ;;
 powerpc-*-eabisimaltivec*)
@@ -511,22 +473,14 @@ powerpc-*-gnu*)
        ;;
 powerpc-wrs-vxworks|powerpc-wrs-vxworksae)
        ;;
-powerpc-wrs-windiss*)  # Instruction-level simulator for VxWorks.
-       ;;
 powerpc-*-lynxos*)
        ;;
-powerpcle-*-sysv*)
-       ;;
 powerpcle-*-elf*)
        ;;
 powerpcle-*-eabisim*)
        ;;
 powerpcle-*-eabi*)
        ;;
-powerpc-*-kaos*)
-       ;;
-powerpcle-*-kaos*)
-       ;;
 rs6000-ibm-aix4.[12]* | powerpc-ibm-aix4.[12]*)
        ;;
 rs6000-ibm-aix4.[3456789]* | powerpc-ibm-aix4.[3456789]*)
@@ -543,9 +497,9 @@ s390x-ibm-tpf*)
        ;;
 score-*-elf)
         ;;
-sh-*-elf* | sh[12346l]*-*-elf* | sh*-*-kaos* | \
+sh-*-elf* | sh[12346l]*-*-elf* | \
 sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
-  sh-*-linux* | sh[346lbe]*-*-linux* | \
+  sh-*-linux* | sh[2346lbe]*-*-linux* | \
   sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
    sh64-*-netbsd* | sh64l*-*-netbsd*)
        case ${host} in
@@ -554,8 +508,6 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
                ;;
        esac
        ;;
-sh-*-rtemscoff*)
-       ;;
 sh-*-rtems*)
        ;;
 sh-wrs-vxworks)
@@ -578,10 +530,10 @@ sparc64-*-solaris2* | sparcv9-*-solaris2*)
        ;;
 sparc-*-solaris2*)
        ;;
-sparc-*-sysv4*)
-       ;;
 sparc64-*-elf*)
        ;;
+sparc-wrs-vxworks)
+       ;;
 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
        ;;
 sparc64-*-linux*)              # 64-bit SPARC's running GNU/Linux
@@ -592,34 +544,18 @@ sparc64-*-netbsd*)
        ;;
 spu-*-elf*)
        ;;
-strongarm-*-elf*)
-       ;;
-strongarm-*-pe)
-       ;;
-strongarm-*-kaos*)
-       ;;
 v850e1-*-*)
        ;;
 v850e-*-*)
        ;;
 v850-*-*)
        ;;
-vax-*-bsd*)                    # VAXen running BSD
-       ;;
-vax-*-sysv*)                   # VAXen running system V
-       ;;
 vax-*-netbsdelf*)
        ;;
 vax-*-netbsd*)
        ;;
 vax-*-openbsd*)
        ;;
-vax-*-ultrix*)                 # VAXen running ultrix
-       ;;
-xscale-*-elf)
-       ;;
-xscale-*-coff)
-       ;;
 xstormy16-*-elf)
        ;;
 xtensa-*-elf*)
@@ -636,3 +572,27 @@ m32c-*-elf*)
        exit 1
        ;;
 esac
+
+case ${host} in
+i[34567]86-*-linux* | x86_64-*-linux*)
+       tmake_file="${tmake_file} t-tls"
+       ;;
+esac
+
+case ${host} in
+i[34567]86-*-darwin* | x86_64-*-darwin* | \
+  i[34567]86-*-linux* | x86_64-*-linux*)
+       if test "${host_address}" = 32; then
+               tmake_file="${tmake_file} i386/${host_address}/t-fprules-softfp"
+       fi
+       ;;
+esac
+
+case ${host} in
+i[34567]86-*-linux* | x86_64-*-linux*)
+       # Provide backward binary compatibility for 64bit Linux/x86.
+       if test "${host_address}" = 64; then
+               tmake_file="${tmake_file} i386/${host_address}/t-softfp-compat"
+       fi
+       ;;
+esac