resource.c (find_free_register): Don't use the frame pointer if frame_pointer_needed.

* resource.c (find_free_register): Don't use the frame pointer
        if frame_pointer_needed.

From-SVN: r30246
This commit is contained in:
Richard Henderson 1999-10-28 12:30:02 -07:00 committed by Richard Henderson
parent c9fc373cf0
commit af05822029
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
Thu Oct 28 12:28:50 1999 Richard Henderson <rth@cygnus.com>
* resource.c (find_free_register): Don't use the frame pointer
if frame_pointer_needed.
Thu Oct 28 10:02:00 1999 Jim Wilson <wilson@cygnus.com>
* config/mips/mips.c (mips_va_arg): Delete gen_jump as emit_jump arg.

View File

@ -1261,6 +1261,10 @@ find_free_register (current_insn, last_insn, class_str, mode, reg_set)
/* And that we don't create an extra save/restore. */
if (! call_used_regs[regno] && ! regs_ever_live[regno])
continue;
/* And we don't clobber traceback for noreturn functions. */
if ((regno == FRAME_POINTER_REGNUM || regno == HARD_FRAME_POINTER_REGNUM)
&& (! reload_completed || frame_pointer_needed))
continue;
success = 1;
for (j = HARD_REGNO_NREGS (regno, mode) - 1; j >= 0; j--)