reload1.c (update_eliminables): Unconditionally check if frame_pointer_needed has changed.
* reload1.c (update_eliminables): Unconditionally check if frame_pointer_needed has changed. From-SVN: r58627
This commit is contained in:
parent
fc8dfa2066
commit
6bb8a3f75a
2 changed files with 5 additions and 4 deletions
|
@ -1,3 +1,8 @@
|
|||
2002-10-29 Kazu Hirata <kazu@cs.umass.edu>
|
||||
|
||||
* reload1.c (update_eliminables): Unconditionally check if
|
||||
frame_pointer_needed has changed.
|
||||
|
||||
Tue Oct 29 15:37:39 CET 2002 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* toplev.c (rest_of_compilation): Reorganize way reg_scan is called
|
||||
|
|
|
@ -3420,9 +3420,7 @@ static void
|
|||
update_eliminables (pset)
|
||||
HARD_REG_SET *pset;
|
||||
{
|
||||
#if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM
|
||||
int previous_frame_pointer_needed = frame_pointer_needed;
|
||||
#endif
|
||||
struct elim_table *ep;
|
||||
|
||||
for (ep = reg_eliminate; ep < ®_eliminate[NUM_ELIMINABLE_REGS]; ep++)
|
||||
|
@ -3487,12 +3485,10 @@ update_eliminables (pset)
|
|||
}
|
||||
}
|
||||
|
||||
#if HARD_FRAME_POINTER_REGNUM != FRAME_POINTER_REGNUM
|
||||
/* If we didn't need a frame pointer last time, but we do now, spill
|
||||
the hard frame pointer. */
|
||||
if (frame_pointer_needed && ! previous_frame_pointer_needed)
|
||||
SET_HARD_REG_BIT (*pset, HARD_FRAME_POINTER_REGNUM);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Initialize the table of registers to eliminate. */
|
||||
|
|
Loading…
Add table
Reference in a new issue