aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Wilson <wilson@gcc.gnu.org>1995-04-11 14:01:12 -0700
committerJim Wilson <wilson@gcc.gnu.org>1995-04-11 14:01:12 -0700
commit7c596205805fc3009c4ddf5a4256c921edc2fb04 (patch)
tree9a42a9c01e06ed0cc426cf1aeb549884bd89ed0d
parentd2f09a2f765cdffb6f40d7c772ab78fe89bdfa69 (diff)
downloadgcc-7c596205805fc3009c4ddf5a4256c921edc2fb04.zip
gcc-7c596205805fc3009c4ddf5a4256c921edc2fb04.tar.gz
gcc-7c596205805fc3009c4ddf5a4256c921edc2fb04.tar.bz2
(TARGET_SWITCHES): -m3 and -m3l also set SH2_BIT.
(OVERRIDE_OPTIONS): Don't add CPU_SH2 to CPU_SH3 when TARGET_SH3. From-SVN: r9362
-rw-r--r--gcc/config/sh/sh.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/sh/sh.h b/gcc/config/sh/sh.h
index 6e07fb2..d26f08d 100644
--- a/gcc/config/sh/sh.h
+++ b/gcc/config/sh/sh.h
@@ -141,8 +141,8 @@ extern int target_flags;
{ {"0", (SH0_BIT) }, \
{"1", (SH1_BIT) }, \
{"2", (SH2_BIT) }, \
- {"3", (SH3_BIT) }, \
- {"3l", (SH3_BIT|LITTLE_ENDIAN_BIT)}, \
+ {"3", (SH3_BIT|SH2_BIT) }, \
+ {"3l", (SH3_BIT|SH2_BIT|LITTLE_ENDIAN_BIT)}, \
{"R", (R_BIT) }, \
{"b", (-LITTLE_ENDIAN_BIT) }, \
{"bigtable", (BIGTABLE_BIT)}, \
@@ -176,8 +176,8 @@ do { \
sh_cpu = CPU_SH1; \
if (TARGET_SH2) \
sh_cpu = CPU_SH2; \
- if (TARGET_SH3) \
- sh_cpu = CPU_SH3|CPU_SH2; \
+ if (TARGET_SH3) \
+ sh_cpu = CPU_SH3; \
\
/* We *MUST* always define optimize since we *HAVE* to run \
shorten branches to get correct code. */ \