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
This commit is contained in:
Herman A.J. ten Brugge 2000-07-31 16:04:41 +02:00 committed by Jeff Law
parent 980d86e9b4
commit e079dcdb68
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,8 @@
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>
* c-common.c (init_function_format_info): Add C99 format functions

View File

@ -1913,10 +1913,13 @@ combine_pending_stack_adjustment_and_call (unadjusted_args_size,
adjustment = pending_stack_adjust;
/* Push enough additional bytes that the stack will be aligned
after the arguments are pushed. */
if (preferred_unit_stack_boundary > 1)
{
if (unadjusted_alignment >= 0)
adjustment -= preferred_unit_stack_boundary - unadjusted_alignment;
else
adjustment += unadjusted_alignment;
}
/* Now, sets ARGS_SIZE->CONSTANT so that we pop the right number of
bytes after the call. The right number is the entire