Fix a reload inheritance problem

From-SVN: r36497
This commit is contained in:
Bernd Schmidt 2000-09-18 17:00:07 +00:00 committed by Bernd Schmidt
parent 40fc375d0a
commit 5d77a50c77
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-09-18 Bernd Schmidt <bernds@redhat.co.uk>
* reload1.c (forget_old_reloads_1): If a hard reg is stored, clear
its entry in spill_reg_store.
2000-09-18 Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.c (sh_expand_prologue): Mark GOTaddr2picreg as

View File

@ -4017,7 +4017,10 @@ forget_old_reloads_1 (x, ignored, data)
reload reg in the current instruction. */
if (n_reloads == 0
|| ! TEST_HARD_REG_BIT (reg_is_output_reload, regno + i))
CLEAR_HARD_REG_BIT (reg_reloaded_valid, regno + i);
{
CLEAR_HARD_REG_BIT (reg_reloaded_valid, regno + i);
spill_reg_store[regno + i] = 0;
}
}
/* Since value of X has changed,