calls.c (combine_pending_stack_adjustment_and_call): Remove unnecessary unadjusted_al...
authorNathan Sidwell <nathan@acm.org>
Mon, 1 May 2017 23:22:30 +0000 (23:22 +0000)
committerNathan Sidwell <nathan@gcc.gnu.org>
Mon, 1 May 2017 23:22:30 +0000 (23:22 +0000)
* calls.c (combine_pending_stack_adjustment_and_call): Remove
unnecessary unadjusted_alignment check.

From-SVN: r247452

gcc/ChangeLog
gcc/calls.c

index 4b01ed82fb837b4e0035c63017de9c94130708e9..667eaa13eb71c0bc05e319b12ee83bf54d3518ab 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
         PR c++/80038
index c92e35ea5a8d77f8bebfcaa5112c127b629c26a0..c26f157b0b11cf2b991a55c3aa29e508d0498532 100644 (file)
@@ -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