OSDN Git Service

PR target/34210 PR target/35508 * config.host (avr-*-*): Add avr cpu_type and avr...
[pf3gnuchains/gcc-fork.git] / libgcc / config.host
index f5fff37..d695b44 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.
 
@@ -77,12 +77,18 @@ strongarm*-*-*)
 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-*-*)
@@ -134,9 +140,6 @@ s390*-*-*)
 sh[123456789lbe]*-*-*)
        cpu_type=sh
        ;;
-tic4x-*-*)
-        cpu_type=c4x
-        ;;
 esac
 
 # Common parts for widely ported systems.
@@ -243,6 +246,8 @@ arm*-*-kaos*)
 avr-*-rtems*)
        ;;
 avr-*-*)
+    # Make HImode functions for AVR
+    tmake_file=${cpu_type}/t-avr
        ;;
 bfin*-elf*)
         ;;
@@ -255,27 +260,23 @@ bfin*-linux-uclibc*)
        ;;
 bfin*-*)
         ;;
-c4x-*-rtems* | tic4x-*-rtems*)
-       ;;
-c4x-* | tic4x-*)
-       ;;
 cris-*-aout)
        ;;
-cris-*-elf | cris-*-none)
+crisv32-*-elf | crisv32-*-none | cris-*-elf | cris-*-none)
        extra_parts="crtbegin.o crtend.o"
        ;;
-cris-*-linux*)
+cris-*-linux* | crisv32-*-linux*)
        ;;
 crx-*-elf)
        ;;
+fido-*-elf)
+       ;;
 fr30-*-elf)
        ;;
 frv-*-elf)
        ;;
 frv-*-*linux*)
        ;;
-h8300-*-rtemscoff*)
-       ;;
 h8300-*-rtems*)
        ;;
 h8300-*-elf*)
@@ -305,6 +306,8 @@ x86_64-*-darwin*)
        ;;
 i[34567]86-*-elf*)
        ;;
+x86_64-*-elf*)
+       ;;
 i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
        ;;
 i[34567]86-*-aout*)
@@ -328,12 +331,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*)
        ;;
@@ -362,9 +365,13 @@ 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* | x86_64-*-mingw*)
+i[34567]86-*-cygwin* | i[34567]86-*-mingw*)
+       extra_parts="crtbegin.o crtend.o crtfastmath.o"
+       tmake_file="i386/t-cygming i386/t-crtfm"
+       ;;
+x86_64-*-mingw*)
        ;;
 i[34567]86-*-uwin*)
        ;;
@@ -373,6 +380,8 @@ 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*)
        ;;
@@ -460,11 +469,6 @@ mn10300-*-*)
        ;;
 mt-*-elf)
         ;;
-ns32k-*-netbsdelf*)
-       echo "GCC does not yet support the ${host} target"; exit 1
-       ;;
-ns32k-*-netbsd*)
-       ;;
 pdp11-*-bsd)
         ;;
 pdp11-*-*)
@@ -561,8 +565,6 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
                ;;
        esac
        ;;
-sh-*-rtemscoff*)
-       ;;
 sh-*-rtems*)
        ;;
 sh-wrs-vxworks)
@@ -589,6 +591,8 @@ sparc-*-sysv4*)
        ;;
 sparc64-*-elf*)
        ;;
+sparc-wrs-vxworks)
+       ;;
 sparc64-*-freebsd*|ultrasparc-*-freebsd*)
        ;;
 sparc64-*-linux*)              # 64-bit SPARC's running GNU/Linux
@@ -643,3 +647,9 @@ m32c-*-elf*)
        exit 1
        ;;
 esac
+
+case ${host} in
+i[34567]86-*-linux* | x86_64-*-linux*)
+       tmake_file="${tmake_file} t-tls"
+       ;;
+esac