calls.c (combine_pending_stack_adjustment_and_call): Only use preferred_unit_stack_bo...
authorHerman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
Mon, 31 Jul 2000 14:04:41 +0000 (16:04 +0200)
committerJeff Law <law@gcc.gnu.org>
Mon, 31 Jul 2000 14:04:41 +0000 (08:04 -0600)
        * calls.c (combine_pending_stack_adjustment_and_call): Only use
        preferred_unit_stack_boundary when it is > 1.

From-SVN: r35381

gcc/ChangeLog
gcc/calls.c

index c2a385c..42ea12c 100644 (file)
@@ -1,3 +1,8 @@
+2000-07-31 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
+
+       * calls.c (combine_pending_stack_adjustment_and_call): Only use
+       preferred_unit_stack_boundary when it is > 1.
+
 2000-07-31  Joseph S. Myers  <jsm28@cam.ac.uk>
 
        * c-common.c (init_function_format_info): Add C99 format functions
index 8c5b9bc..f3ce50d 100644 (file)
@@ -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