Commit 0aae1572 by Nathan Sidwell Committed by Nathan Sidwell

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
parent 5a4dbf7d
2017-05-01 Nathan Sidwell <nathan@acm.org>
* calls.c (combine_pending_stack_adjustment_and_call): Remove
unnecessary unadjusted_alignment check.
2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn> 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
PR c++/80038 PR c++/80038
......
...@@ -2644,13 +2644,8 @@ combine_pending_stack_adjustment_and_call (int unadjusted_args_size, ...@@ -2644,13 +2644,8 @@ combine_pending_stack_adjustment_and_call (int 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 (preferred_unit_stack_boundary > 1) if (preferred_unit_stack_boundary > 1 && unadjusted_alignment)
{ adjustment -= preferred_unit_stack_boundary - unadjusted_alignment;
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 /* 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