OSDN Git Service

* config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
authorciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2003 20:59:19 +0000 (20:59 +0000)
committerciceron <ciceron@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 31 Mar 2003 20:59:19 +0000 (20:59 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@65109 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/config/m68hc11/m68hc11.c

index 7844eb8..7600263 100644 (file)
@@ -1,5 +1,9 @@
 2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
 
+       * config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
+
+2003-03-31  Stephane Carrez  <stcarrez@nerim.fr>
+
        * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Don't rely on REG_WAS_0
        notes as they are boggus.
        (m68hc11_gen_movqi): Likewise.
index bb3327b..5c762ca 100644 (file)
@@ -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);