aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2007-04-14 02:15:45 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2007-04-14 02:15:45 +0000
commit7d33c31d9a49cbb19adc3741330bd6cb33818076 (patch)
treec6ac75935c268d887244c68f482eb09fb53b355a /gcc/config.gcc
parentfd86239df046e4082ca74ea793f70d4664ddcc0e (diff)
downloadgcc-7d33c31d9a49cbb19adc3741330bd6cb33818076.zip
gcc-7d33c31d9a49cbb19adc3741330bd6cb33818076.tar.gz
gcc-7d33c31d9a49cbb19adc3741330bd6cb33818076.tar.bz2
config.gcc: Recognize fido.
gcc/ * config.gcc: Recognize fido. * config/m68k/m68k-devices.def (fidoa): New. * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Define __mfido__. (FL_FIDOA, TARGET_FIDOA): New. * config/m68k/m68k.opt (mfidoa): New. libgcc/ * config.host: Recognize fido. From-SVN: r123811
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc40
1 files changed, 34 insertions, 6 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 36e369f..055503f 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -265,6 +265,10 @@ ep9312*-*-*)
;;
frv*) cpu_type=frv
;;
+fido-*-*)
+ cpu_type=m68k
+ extra_headers=math-68881.h
+ ;;
xscale-*-*)
cpu_type=arm
extra_headers="mmintrin.h"
@@ -1508,12 +1512,36 @@ m68k-*-coff*)
tm_file="${tm_file} m68k/m68k-none.h m68k/m68kemb.h dbxcoff.h m68k/coff.h dbx.h"
use_fixproto=yes
;;
-m68020-*-elf* | m68k-*-elf*)
- default_m68k_cpu=68020
- default_cf_cpu=5206
+m68020-*-elf* | m68k-*-elf* | fido-*-elf*)
+ case ${target} in
+ fido-*-elf*)
+ # Check that $with_cpu makes sense.
+ case $with_cpu in
+ "" | "fidoa")
+ ;;
+ *)
+ echo "Cannot accept --with-cpu=$with_cpu"
+ exit 1
+ ;;
+ esac
+ with_cpu=fidoa
+ ;;
+ *)
+ default_m68k_cpu=68020
+ default_cf_cpu=5206
+ ;;
+ esac
tm_file="${tm_file} m68k/m68k-none.h m68k/m68kelf.h dbxelf.h elfos.h m68k/m68kemb.h m68k/m68020-elf.h"
tm_defines="${tm_defines} MOTOROLA=1 USE_GAS"
- tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf m68k/t-mlibs"
+ tmake_file="m68k/t-floatlib m68k/t-m68kbare m68k/t-m68kelf"
+ # Add multilibs for targets other than fido.
+ case ${target} in
+ fido-*-elf*)
+ ;;
+ *)
+ tmake_file="$tmake_file m68k/t-mlibs"
+ ;;
+ esac
extra_parts="crtbegin.o crtend.o"
;;
m68010-*-netbsdelf* | m68k*-*-netbsdelf*)
@@ -2838,7 +2866,7 @@ case "${target}" in
esac
;;
- m680[012]0-*-* | m68k*-*-*)
+ fido-*-* | m680[012]0-*-* | m68k*-*-*)
supported_defaults="arch cpu"
case "$with_arch" in
"" | "m68k"| "cf")
@@ -3132,7 +3160,7 @@ case ${target} in
fi
;;
- m680[012]0-*-* | m68k*-*-*)
+ fido*-*-* | m680[012]0-*-* | m68k*-*-*)
target_cpu_default2=$m68k_cpu_ident
if [ x"$m68k_arch_family" != x ]; then
tmake_file="m68k/t-$m68k_arch_family $tmake_file"