# cxx_target_objs List of extra target-dependent objects that be
# linked into the C++ compiler only.
#
+# target_gtfiles List of extra source files with type information.
+#
# build_xm_defines List of macros to define when compiling for the
# build machine.
#
gas="$gas_flag"
gnu_ld="$gnu_ld_flag"
enable_threads=$enable_threads_flag
+target_gtfiles=
# Obsolete configurations.
case $machine in
;;
powerpc*-*-*)
cpu_type=rs6000
- extra_headers="ppc-asm.h altivec.h"
+ extra_headers="ppc-asm.h altivec.h spe.h"
;;
sparc*-*-*)
cpu_type=sparc
use_collect2=no
float_format=i128
;;
-ip2k-*-elf)
+ip2k-*-elf)
;;
m32r-*-elf*)
tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
mips-sgi-irix6*o32) # SGI System V.4., IRIX 6, O32 ABI
if test x$gas = xyes
then
- tm_file="mips/iris5.h mips/iris5gas.h"
+ tm_file="mips/iris5.h mips/iris5gas.h mips/iris6-o32-gas.h"
if test x$stabs = xyes
then
tm_file="${tm_file} dbx.h"
fi
+ tmake_file=mips/t-iris5-gas
else
tm_file="mips/iris5.h mips/iris6-o32-as.h"
tmake_file=mips/t-iris5-as
# fi
;;
mips-wrs-vxworks)
- tm_file="mips/elf.h mips/vxworks.h"
+ tm_file="${tm_file} mips/elf.h mips/vxworks.h"
tmake_file=mips/t-ecoff
gas=yes
gnu_ld=yes
then
tm_file="${tm_file} dbx.h"
fi
+ tmake_file=mips/t-iris5-gas
else
tm_file=mips/iris5.h
tmake_file=mips/t-iris5-as
tmake_file="${tmake_file} mips/t-netbsd"
;;
mips*-*-linux*) # Linux MIPS, either endian.
- tm_file="dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h linux.h mips/linux.h"
case $machine in
mipsisa32*-*)
- tm_file="$tm_file mips/isa32-linux.h"
target_cpu_default="MASK_SOFT_FLOAT"
+ tm_defines="MIPS_ISA_DEFAULT=32"
;;
esac
tmake_file="t-slibgcc-elf-ver t-linux mips/t-linux"
tm_file="mips/openbsd-be.h ${tm_file}"
;;
mips-*-ecoff* | mipsel-*-ecoff*)
- tm_file="gofast.h mips/ecoff.h"
if test x$stabs = xyes; then
tm_file="${tm_file} dbx.h"
fi
tmake_file=mips/t-ecoff
;;
mipsisa32-*-elf* | mipsisa32el-*-elf*)
- tm_file="mips/isa3264.h mips/abi64.h"
+ tm_file="${tm_file} mips/elf.h mips/abi64.h"
tmake_file=mips/t-isa3264
- target_cpu_default="MASK_SOFT_FLOAT"
+ tm_defines="MIPS_ISA_DEFAULT=32 MIPS_ABI_DEFAULT=ABI_MEABI"
;;
mipsisa64-*-elf* | mipsisa64el-*-elf*)
- tm_file="mips/isa3264.h mips/abi64.h"
+ tm_file="${tm_file} mips/elf.h mips/abi64.h"
tmake_file=mips/t-isa3264
target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
- tm_defines="MIPS_ISA_DEFAULT=64"
+ tm_defines="MIPS_ISA_DEFAULT=64 MIPS_ABI_DEFAULT=ABI_MEABI"
;;
mips-*-elf* | mipsel-*-elf*)
- tm_file="mips/elf.h"
+ tm_file="${tm_file} mips/elf.h"
tmake_file=mips/t-elf
;;
mips64-*-elf* | mips64el-*-elf*)
- tm_file="mips/elf64.h"
+ tm_file="${tm_file} mips/elf64.h"
tmake_file=mips/t-elf
+ target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
+ tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
;;
mips64orion-*-elf* | mips64orionel-*-elf*)
- tm_file="mips/elforion.h mips/elf64.h"
+ tm_file="${tm_file} mips/elforion.h mips/elf64.h"
+ tmake_file=mips/t-elf
tmake_file=mips/t-elf
+ target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
+ tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
;;
mips64orion-*-rtems*)
xm_defines=POSIX
- tm_file="mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
+ tm_file="${tm_file} mips/elforion.h mips/elf64.h mips/rtems64.h rtems.h"
tmake_file="mips/t-elf t-rtems"
+ tmake_file=mips/t-elf
+ target_cpu_default="MASK_64BIT|MASK_FLOAT64|MASK_GAS"
+ tm_defines="MIPS_ISA_DEFAULT=3 MIPS_ABI_DEFAULT=ABI_O64"
if test x$enable_threads = xyes; then
thread_file='rtems'
fi
;;
mips*-*-rtems*)
xm_defines=POSIX
- tm_file="mips/elf.h mips/rtems.h rtems.h"
+ tm_file="${tm_file} mips/elf.h mips/rtems.h rtems.h"
tmake_file="mips/t-elf t-rtems"
if test x$enable_threads = xyes; then
thread_file='rtems'
fi
;;
mipstx39-*-elf* | mipstx39el-*-elf*)
- tm_file="mips/r3900.h mips/elf.h mips/abi64.h"
+ tm_file="${tm_file} mips/r3900.h mips/elf.h mips/abi64.h"
tmake_file=mips/t-r3900
;;
mmix-knuth-mmixware)
tm_p_file="${tm_p_file} darwin-protos.h"
tmake_file=rs6000/t-darwin
extra_objs="darwin.o"
- config_gtfiles="${config_gtfiles} \$(srcdir)/config/darwin.c"
+ target_gtfiles="\$(srcdir)/config/darwin.c"
c_target_objs="darwin-c.o"
cxx_target_objs="darwin-c.o"
# Darwin linker does collect2 functionality
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabiaix.h"
tmake_file="rs6000/t-ppcgas rs6000/t-ppccomm"
;;
+powerpc-*-eabispe*)
+ xm_defines=POSIX
+ tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabispe.h"
+ tmake_file="rs6000/t-ppcendian rs6000/t-ppccomm"
+ ;;
powerpc-*-eabisimaltivec*)
xm_defines=POSIX
tm_file="${tm_file} dbxelf.h elfos.h svr4.h freebsd-spec.h rs6000/sysv4.h rs6000/eabi.h rs6000/eabisim.h rs6000/eabialtivec.h"
tmake_file="${tmake_file} sh/t-sh64"
tm_file="${tm_file} sh/sh64.h"
extra_headers="shmedia.h ushmedia.h sshmedia.h"
- # Not strictly necessary to check this, but a good idea anyway.
- if test $machine = $target; then
- target_requires_64bit_host_wide_int=yes
- fi
;;
sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
sh4*) target_cpu_default="SELECT_SH4" ;;
tmake_file="${tmake_file} sh/t-sh64"
tm_file="${tm_file} sh/sh64.h"
extra_headers="shmedia.h ushmedia.h sshmedia.h"
- # Not strictly necessary to check this, but a good idea anyway.
- if test $machine = $target; then
- target_requires_64bit_host_wide_int=yes
- fi
;;
sh4_single*) target_cpu_default="SELECT_SH4_SINGLE" ;;
sh4*) target_cpu_default="SELECT_SH4" ;;
tm_defines="TARGET_ENDIAN_DEFAULT=0 $tm_defines"
;;
esac
+ if test "x$enable_gofast" = xyes
+ then
+ tm_defines="INIT_SUBTARGET_OPTABS=INIT_GOFAST_OPTABS $tm_defines"
+ tm_file="gofast.h $tm_file"
+ tmake_file="mips/t-gofast $tmake_file"
+ else
+ tmake_file="mips/t-mips $tmake_file"
+ fi
;;
powerpc*-*-* | rs6000-*-*)
if test x$enable_altivec = xyes