diff options
author | Jason Thorpe <thorpej@wasabisystems.com> | 2002-05-31 01:31:26 +0000 |
---|---|---|
committer | Jason Thorpe <thorpej@gcc.gnu.org> | 2002-05-31 01:31:26 +0000 |
commit | b4eb03fef0038be54957aea4e18b2e79c4452937 (patch) | |
tree | ebee8bc6cfc925fdd877623f42e647f17007517b /gcc/config.gcc | |
parent | 261376e723399348ac2633631aaae6a10042c264 (diff) | |
download | gcc-b4eb03fef0038be54957aea4e18b2e79c4452937.zip gcc-b4eb03fef0038be54957aea4e18b2e79c4452937.tar.gz gcc-b4eb03fef0038be54957aea4e18b2e79c4452937.tar.bz2 |
config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
* config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
(sh-*-netbsdelf*)
(shl*-*-netbsdelf*): New targets.
* config/sh/netbsd-elf.h: New file.
From-SVN: r54079
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r-- | gcc/config.gcc | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc index ad4abb6..73e423a 100644 --- a/gcc/config.gcc +++ b/gcc/config.gcc @@ -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 @@ -2247,6 +2248,21 @@ sh-*-linux*) fi float_format=sh ;; +sh-*-netbsdelf* | shl*-*-netbsdelf*) + 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 + tmake_file="${tmake_file} sh/t-netbsd" + float_format=sh + ;; sh-*-*) tm_file="${tm_file} sh/coff.h" float_format=sh |