OSDN Git Service

libgcc/
[pf3gnuchains/gcc-fork.git] / libgcc / config.host
index 79039ab..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,6 +77,9 @@ strongarm*-*-*)
 arm*-*-*)
        cpu_type=arm
        ;;
+avr-*-*)
+       cpu_type=avr
+       ;;    
 bfin*-*)
        cpu_type=bfin
        ;;
@@ -137,9 +140,6 @@ s390*-*-*)
 sh[123456789lbe]*-*-*)
        cpu_type=sh
        ;;
-tic4x-*-*)
-        cpu_type=c4x
-        ;;
 esac
 
 # Common parts for widely ported systems.
@@ -246,6 +246,8 @@ arm*-*-kaos*)
 avr-*-rtems*)
        ;;
 avr-*-*)
+    # Make HImode functions for AVR
+    tmake_file=${cpu_type}/t-avr
        ;;
 bfin*-elf*)
         ;;
@@ -258,16 +260,12 @@ 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)
        ;;
@@ -279,8 +277,6 @@ frv-*-elf)
        ;;
 frv-*-*linux*)
        ;;
-h8300-*-rtemscoff*)
-       ;;
 h8300-*-rtems*)
        ;;
 h8300-*-elf*)
@@ -310,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*)
@@ -382,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*)
        ;;
@@ -469,11 +469,6 @@ mn10300-*-*)
        ;;
 mt-*-elf)
         ;;
-ns32k-*-netbsdelf*)
-       echo "GCC does not yet support the ${host} target"; exit 1
-       ;;
-ns32k-*-netbsd*)
-       ;;
 pdp11-*-bsd)
         ;;
 pdp11-*-*)
@@ -570,8 +565,6 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
                ;;
        esac
        ;;
-sh-*-rtemscoff*)
-       ;;
 sh-*-rtems*)
        ;;
 sh-wrs-vxworks)
@@ -654,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