OSDN Git Service

* g++.old-deja/g++.pt/static11.C: Add xtensa-*-elf* to the
[pf3gnuchains/gcc-fork.git] / gcc / config.gcc
index ad4abb6..24e0c9b 100644 (file)
@@ -276,7 +276,8 @@ powerpc*-*-*)
 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
@@ -1814,6 +1815,7 @@ mips*-*-netbsd*)                  # NetBSD/mips, either endian.
                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"
@@ -1934,7 +1936,7 @@ ns32k-*-netbsdelf*)
        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
@@ -1977,6 +1979,7 @@ powerpc-*-darwin*)
        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
@@ -2205,20 +2208,27 @@ s390x-*-linux*)
                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
@@ -2247,6 +2257,38 @@ sh-*-linux*)
        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
@@ -2789,6 +2831,14 @@ hppa*-*-* | parisc*-*-*)
        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*)