From: Paul Brook Date: Fri, 5 Mar 2004 16:44:33 +0000 (+0000) Subject: * function.c (assign_parms): Include pretend alignment offset. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ce407aa99298261044da7d2018db90bcfc7d0bb1;p=gcc.git * function.c (assign_parms): Include pretend alignment offset. From-SVN: r78973 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6698fb8d95f..7e4af9331ec 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2004-03-05 Paul Brook + + * function.c (assign_parms): Include pretend alignment offset. + 2004-03-05 Richard Kenner * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size diff --git a/gcc/function.c b/gcc/function.c index a42b8065516..b59707a0b76 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -4591,13 +4591,9 @@ assign_parms (tree fndecl) locate_and_pad_parm (promoted_mode, passed_type, in_regs, entry_parm ? partial : 0, fndecl, &stack_args_size, &locate); - /* Adjust offsets to include pretend args, unless this is the - split arg. */ - if (pretend_bytes == 0) - { - locate.slot_offset.constant += extra_pretend_bytes; - locate.offset.constant += extra_pretend_bytes; - } + /* Adjust offsets to include the pretend args. */ + locate.slot_offset.constant += extra_pretend_bytes - pretend_bytes; + locate.offset.constant += extra_pretend_bytes - pretend_bytes; { rtx offset_rtx;