From 5615d8fd504d995bbee19c16e5dc72851b8605a1 Mon Sep 17 00:00:00 2001 From: Stephen Clarke Date: Thu, 8 Aug 2002 21:57:52 +0000 Subject: [PATCH] sh.c (prepare_move_operands): Only call target_reg_operand if TARGET_SHMEDIA. 2002-08-08 Stephen Clarke * config/sh/sh.c (prepare_move_operands): Only call target_reg_operand if TARGET_SHMEDIA. From-SVN: r56139 --- gcc/ChangeLog | 5 +++++ gcc/config/sh/sh.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 596f5ab694f..fa7430eeedf 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2002-08-08 Stephen Clarke + + * config/sh/sh.c (prepare_move_operands): Only call + target_reg_operand if TARGET_SHMEDIA. + 2002-08-08 Jakub Jelinek * config/rs6000/rs6000.h, config/rs6000/aix.h, diff --git a/gcc/config/sh/sh.c b/gcc/config/sh/sh.c index d727a678638..ad9ac7d4c4f 100644 --- a/gcc/config/sh/sh.c +++ b/gcc/config/sh/sh.c @@ -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