Commit e079dcdb by Herman A.J. ten Brugge Committed by Jeff Law

calls.c (combine_pending_stack_adjustment_and_call): Only use…

calls.c (combine_pending_stack_adjustment_and_call): Only use preferred_unit_stack_boundary when it is > 1.

        * calls.c (combine_pending_stack_adjustment_and_call): Only use
        preferred_unit_stack_boundary when it is > 1.

From-SVN: r35381
parent 980d86e9
2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* calls.c (combine_pending_stack_adjustment_and_call): Only use
preferred_unit_stack_boundary when it is > 1.
2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk> 2000-07-31 Joseph S. Myers <jsm28@cam.ac.uk>
* c-common.c (init_function_format_info): Add C99 format functions * c-common.c (init_function_format_info): Add C99 format functions
......
...@@ -1913,10 +1913,13 @@ combine_pending_stack_adjustment_and_call (unadjusted_args_size, ...@@ -1913,10 +1913,13 @@ combine_pending_stack_adjustment_and_call (unadjusted_args_size,
adjustment = pending_stack_adjust; adjustment = pending_stack_adjust;
/* Push enough additional bytes that the stack will be aligned /* Push enough additional bytes that the stack will be aligned
after the arguments are pushed. */ after the arguments are pushed. */
if (unadjusted_alignment >= 0) if (preferred_unit_stack_boundary > 1)
adjustment -= preferred_unit_stack_boundary - unadjusted_alignment; {
else if (unadjusted_alignment >= 0)
adjustment += unadjusted_alignment; adjustment -= preferred_unit_stack_boundary - unadjusted_alignment;
else
adjustment += unadjusted_alignment;
}
/* Now, sets ARGS_SIZE->CONSTANT so that we pop the right number of /* Now, sets ARGS_SIZE->CONSTANT so that we pop the right number of
bytes after the call. The right number is the entire bytes after the call. The right number is the entire
......
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