calls.c (combine_pending_stack_adjustment_and_call): Don't adjust stack when unadjusted_alignment ends up as zero.

* calls.c (combine_pending_stack_adjustment_and_call): Don't
adjust stack when unadjusted_alignment ends up as zero.

From-SVN: r37008
This commit is contained in:
Alexandre Oliva 2000-10-22 19:34:05 +00:00 committed by Alexandre Oliva
parent 99bdaa681e
commit 3e555c7de1
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-10-22 Alexandre Oliva <aoliva@redhat.com>
* calls.c (combine_pending_stack_adjustment_and_call): Don't
adjust stack when unadjusted_alignment ends up as zero.
2000-10-22 Joseph S. Myers <jsm28@cam.ac.uk>
* fixinc/genfixes: Remove EGCS reference.

View File

@ -1929,7 +1929,7 @@ combine_pending_stack_adjustment_and_call (unadjusted_args_size,
after the arguments are pushed. */
if (preferred_unit_stack_boundary > 1)
{
if (unadjusted_alignment >= 0)
if (unadjusted_alignment > 0)
adjustment -= preferred_unit_stack_boundary - unadjusted_alignment;
else
adjustment += unadjusted_alignment;