Commit f95e79cc by Richard Henderson Committed by Richard Henderson

* config/ia64/ia64.c (mark_reg_gr_used_mask): Mind HARD_REGNO_NREGS.

From-SVN: r48437
parent a4219437
2001-12-31 Richard Henderson <rth@redhat.com> 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 * regrename.c (build_def_use): Don't rename asm operands that
were originally hard registers. were originally hard registers.
(copyprop_hardreg_forward_1): Likewise. (copyprop_hardreg_forward_1): Likewise.
......
...@@ -1377,7 +1377,11 @@ mark_reg_gr_used_mask (reg, data) ...@@ -1377,7 +1377,11 @@ mark_reg_gr_used_mask (reg, data)
{ {
unsigned int regno = REGNO (reg); unsigned int regno = REGNO (reg);
if (regno < 32) 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 /* Returns the number of bytes offset between the frame pointer and the stack
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment