# 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.
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-*-*)
sh[123456789lbe]*-*-*)
cpu_type=sh
;;
-tic4x-*-*)
- cpu_type=c4x
- ;;
esac
# Common parts for widely ported systems.
avr-*-rtems*)
;;
avr-*-*)
+ # Make HImode functions for AVR
+ tmake_file=${cpu_type}/t-avr
;;
bfin*-elf*)
;;
;;
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*)
;;
i[34567]86-*-elf*)
;;
+x86_64-*-elf*)
+ ;;
i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
;;
i[34567]86-*-aout*)
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*)
;;
;;
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*)
;;
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*)
;;
;;
mt-*-elf)
;;
-ns32k-*-netbsdelf*)
- echo "GCC does not yet support the ${host} target"; exit 1
- ;;
-ns32k-*-netbsd*)
- ;;
pdp11-*-bsd)
;;
pdp11-*-*)
;;
esac
;;
-sh-*-rtemscoff*)
- ;;
sh-*-rtems*)
;;
sh-wrs-vxworks)
;;
sparc64-*-elf*)
;;
+sparc-wrs-vxworks)
+ ;;
sparc64-*-freebsd*|ultrasparc-*-freebsd*)
;;
sparc64-*-linux*) # 64-bit SPARC's running GNU/Linux
exit 1
;;
esac
+
+case ${host} in
+i[34567]86-*-linux* | x86_64-*-linux*)
+ tmake_file="${tmake_file} t-tls"
+ ;;
+esac