]> gcc.gnu.org Git - gcc.git/commitdiff
* config/m68hc11/m68hc11.c (hard_reg_operand): Check the mode.
authorStephane Carrez <stcarrez@nerim.fr>
Mon, 31 Mar 2003 20:59:19 +0000 (22:59 +0200)
committerStephane Carrez <ciceron@gcc.gnu.org>
Mon, 31 Mar 2003 20:59:19 +0000 (22:59 +0200)
From-SVN: r65109

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

index 7844eb856f47c43c98c5af5db72a7f37e9f0e731..76002630923897b2d1af5a8e8d8a501a6d0d7d3b 100644 (file)
@@ -1,3 +1,7 @@
+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
index bb3327b90adc24b4467bff48c8b0213ea7f50898..5c762cace35f96ae619421b7c5b6bbacfb4bf95f 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);
 
This page took 0.07202 seconds and 5 git commands to generate.