From 0aae15720e6ba2eb8b8f119d8e6dc0169299d151 Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Mon, 1 May 2017 23:22:30 +0000 Subject: [PATCH] calls.c (combine_pending_stack_adjustment_and_call): Remove unnecessary unadjusted_alignment check. * calls.c (combine_pending_stack_adjustment_and_call): Remove unnecessary unadjusted_alignment check. From-SVN: r247452 --- gcc/ChangeLog | 5 +++++ gcc/calls.c | 9 ++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 4b01ed8..667eaa1 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-05-01 Nathan Sidwell + + * calls.c (combine_pending_stack_adjustment_and_call): Remove + unnecessary unadjusted_alignment check. + 2017-05-01 Xi Ruoyao PR c++/80038 diff --git a/gcc/calls.c b/gcc/calls.c index c92e35e..c26f157 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -2644,13 +2644,8 @@ combine_pending_stack_adjustment_and_call (int 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; - } + if (preferred_unit_stack_boundary > 1 && unadjusted_alignment) + adjustment -= preferred_unit_stack_boundary - 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 -- 2.7.4