sh.c (prepare_move_operands): Only call target_reg_operand if TARGET_SHMEDIA.
authorStephen Clarke <stephen.clarke@superh.com>
Thu, 8 Aug 2002 21:57:52 +0000 (21:57 +0000)
committerJoern Rennecke <amylaar@gcc.gnu.org>
Thu, 8 Aug 2002 21:57:52 +0000 (22:57 +0100)
2002-08-08  Stephen Clarke <stephen.clarke@superh.com>

* config/sh/sh.c (prepare_move_operands): Only call
target_reg_operand if TARGET_SHMEDIA.

From-SVN: r56139

gcc/ChangeLog
gcc/config/sh/sh.c

index 596f5ab694feb76cee1e091669aaa9b9ce58c866..fa7430eeedf604ead2969e6f6f71aabdfaa431cd 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
+
+       * config/sh/sh.c (prepare_move_operands): Only call
+       target_reg_operand if TARGET_SHMEDIA.
+       
 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
 
        * config/rs6000/rs6000.h, config/rs6000/aix.h,
index d727a678638636fdc4f764072d14dc01e89201d7..ad9ac7d4c4fbb4cbe41ea751385dc9fbde83f1ba 100644 (file)
@@ -692,7 +692,8 @@ prepare_move_operands (operands, mode)
        {
          if (GET_CODE (operands[0]) == MEM)
            operands[1] = force_reg (Pmode, operands[1]);
-         else if (GET_CODE (operands[1]) == LABEL_REF
+         else if (TARGET_SHMEDIA
+                  && GET_CODE (operands[1]) == LABEL_REF
                   && target_reg_operand (operands[0], mode))
            /* It's ok.  */;
          else