From: Stephane Carrez Date: Mon, 31 Mar 2003 20:59:19 +0000 (+0200) Subject: * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode. X-Git-Tag: releases/gcc-3.4.0~7546 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=117895840fa86d5a3a4dcc4bc9a761aade696103;p=thirdparty%2Fgcc.git * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode. From-SVN: r65109 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 7844eb856f47..760026309238 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2003-03-31 Stephane Carrez + + * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode. + 2003-03-31 Stephane Carrez * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0 diff --git a/gcc/config/m68hc11/m68hc11.c b/gcc/config/m68hc11/m68hc11.c index bb3327b90adc..5c762cace35f 100644 --- a/gcc/config/m68hc11/m68hc11.c +++ b/gcc/config/m68hc11/m68hc11.c @@ -1052,8 +1052,11 @@ hard_addr_reg_operand (operand, mode) int hard_reg_operand (operand, mode) rtx operand; - enum machine_mode mode ATTRIBUTE_UNUSED; + enum machine_mode mode; { + if (GET_MODE (operand) != mode && mode != VOIDmode) + return 0; + if (GET_CODE (operand) == SUBREG) operand = XEXP (operand, 0);