OSDN Git Service

2002-08-08 Stephen Clarke <stephen.clarke@superh.com>
authoramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Aug 2002 21:57:52 +0000 (21:57 +0000)
committeramylaar <amylaar@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 8 Aug 2002 21:57:52 +0000 (21:57 +0000)
* config/sh/sh.c (prepare_move_operands): Only call
target_reg_operand if TARGET_SHMEDIA.

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

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

index 596f5ab..fa7430e 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 d727a67..ad9ac7d 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