function.c (locate_and_pad_parm): For ARGS_GROW_DOWNWARD...
authorJeff Law <law@gcc.gnu.org>
Sun, 17 Apr 1994 05:14:50 +0000 (23:14 -0600)
committerJeff Law <law@gcc.gnu.org>
Sun, 17 Apr 1994 05:14:50 +0000 (23:14 -0600)
        * function.c (locate_and_pad_parm): For ARGS_GROW_DOWNWARD,
        Round sizetree for both upward and downward padding, nuke
        the (now unnecessary) call to pad_below for arg_size_ptr.

From-SVN: r7056

gcc/function.c

index 4f40d0b540a9c46c20f48357126d20eabf0e4c21..73ace46e6c211897cb5bfbef089bfc68552312ae 100644 (file)
@@ -3936,7 +3936,7 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
       offset_ptr->constant = - initial_offset_ptr->constant;
       offset_ptr->var = 0;
     }
-  if (where_pad == upward
+  if (where_pad != none
       && (TREE_CODE (sizetree) != INTEGER_CST
          || ((TREE_INT_CST_LOW (sizetree) * BITS_PER_UNIT) % PARM_BOUNDARY)))
     sizetree = round_up (sizetree, PARM_BOUNDARY / BITS_PER_UNIT);
@@ -3956,9 +3956,6 @@ locate_and_pad_parm (passed_mode, type, in_regs, fndecl,
       arg_size_ptr->constant = (- initial_offset_ptr->constant -
                                offset_ptr->constant); 
     }
-/*  ADD_PARM_SIZE (*arg_size_ptr, sizetree); */
-  if (where_pad == downward)
-    pad_below (arg_size_ptr, passed_mode, sizetree);
 #else /* !ARGS_GROW_DOWNWARD */
   pad_to_arg_alignment (initial_offset_ptr, boundary);
   *offset_ptr = *initial_offset_ptr;