aboutsummaryrefslogtreecommitdiff
path: root/gcc/config.gcc
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2003-01-24 15:45:53 +0000
committerNick Clifton <nickc@gcc.gnu.org>2003-01-24 15:45:53 +0000
commit3a8699c7ab42ef0e974edaa2c02f3356613a449e (patch)
tree917842f3380f9081f8a94f8d4b8cf5c00fb26222 /gcc/config.gcc
parent65ca2d606c1420d9a4f76f22c5f07823119fe543 (diff)
downloadgcc-3a8699c7ab42ef0e974edaa2c02f3356613a449e.zip
gcc-3a8699c7ab42ef0e974edaa2c02f3356613a449e.tar.gz
gcc-3a8699c7ab42ef0e974edaa2c02f3356613a449e.tar.bz2
Add sh2e support:
2002-08-12 Alexandre Oliva <aoliva@redhat.com> * config/sh/sh.c (output_branch) [TARGET_SH2E]: Handle med_cbranches. Fix logic in short_cbranches. 2002-04-03 Alexandre Oliva <aoliva@redhat.com> * config/sh/sh.md (delay for cbranch): Don't annul delay slots on SH2e. * config/sh/sh.c (sh_insn_length_adjustment): Add 2 for cbranch with unfilled delay slot on SH2e. (output_branch): Fill with a nop the delay slot of a branch that required a delay slot but didn't get one. 2002-04-02 Alexandre Oliva <aoliva@redhat.com> * doc/invoke.texi (SH options): Document -m2e. * config/sh/crt1.asm: Add __SH2E__ Next to __SH3E__. * config/sh/lib1funcs.asm: Likewise. * config/sh/sh.c: Replace all uses of TARGET_SH3E with SH2E. * config/sh/sh.h (CPP_SPEC): Define __SH2E__ for -m2e, and not __sh1__. (CONDITIONAL_REGISTER_USAGE): Don't disable FP regs from SH2E up. (SH3E_BIT): Renamed to... (SH_E_BIT): ... this. Replace all uses. (TARGET_SH2E): Define from SH_E_BIT and TARGET_SH2. Replace all uses of TARGET_SH3E with TARGET_SH2E. (TARGET_SWITCHES): Added 2e. (OVERRIDE_OPTIONS): Set sh_cpu for SH2E. (processor_type): Added PROCESSOR_SH2E. * config/sh/sh.md: Replace all uses of TARGET_SH3E with TARGET_SH2E, except in sqrtsf2_i. (attribute cpu): Added sh2e. * config/sh/t-sh (MULTILIB_OPTIONS): Replace m3e with m2e. (MULTILIB_MATCHES): Use m2e multilib for m3e. * config.gcc: Add sh2e target support. From-SVN: r61697
Diffstat (limited to 'gcc/config.gcc')
-rw-r--r--gcc/config.gcc6
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 9f74569..dd06d69 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2207,6 +2207,7 @@ sh-*-elf* | sh[2346l]*-*-elf*)
sh4*) target_cpu_default="SELECT_SH4" ;;
sh3e*) target_cpu_default="SELECT_SH3E" ;;
sh3*) target_cpu_default="SELECT_SH3" ;;
+ sh2e*) target_cpu_default="SELECT_SH2E" ;;
sh2*) target_cpu_default="SELECT_SH2" ;;
esac
case $machine in
@@ -2251,6 +2252,9 @@ sh-*-linux* | sh[2346lbe]*-*-linux*)
sh3e[lb]*) target_cpu_default="SELECT_SH3" ;;
sh3e*) target_cpu_default="SELECT_SH3E" ;;
sh3*) target_cpu_default="SELECT_SH3" ;;
+ sh2e[lb]e*) target_cpu_default="SELECT_SH2E" ;;
+ sh2e[lb]*) target_cpu_default="SELECT_SH2" ;;
+ sh2e*) target_cpu_default="SELECT_SH2E" ;;
sh2*) target_cpu_default="SELECT_SH2" ;;
esac
case $machine in
@@ -2273,7 +2277,7 @@ sh-*-netbsdelf* | shl*-*-netbsdelf* | sh5-*-netbsd* | sh5l*-*-netbsd* | \
case $machine in
sh5*-*)
# SHmedia, 32-bit ABI
- target_cpu_default="SH5_BIT|SH4_BIT|SH3E_BIT"
+ target_cpu_default="SH5_BIT|SH4_BIT|SH3_BIT|SH_E_BIT"
tmake_file="${tmake_file} sh/t-sh64 sh/t-netbsd-sh5"
;;
sh64*-*)