]> gcc.gnu.org Git - gcc.git/commitdiff
* config/ia64/ia64.c (mark_reg_gr_used_mask): Mind HARD_REGNO_NREGS.
authorRichard Henderson <rth@redhat.com>
Tue, 1 Jan 2002 00:23:22 +0000 (16:23 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 1 Jan 2002 00:23:22 +0000 (16:23 -0800)
From-SVN: r48437

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 5253f248391875a713be61026e24c82f1e33fcd7..7502386aa0c2992ed7a909d5a26ef63bbb3fe191 100644 (file)
@@ -1,3 +1,7 @@
+2001-12-31  Richard Henderson  <rth@redhat.com>
+
+       * config/ia64/ia64.c (mark_reg_gr_used_mask): Mind HARD_REGNO_NREGS.
+
 2001-12-31  Richard Henderson  <rth@redhat.com>
 
        * regrename.c (build_def_use): Don't rename asm operands that
index 133a2678485e9401b5d7a21a5c06458c50fb2e58..afe30063c5e4df6bbb8fd5d165f334ad107b20fe 100644 (file)
@@ -1377,7 +1377,11 @@ mark_reg_gr_used_mask (reg, data)
 {
   unsigned int regno = REGNO (reg);
   if (regno < 32)
-    current_frame_info.gr_used_mask |= 1 << regno;
+    {
+      unsigned int i, n = HARD_REGNO_NREGS (regno, GET_MODE (reg));
+      for (i = 0; i < n; ++i)
+       current_frame_info.gr_used_mask |= 1 << (regno + i);
+    }
 }
 
 /* Returns the number of bytes offset between the frame pointer and the stack
This page took 0.095493 seconds and 5 git commands to generate.