From 99c5227a6402ad3a9e88360758aa2a3b1352f6fc Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Sat, 15 Dec 2007 21:35:32 +0000 Subject: config.gcc: Make crisv32-* have cpu_type cris. * config.gcc: Make crisv32-* have cpu_type cris. Handle crisv32-*-elf and crisv32-*-none like cris-*-elf and cris-*-none but without multilibs and with target_cpu_default=32. From-SVN: r130965 --- gcc/config.gcc | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'gcc/config.gcc') diff --git a/gcc/config.gcc b/gcc/config.gcc index 0fc329c..edb0c8e 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -265,6 +265,9 @@ arm*-*-*) bfin*-*) cpu_type=bfin ;; +crisv32-*) + cpu_type=cris + ;; ep9312*-*-*) cpu_type=arm ;; @@ -844,17 +847,32 @@ cris-*-aout) tmake_file="cris/t-cris cris/t-aout" extra_options="${extra_options} cris/aout.opt" ;; +crisv32-*-elf | crisv32-*-none) + tm_file="dbxelf.h elfos.h ${tm_file}" + tmake_file="cris/t-cris" + target_cpu_default=32 + gas=yes + extra_options="${extra_options} cris/elf.opt" + ;; cris-*-elf | cris-*-none) tm_file="dbxelf.h elfos.h ${tm_file}" tmake_file="cris/t-cris cris/t-elfmulti" gas=yes extra_options="${extra_options} cris/elf.opt" ;; -cris-*-linux*) +crisv32-*-linux* | cris-*-linux*) tm_file="dbxelf.h elfos.h svr4.h ${tm_file} linux.h cris/linux.h" # We need to avoid using t-linux, so override default tmake_file tmake_file="cris/t-cris t-slibgcc-elf-ver cris/t-linux" extra_options="${extra_options} cris/linux.opt" + case $target in + cris-*-*) + target_cpu_default=10 + ;; + crisv32-*-*) + target_cpu_default=32 + ;; + esac ;; crx-*-elf) tm_file="elfos.h ${tm_file}" -- cgit v1.1