diff options
author | Richard Sandiford <rsandifo@redhat.com> | 2001-09-10 10:14:13 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2001-09-10 10:14:13 +0000 |
commit | 2e547b13f124ca29dd676bd57ece27888eee5cf1 (patch) | |
tree | fb0f90e33e85af613e3006139a211658823e0466 /gcc | |
parent | 0df299ae0b9ef2d4ba4649db92b033d2baecafcb (diff) | |
download | gcc-2e547b13f124ca29dd676bd57ece27888eee5cf1.zip gcc-2e547b13f124ca29dd676bd57ece27888eee5cf1.tar.gz gcc-2e547b13f124ca29dd676bd57ece27888eee5cf1.tar.bz2 |
* calls.c (store_one_arg): Expand comment.
From-SVN: r45502
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/calls.c | 10 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index df5139d..892a74c 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2001-09-10 Richard Sandiford <rsandifo@redhat.com> + + * calls.c (store_one_arg): Expand comment. + 2001-09-10 Roman Lechtchinsky <rl@cs.tu-berlin.de> * calls.c (store_one_arg): Make sure that the entire argument is diff --git a/gcc/calls.c b/gcc/calls.c index dc915ad..f21160f 100644 --- a/gcc/calls.c +++ b/gcc/calls.c @@ -4565,8 +4565,14 @@ store_one_arg (arg, argblock, flags, variable_size, reg_parm_stack_space) } } - /* If parm is passed both in stack and in register and offset is - greater than reg_parm_stack_space, split the offset. */ + /* Special handling is required if part of the parameter lies in the + register parameter area. The argument may be copied into the stack + slot using memcpy(), but the original contents of the register + parameter area will be restored after the memcpy() call. + + To ensure that the part that lies in the register parameter area + is copied correctly, we emit a separate push for that part. This + push should be small enough to avoid a call to memcpy(). */ #ifndef STACK_PARMS_IN_REG_PARM_AREA if (arg->reg && arg->pass_on_stack) #else |