# 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, 2009 Free Software Foundation, Inc.
#This file is part of GCC.
#GCC is free software; you can redistribute it and/or modify it under
#the terms of the GNU General Public License as published by the Free
-#Software Foundation; either version 2, or (at your option) any later
+#Software Foundation; either version 3, or (at your option) any later
#version.
#GCC is distributed in the hope that it will be useful, but WITHOUT
#for more details.
#You should have received a copy of the GNU General Public License
-#along with GCC; see the file COPYING. If not, write to the Free
-#Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
-#02110-1301, USA.
+#along with GCC; see the file COPYING3. If not see
+#<http://www.gnu.org/licenses/>.
# This is the libgcc host-specific configuration file
# where a configuration type is mapped to different system-specific
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
+moxie*) cpu_type=moxie
;;
i[34567]86-*-*)
cpu_type=i386
;;
ia64-*-*)
;;
-hppa*-*-* | parisc*-*-*)
+hppa*-*-*)
cpu_type=pa
;;
m32r*-*-*)
cpu_type=m32r
;;
-m680[012]0-*-*)
- cpu_type=m68k
- ;;
m68k-*-*)
;;
+mep*-*-*)
+ ;;
mips*-*-*)
cpu_type=mips
;;
sh[123456789lbe]*-*-*)
cpu_type=sh
;;
-tic4x-*-*)
- cpu_type=c4x
- ;;
esac
# Common parts for widely ported systems.
# 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).
+*-*-linux* | frv-*-*linux* | *-*-kfreebsd*-gnu | *-*-knetbsd*-gnu | *-*-gnu*)
extra_parts="crtbegin.o crtbeginS.o crtbeginT.o crtend.o crtendS.o"
;;
-*-*-gnu*)
- ;;
*-*-netbsd*)
;;
*-*-openbsd*)
then tmake_file=${cpu_type}/t-$rest
fi
;;
-alpha*-*-unicosmk*)
- ;;
-alpha*-*-linux*)
+alpha*-*-linux* | alpha*-*-gnu*)
tmake_file="${tmake_file} alpha/t-crtfm"
extra_parts="$extra_parts crtfastmath.o"
;;
-alpha*-*-gnu*)
- ;;
alpha*-*-freebsd*)
;;
alpha*-*-netbsd*)
alpha*-dec-osf[45]*)
;;
alpha64-dec-*vms*)
+ tmake_file="vms/t-vms vms/t-vms64 alpha/t-vms"
;;
alpha*-dec-*vms*)
+ tmake_file="vms/t-vms alpha/t-vms"
;;
arc-*-elf*)
;;
-arm-*-coff* | armel-*-coff*)
- ;;
-arm-semi-aof | armel-semi-aof)
- ;;
arm-wrs-vxworks)
;;
-arm*-*-freebsd*|strongarm*-*-freebsd*)
+arm*-*-freebsd*)
;;
arm*-*-netbsdelf*)
;;
;;
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*-*)
;;
-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)
;;
;;
frv-*-*linux*)
;;
-h8300-*-rtemscoff*)
- ;;
h8300-*-rtems*)
;;
h8300-*-elf*)
;;
-h8300-*-*)
+hppa*64*-*-linux*)
;;
-hppa*64*-*-linux* | parisc*64*-*-linux*)
- ;;
-hppa*-*-linux* | parisc*-*-linux*)
- ;;
-hppa1.1-*-pro*)
- ;;
-hppa1.1-*-osf*)
- ;;
-hppa1.1-*-bsd*)
+hppa*-*-linux*)
;;
hppa[12]*-*-hpux10*)
;;
;;
x86_64-*-elf*)
;;
-i[34567]86-sequent-ptx4* | i[34567]86-sequent-sysv4*)
- ;;
-i[34567]86-*-aout*)
- ;;
-i[34567]86-*-beoself* | i[34567]86-*-beos*)
- ;;
i[34567]86-*-freebsd*)
;;
x86_64-*-freebsd*)
;;
i[34567]86-*-openbsd*)
;;
-i[34567]86-*-coff*)
- ;;
-i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu)
+i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | i[34567]86-*-gnu*)
extra_parts="$extra_parts crtprec32.o crtprec64.o crtprec80.o crtfastmath.o"
tmake_file="${tmake_file} i386/t-crtpc 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[34567]86-pc-msdosdjgpp*)
;;
i[34567]86-*-lynxos*)
;;
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
+ tmake_file="${tmake_file} i386/t-sol2"
+ case ${host} in
+ *-*-solaris2.1[0-9]*)
+ # Solaris 2.10 provides crt1.o, crti.o, crtn.o, and gcrt1.o as
+ # part of the base system.
+ extra_parts="gmon.o crtbegin.o crtend.o"
+ ;;
+ *)
+ extra_parts="crt1.o crti.o crtn.o gcrt1.o gmon.o crtbegin.o crtend.o"
+ ;;
+ esac
;;
i[4567]86-wrs-vxworks|i[4567]86-wrs-vxworksae)
;;
;;
x86_64-*-mingw*)
;;
-i[34567]86-*-uwin*)
- ;;
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*-*-linux*)
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
- tmake_file="ia64/t-ia64"
+ tmake_file="ia64/t-ia64 t-softfp ia64/t-fprules-softfp ia64/t-softfp-compat"
;;
ia64*-*-hpux*)
;;
+ia64-hp-*vms*)
+ tmake_file="vms/t-vms vms/t-vms64 ia64/t-vms"
+ ;;
iq2000*-*-elf*)
;;
-m32r-*-elf*)
+m32r-*-elf*|m32r-*-rtems*)
;;
m32rle-*-elf*)
;;
;;
m68hc12-*-*|m6812-*-*)
;;
-m68k-*-aout*)
- ;;
-m68k-*-coff*)
- ;;
-m68020-*-elf* | m68k-*-elf*)
+m68k-*-elf*)
;;
-m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
+m68k*-*-netbsdelf*)
;;
m68k*-*-openbsd*)
;;
;;
mipsisa64-*-elf* | mipsisa64el-*-elf*)
;;
+mipsisa64r2-*-elf* | mipsisa64r2el-*-elf*)
+ ;;
mipsisa64sr71k-*-elf*)
;;
mipsisa64sb1-*-elf* | mipsisa64sb1el-*-elf*)
;;
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*)
+moxie-*-*)
+ tmake_file=${cpu_type}/t-moxie
+ extra_parts="crtbegin.o crtend.o crti.o crtn.o"
;;
-pdp11-*-bsd)
- ;;
pdp11-*-*)
;;
-powerpc64-*-linux*)
- tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
- ;;
-powerpc64-*-gnu*)
- tmake_file="${tmake_file} rs6000/t-ldbl128"
- ;;
-powerpc-*-beos*)
- ;;
+picochip-*-*)
+ ;;
powerpc-*-darwin*)
;;
powerpc64-*-darwin*)
;;
powerpc-*-netbsd*)
;;
-powerpc-*-chorusos*)
- ;;
powerpc-*-eabispe*)
;;
powerpc-*-eabisimaltivec*)
;;
powerpc-*-rtems*)
;;
-powerpc-*-linux*altivec*)
- tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
- ;;
-powerpc-*-linux*spe*)
- tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
+powerpc-*-linux* | powerpc64-*-linux*)
+ tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128 t-softfp"
;;
-powerpc-*-linux*)
- tmake_file="${tmake_file} rs6000/t-ppccomm rs6000/t-ldbl128"
+powerpc64-*-gnu*)
+ tmake_file="${tmake_file} rs6000/t-ldbl128 t-softfp"
;;
powerpc-*-gnu-gnualtivec*)
tmake_file="${tmake_file} rs6000/t-ldbl128"
;;
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]*)
;;
rs6000-ibm-aix5.1.* | powerpc-ibm-aix5.1.*)
;;
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
;;
esac
;;
-sh-*-rtemscoff*)
- ;;
sh-*-rtems*)
;;
sh-wrs-vxworks)
;;
-sh-*-*)
- ;;
sparc-*-netbsdelf*)
;;
sparc64-*-openbsd*)
;;
sparc-*-solaris2*)
;;
-sparc-*-sysv4*)
- ;;
sparc64-*-elf*)
;;
sparc-wrs-vxworks)
;;
spu-*-elf*)
;;
-strongarm-*-elf*)
- ;;
-strongarm-*-pe)
- ;;
-strongarm-*-kaos*)
- ;;
v850e1-*-*)
;;
v850e-*-*)
;;
v850-*-*)
;;
-vax-*-bsd*) # VAXen running BSD
- ;;
-vax-*-sysv*) # VAXen running system V
+vax-*-linux*)
;;
vax-*-netbsdelf*)
;;
;;
vax-*-openbsd*)
;;
-vax-*-ultrix*) # VAXen running ultrix
- ;;
-xscale-*-elf)
- ;;
-xscale-*-coff)
- ;;
xstormy16-*-elf)
;;
-xtensa-*-elf*)
+xtensa*-*-elf*)
;;
-xtensa-*-linux*)
+xtensa*-*-linux*)
;;
am33_2.0-*-linux*)
extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
;;
-m32c-*-elf*)
+m32c-*-elf*|m32c-*-rtems*)
;;
+mep*-*-*)
+ ;;
*)
echo "*** Configuration ${host} not supported" 1>&2
exit 1
esac
case ${host} in
-i[34567]86-*-linux* | x86_64-*-linux*)
+i[34567]86-*-linux* | x86_64-*-linux* | \
+ i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-knetbsd*-gnu | \
+ i[34567]86-*-gnu*)
tmake_file="${tmake_file} t-tls"
;;
esac
+
+case ${host} in
+i[34567]86-*-darwin* | x86_64-*-darwin* | \
+ i[34567]86-*-kfreebsd*-gnu | x86_64-*-kfreebsd*-gnu | \
+ i[34567]86-*-linux* | x86_64-*-linux* | \
+ i[34567]86-*-cygwin* | i[34567]86-*-mingw* | x86_64-*-mingw*)
+ if test "${host_address}" = 32; then
+ tmake_file="${tmake_file} t-softfp 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