sparc*-*-*)
cpu_type=sparc
;;
-sh64-*-*)
+# Note the 'l'; we need to be able to match e.g. "shle" or "shl".
+sh[123456789l]*-*-*)
cpu_type=sh
;;
esac
tm_file="mips/little.h $tm_file"
;;
esac
+ 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"
echo "GCC does not yet support the ${machine} target"; exit 1
;;
ns32k-*-netbsd*)
- tm_file=ns32k/netbsd.h
+ tm_file="${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
# On NetBSD, the headers are already okay, except for math.h.
tmake_file=t-netbsd
use_collect2=yes
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"
c_target_objs="darwin-c.o"
cxx_target_objs="darwin-c.o"
# Darwin linker does collect2 functionality
thread_file='posix'
fi
;;
-sh-*-elf*)
+sh-*-elf* | shl*-*-elf* | sh64*-*-elf*)
tmake_file="sh/t-sh sh/t-elf"
+ case $machine in
+ shl* | sh64l*)
+ tm_file="sh/little.h ${tm_file}"
+ tmake_file="${tmake_file} sh/t-le"
+ ;;
+ esac
tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h"
float_format=sh
- ;;
-sh64-*-elf*)
- tmake_file="sh/t-sh sh/t-elf sh/t-sh64"
- tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/embed-elf.h sh/sh64.h"
- float_format=sh
- 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
+ case $machine in
+ sh64*)
+ 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
+ ;;
+ esac
;;
sh-*-rtemself*)
xm_defines=POSIX
fi
float_format=sh
;;
+sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
+ sh64-*-netbsd* | sh64l*-*-netbsd*)
+ tm_file="${tm_file} dbxelf.h elfos.h sh/elf.h netbsd.h netbsd-elf.h sh/netbsd-elf.h"
+ tmake_file="${tmake_file} sh/t-sh sh/t-elf"
+ case $machine in
+ sh*l*-*)
+ tm_file="sh/little.h ${tm_file}"
+ tmake_file="${tmake_file} sh/t-le"
+ ;;
+ *)
+ tmake_file="${tmake_file} sh/t-be"
+ ;;
+ esac
+ case $machine in
+ sh5*-*)
+ # SHmedia, 32-bit ABI
+ target_cpu_default="SH5_BIT|SH4_BIT|SH3E_BIT"
+ tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
+ ;;
+ sh64*-*)
+ # SHmedia, 64-bit ABI
+ target_cpu_default="SH5_BIT|SH4_BIT"
+ tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5 sh/t-netbsd-sh5-64"
+ ;;
+ *)
+ # SH3, software floating point
+ target_cpu_default="SH1_BIT|SH2_BIT|SH3_BIT"
+ tmake_file="${tmake_file} sh/t-netbsd"
+ ;;
+ esac
+ float_format=sh
+ ;;
sh-*-*)
tm_file="${tm_file} sh/coff.h"
float_format=sh
then
target_cpu_default2="MASK_GAS|MASK_JUMP_IN_DELAY"
fi
+ case $machine in
+ hppa1.0* | parisc1.0*)
+ tm_file="pa/pa-700.h ${tm_file}"
+ ;;
+ hppa1.1* | parisc1.1*)
+ tm_file="pa/pa-7100.h ${tm_file}"
+ ;;
+ esac
;;
mips*-*-ecoff* | mips*-*-elf*)