ffi64.c (ffi_prep_args ): 8-align all stack arguments.
2004-08-10 Andrew Haley <aph@redhat.com> * src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments. From-SVN: r85753
This commit is contained in:
parent
50ab464c2e
commit
547d71a18f
2 changed files with 6 additions and 0 deletions
|
@ -1,3 +1,7 @@
|
|||
2004-08-10 Andrew Haley <aph@redhat.com>
|
||||
|
||||
* src/x86/ffi64.c (ffi_prep_args ): 8-align all stack arguments.
|
||||
|
||||
2004-08-01 Robert Millan <robertmh@gnu.org>
|
||||
|
||||
* configure.ac: Detect knetbsd-gnu and kfreebsd-gnu.
|
||||
|
|
|
@ -341,6 +341,8 @@ ffi_prep_args (stackLayout *stack, extended_cif *ecif)
|
|||
{
|
||||
/* Pass this argument in memory. */
|
||||
argp = (void *)ALIGN(argp, (*p_arg)->alignment);
|
||||
/* Stack arguments are *always* at least 8 byte aligned. */
|
||||
argp = (void *)ALIGN(argp, 8);
|
||||
memcpy (argp, *p_argv, (*p_arg)->size);
|
||||
argp += (*p_arg)->size;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue