Commit 0b7ae565 by Richard Henderson Committed by Richard Henderson

i386.c (ix86_compute_frame_layout): Do not add bottom alignment for leaf functions.

        * config/i386/i386.c (ix86_compute_frame_layout): Do not add
        bottom alignment for leaf functions.

From-SVN: r53965
parent 16069d69
2002-05-28 Richard Henderson <rth@redhat.com>
* config/i386/i386.c (ix86_compute_frame_layout): Do not add
bottom alignment for leaf functions.
2002-05-28 Zack Weinberg <zack@codesourcery.com>
* config/pa/milli32.S, config/pa/lib1funcs.asm,
......
......@@ -4138,8 +4138,9 @@ ix86_compute_frame_layout (frame)
offset += size;
/* Add outgoing arguments area. */
if (ACCUMULATE_OUTGOING_ARGS)
/* Add outgoing arguments area. Can be skipped if we eliminated
all the function calls as dead code. */
if (ACCUMULATE_OUTGOING_ARGS && !current_function_is_leaf)
{
offset += current_function_outgoing_args_size;
frame->outgoing_arguments_size = current_function_outgoing_args_size;
......@@ -4147,9 +4148,12 @@ ix86_compute_frame_layout (frame)
else
frame->outgoing_arguments_size = 0;
/* Align stack boundary. */
frame->padding2 = ((offset + preferred_alignment - 1)
& -preferred_alignment) - offset;
/* Align stack boundary. Only needed if we're calling another function. */
if (!current_function_is_leaf)
frame->padding2 = ((offset + preferred_alignment - 1)
& -preferred_alignment) - offset;
else
frame->padding2 = 0;
offset += frame->padding2;
......
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