OSDN Git Service

* MAINTAINERS (c4x port): Remove.
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index 2195b51..555e2eb 100644 (file)
@@ -1,6 +1,6 @@
 # GCC target-specific configuration file.
-# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
-# Free Software Foundation, Inc.
+# Copyright 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007,
+# 2008 Free Software Foundation, Inc.
 
 #This file is part of GCC.
 
@@ -195,8 +195,8 @@ md_file=
 
 # Obsolete configurations.
 case ${target} in
-   c4x-*               \
- | tic4x-*             \
+   crx-*               \
+ | mt-*                        \
  )
     if test "x$enable_obsolete" != xyes; then
       echo "*** Configuration ${target} is obsolete." >&2
@@ -259,10 +259,15 @@ strongarm*-*-*)
 arm*-*-*)
        cpu_type=arm
        extra_headers="mmintrin.h arm_neon.h"
+       c_target_objs="arm-c.o"
+       cxx_target_objs="arm-c.o"
        ;;
 bfin*-*)
        cpu_type=bfin
        ;;
+crisv32-*)
+       cpu_type=cris
+       ;;
 ep9312*-*-*)
        cpu_type=arm
        ;;
@@ -346,9 +351,6 @@ sh[123456789lbe]*-*-*)
        cpu_type=sh
        need_64bit_hwint=yes
        ;;
-tic4x-*-*)
-        cpu_type=c4x
-        ;;
 esac
 
 tm_file=${cpu_type}/${cpu_type}.h
@@ -430,26 +432,8 @@ case ${target} in
   gas=yes
   gnu_ld=yes
   extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o"
-  case ${target} in
-    *-*-freebsd3 | *-*-freebsd[3].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=3" ;;
-    *-*-freebsd4 | *-*-freebsd[4].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=4" ;;
-    *-*-freebsd5 | *-*-freebsd[5].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=5" ;;
-    *-*-freebsd6 | *-*-freebsd[6].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=6" ;;
-    *-*-freebsd7 | *-*-freebsd[7].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=7" ;;
-    *-*-freebsd8 | *-*-freebsd[8].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=8" ;;
-    *-*-freebsd9 | *-*-freebsd[9].*)
-      tm_defines="${tm_defines} FBSD_MAJOR=9" ;;
-    *)
-      echo 'Please update *-*-freebsd* in gcc/config.gcc'
-      exit 1
-      ;;
-  esac
+  fbsd_major=`echo ${target} | sed -e 's/.*freebsd//g' | sed -e 's/\..*//g'`
+  tm_defines="${tm_defines} FBSD_MAJOR=${fbsd_major}"
   tmake_file="t-slibgcc-elf-ver t-freebsd"
   case ${enable_threads} in
     no)
@@ -720,6 +704,11 @@ arm*-*-netbsd*)
        ;;
 arm*-*-linux*)                 # ARM GNU/Linux with ELF
        tm_file="dbxelf.h elfos.h linux.h arm/elf.h arm/linux-gas.h arm/linux-elf.h"
+       case $target in
+       arm*b-*)
+               tm_defines="${tm_defines} TARGET_BIG_ENDIAN_DEFAULT=1"
+               ;;
+       esac
        tmake_file="${tmake_file} t-linux arm/t-arm"
        case ${target} in
        arm*-*-linux-*eabi)
@@ -838,34 +827,38 @@ bfin*-*)
        tmake_file=bfin/t-bfin
        use_collect2=no
        ;;
-c4x-*-rtems* | tic4x-*-rtems*)
-       tmake_file="c4x/t-c4x t-rtems c4x/t-rtems"
-       tm_file="c4x/c4x.h c4x/rtems.h rtems.h"
-       c_target_objs="c4x-c.o"
-       cxx_target_objs="c4x-c.o"
-       ;;
-c4x-* | tic4x-*)
-       tmake_file=c4x/t-c4x
-       c_target_objs="c4x-c.o"
-       cxx_target_objs="c4x-c.o"
-       ;;
 cris-*-aout)
        tm_file="dbxelf.h ${tm_file} cris/aout.h"
        gas=yes
        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}"
@@ -888,10 +881,6 @@ frv-*-*linux*)
                 linux.h frv/linux.h frv/frv-abi.h"
        tmake_file="${tmake_file} frv/t-frv frv/t-linux"
        ;;
-h8300-*-rtemscoff*)
-       tmake_file="h8300/t-h8300 t-rtems h8300/t-rtems"
-       tm_file="h8300/h8300.h dbxcoff.h h8300/coff.h h8300/rtems.h rtems.h"
-       ;;
 h8300-*-rtems*)
        tmake_file="h8300/t-h8300 h8300/t-elf t-rtems h8300/t-rtems"
        tm_file="h8300/h8300.h dbxelf.h elfos.h h8300/elf.h h8300/rtems.h rtems.h"
@@ -1821,16 +1810,6 @@ mt-*-elf)
         tm_file="dbxelf.h elfos.h svr4.h ${tm_file}"
         tmake_file="${tmake_file} mt/t-mt"
         ;;
-ns32k-*-netbsdelf*)
-       echo "GCC does not yet support the ${target} target"; exit 1
-       ;;
-ns32k-*-netbsd*)
-       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 ns32k/t-ns32k"
-       extra_parts=""
-       use_collect2=yes
-       ;;
 pdp11-*-bsd)
        tm_file="${tm_file} pdp11/2bsd.h"
        use_fixproto=yes
@@ -2297,10 +2276,6 @@ sh-*-symbianelf* | sh[12346l]*-*-symbianelf* | \
        fi
        use_fixproto=yes
        ;;
-sh-*-rtemscoff*)
-       tmake_file="sh/t-sh t-rtems sh/t-rtems"
-       tm_file="${tm_file} dbxcoff.h sh/coff.h sh/rtems.h rtems.h"
-       ;;
 sh-*-rtems*)
        tmake_file="sh/t-sh sh/t-elf t-rtems sh/t-rtems"
        tm_file="${tm_file} dbxelf.h elfos.h svr4.h sh/elf.h sh/embed-elf.h sh/rtemself.h rtems.h"