diff options
author | Paul Brook <paul@codesourcery.com> | 2004-03-05 16:44:33 +0000 |
---|---|---|
committer | Paul Brook <pbrook@gcc.gnu.org> | 2004-03-05 16:44:33 +0000 |
commit | ce407aa99298261044da7d2018db90bcfc7d0bb1 (patch) | |
tree | 6d9578597779be8df2863715693a3ad75f4effc5 /gcc | |
parent | 019dd4ece990a8efd7eb2a85653440972c83035d (diff) | |
download | gcc-ce407aa99298261044da7d2018db90bcfc7d0bb1.zip gcc-ce407aa99298261044da7d2018db90bcfc7d0bb1.tar.gz gcc-ce407aa99298261044da7d2018db90bcfc7d0bb1.tar.bz2 |
* function.c (assign_parms): Include pretend alignment offset.
From-SVN: r78973
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | 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 <paul@codesourcery.com> + + * function.c (assign_parms): Include pretend alignment offset. + 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu> * 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; |