Commit 547d71a1 by Andrew Haley Committed by Andrew Haley

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
parent 50ab464c
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment