Commit 0b21dcf5 by Jeff Law

function.c (locate_and_pad_parm): For ARGS_GROW_DOWNWARD...

        * 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
parent 8de2a197
......@@ -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;
......
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