(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
This commit is contained in:
Jim Wilson 1995-04-11 14:01:12 -07:00
parent d2f09a2f76
commit 7c59620580

View File

@ -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. */ \