OSDN Git Service

(TARGET_SWITCHES): -m3 and -m3l also set SH2_BIT.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Apr 1995 21:01:12 +0000 (21:01 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 11 Apr 1995 21:01:12 +0000 (21:01 +0000)
(OVERRIDE_OPTIONS): Don't add CPU_SH2 to CPU_SH3 when TARGET_SH3.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9362 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/config/sh/sh.h

index 6e07fb2..d26f08d 100644 (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.  */                 \