reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM is only used as frame pointer when...
* reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM is only used as frame pointer when frame_pointer_needed is true. From-SVN: r52140
This commit is contained in:
parent
6127eac4bd
commit
2f460a0a57
@ -1,3 +1,8 @@
|
||||
2002-04-10 Ulrich Weigand <uweigand@de.ibm.com>
|
||||
|
||||
* reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
|
||||
is only used as frame pointer when frame_pointer_needed is true.
|
||||
|
||||
2002-04-10 Richard Earnshaw <rearnsha@arm.com>
|
||||
|
||||
PR target/817
|
||||
|
@ -5565,6 +5565,7 @@ choose_reload_regs (chain)
|
||||
&& ! TEST_HARD_REG_BIT (reg_reloaded_dead, i))
|
||||
/* Don't clobber the frame pointer. */
|
||||
|| (i == HARD_FRAME_POINTER_REGNUM
|
||||
&& frame_pointer_needed
|
||||
&& rld[r].out)
|
||||
/* Don't really use the inherited spill reg
|
||||
if we need it wider than we've got it. */
|
||||
@ -5735,7 +5736,9 @@ choose_reload_regs (chain)
|
||||
|
||||
/* If we found an equivalent reg, say no code need be generated
|
||||
to load it, and use it as our reload reg. */
|
||||
if (equiv != 0 && regno != HARD_FRAME_POINTER_REGNUM)
|
||||
if (equiv != 0
|
||||
&& (regno != HARD_FRAME_POINTER_REGNUM
|
||||
|| !frame_pointer_needed))
|
||||
{
|
||||
int nr = HARD_REGNO_NREGS (regno, rld[r].mode);
|
||||
int k;
|
||||
|
Loading…
Reference in New Issue
Block a user