From: Herman A.J. ten Brugge Date: Mon, 31 Jul 2000 14:04:41 +0000 (+0200) Subject: calls.c (combine_pending_stack_adjustment_and_call): Only use preferred_unit_stack_bo... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e079dcdb685b02d9e05c93d4874107d5daa8e211;p=gcc.git 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index c2a385c735e..42ea12c88f8 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2000-07-31 Herman A.J. ten Brugge + + * calls.c (combine_pending_stack_adjustment_and_call): Only use + preferred_unit_stack_boundary when it is > 1. + 2000-07-31 Joseph S. Myers * c-common.c (init_function_format_info): Add C99 format functions diff --git a/gcc/calls.c b/gcc/calls.c index 8c5b9bcd29c..f3ce50d4735 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -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 (unadjusted_alignment >= 0) - adjustment -= preferred_unit_stack_boundary - unadjusted_alignment; - else - adjustment += unadjusted_alignment; + 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