sparc.c (compute_frame_size): Don't correct frame offset for stack bias.

* config/sparc/sparc.c (compute_frame_size): Don't correct frame
        offset for stack bias.

From-SVN: r49582
This commit is contained in:
Jeff Sturm 2002-02-07 18:48:13 +00:00 committed by Richard Henderson
parent 0669d0ed20
commit 225909c3c9
2 changed files with 7 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2002-02-07 Jeff Sturm <jsturm@one-point.com>
* config/sparc/sparc.c (compute_frame_size): Don't correct frame
offset for stack bias.
2002-02-07 H.J. Lu <hjl@gnu.org> 2002-02-07 H.J. Lu <hjl@gnu.org>
* config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined. * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.

View File

@ -3383,9 +3383,8 @@ compute_frame_size (size, leaf_function)
} }
else else
{ {
/* We subtract STARTING_FRAME_OFFSET, remember it's negative. /* We subtract STARTING_FRAME_OFFSET, remember it's negative. */
The stack bias (if any) is taken out to undo its effects. */ apparent_fsize = (size - STARTING_FRAME_OFFSET + 7) & -8;
apparent_fsize = (size - STARTING_FRAME_OFFSET + SPARC_STACK_BIAS + 7) & -8;
apparent_fsize += n_regs * 4; apparent_fsize += n_regs * 4;
actual_fsize = apparent_fsize + ((outgoing_args_size + 7) & -8); actual_fsize = apparent_fsize + ((outgoing_args_size + 7) & -8);
} }