Commit 3bf35ccb by Jeff Law

pa.c (compute_frame_size): Remove implicit assumption that %r4 is the frame pointer.

	* pa.c (compute_frame_size): Remove implicit assumption that
	%r4 is the frame pointer.

From-SVN: r6247
parent ba0bfdac
...@@ -1937,22 +1937,13 @@ compute_frame_size (size, fregs_live) ...@@ -1937,22 +1937,13 @@ compute_frame_size (size, fregs_live)
we need to add this in because of STARTING_FRAME_OFFSET. */ we need to add this in because of STARTING_FRAME_OFFSET. */
fsize = size + (size || frame_pointer_needed ? 8 : 0); fsize = size + (size || frame_pointer_needed ? 8 : 0);
/* fp is stored in a special place. */ for (i = 18; i >= 3; i--)
if (frame_pointer_needed)
{ {
for (i = 18; i >= 5; i--) /* fp is stored in a special place. */
if (regs_ever_live[i]) if (regs_ever_live[i]
fsize += 4; && (i != FRAME_POINTER_REGNUM || !frame_pointer_needed))
if (regs_ever_live[3])
fsize += 4; fsize += 4;
} }
else
{
for (i = 18; i >= 3; i--)
if (regs_ever_live[i])
fsize += 4;
}
fsize = (fsize + 7) & ~7; fsize = (fsize + 7) & ~7;
if (!TARGET_SNAKE) if (!TARGET_SNAKE)
......
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