Commit 6bb8a3f7 by Kazu Hirata Committed by Kazu Hirata

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
parent fc8dfa20
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 < &reg_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. */
......
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