Wed Jun 17 15:20:00 PDT 1998 Catherine Moore <clm@cygnus.com>
* reload1.c (spill_hard_reg): Check mode of register when
spilling from scratch_list.
From-SVN: r20542
+Wed Jun 17 15:20:00 PDT 1998 Catherine Moore <clm@cygnus.com>
+
+ * reload1.c (spill_hard_reg): Check mode of register when
+ spilling from scratch_list.
+
Wed Jun 17 16:25:38 EDT 1998 Andrew MacLeod (amacleod@cygnus.com)
* except.c (add_new_handler): fix bug in finding last region handler.
}
for (i = 0; i < scratch_list_length; i++)
{
- if (scratch_list[i] && REGNO (scratch_list[i]) == regno)
+ if (scratch_list[i]
+ && regno >= REGNO (scratch_list[i])
+ && regno < REGNO (scratch_list[i])
+ + HARD_REGNO_NREGS (REGNO (scratch_list[i]),
+ GET_MODE (scratch_list[i])))
{
if (! cant_eliminate && basic_block_needs[0]
&& ! basic_block_needs[(int) class][scratch_block[i]])