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> 2002-05-28 Zack Weinberg <zack@codesourcery.com>
* config/pa/milli32.S, config/pa/lib1funcs.asm, * config/pa/milli32.S, config/pa/lib1funcs.asm,
......
...@@ -4138,8 +4138,9 @@ ix86_compute_frame_layout (frame) ...@@ -4138,8 +4138,9 @@ ix86_compute_frame_layout (frame)
offset += size; offset += size;
/* Add outgoing arguments area. */ /* Add outgoing arguments area. Can be skipped if we eliminated
if (ACCUMULATE_OUTGOING_ARGS) all the function calls as dead code. */
if (ACCUMULATE_OUTGOING_ARGS && !current_function_is_leaf)
{ {
offset += current_function_outgoing_args_size; offset += current_function_outgoing_args_size;
frame->outgoing_arguments_size = current_function_outgoing_args_size; frame->outgoing_arguments_size = current_function_outgoing_args_size;
...@@ -4147,9 +4148,12 @@ ix86_compute_frame_layout (frame) ...@@ -4147,9 +4148,12 @@ ix86_compute_frame_layout (frame)
else else
frame->outgoing_arguments_size = 0; frame->outgoing_arguments_size = 0;
/* Align stack boundary. */ /* Align stack boundary. Only needed if we're calling another function. */
frame->padding2 = ((offset + preferred_alignment - 1) if (!current_function_is_leaf)
& -preferred_alignment) - offset; frame->padding2 = ((offset + preferred_alignment - 1)
& -preferred_alignment) - offset;
else
frame->padding2 = 0;
offset += frame->padding2; 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