Message ID | 201007252356.09847.ebotcazou@adacore.com |
---|---|
State | New |
Headers | show |
> 2010-07-25 Eric Botcazou <ebotcazou@adacore.com> > > PR target/44942 > * config/sparc/sparc.c (function_arg_advance): Always take into account > the padding, if any. Applied on all branches.
Index: config/sparc/sparc.c =================================================================== --- config/sparc/sparc.c (revision 162521) +++ config/sparc/sparc.c (working copy) @@ -5814,9 +5814,8 @@ function_arg_advance (struct sparc_args /* We pass 0 for incoming_p here, it doesn't matter. */ slotno = function_arg_slotno (cum, mode, type, named, 0, ®no, &padding); - /* If register required leading padding, add it. */ - if (slotno != -1) - cum->words += padding; + /* If argument requires leading padding, add it. */ + cum->words += padding; if (TARGET_ARCH32) {