(INITIAL_ELIMINATION_OFFSET): Check frame_pointer_needed when eliminating

the arg pointer into the stack pointer.

From-SVN: r7619
This commit is contained in:
Richard Earnshaw 1994-06-30 11:48:44 +00:00
parent 084b6d7b05
commit bd4d60ce71

View File

@ -784,7 +784,7 @@ enum reg_class
(OFFSET) = -offset; \
else \
{ \
if (! regs_ever_live[HARD_FRAME_POINTER_REGNUM]) \
if (! frame_pointer_needed) \
offset -= 16; \
if (! volatile_func && (regs_ever_live[14] || saved_hard_reg)) \
offset += 4; \