From 81ba3f3a2e8cf10e9edc347935cc5ce8f764de95 Mon Sep 17 00:00:00 2001 From: pbrook Date: Fri, 5 Mar 2004 16:44:33 +0000 Subject: [PATCH] * function.c (assign_parms): Include pretend alignment offset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78973 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ChangeLog | 4 ++++ gcc/function.c | 10 +++------- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 6698fb8..7e4af93 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 a42b806..b59707a 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; -- 2.7.4