diff options
author | Andrew Haley <aph@redhat.com> | 2004-08-10 14:24:00 +0000 |
---|---|---|
committer | Andrew Haley <aph@gcc.gnu.org> | 2004-08-10 14:24:00 +0000 |
commit | 547d71a18f20da3856d73302f1e6c5d9f0ebfa73 (patch) | |
tree | 683db4895b4506521633380a196c0c50fe3e5e38 | |
parent | 50ab464c2e591ceb4b8f83cd3615414fa7c7010c (diff) | |
download | gcc-547d71a18f20da3856d73302f1e6c5d9f0ebfa73.zip gcc-547d71a18f20da3856d73302f1e6c5d9f0ebfa73.tar.gz gcc-547d71a18f20da3856d73302f1e6c5d9f0ebfa73.tar.bz2 |
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
-rw-r--r-- | libffi/ChangeLog | 4 | ||||
-rw-r--r-- | libffi/src/x86/ffi64.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index d01a4dd..61b0b4f 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -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. diff --git a/libffi/src/x86/ffi64.c b/libffi/src/x86/ffi64.c index 343ee92..653d45c 100644 --- a/libffi/src/x86/ffi64.c +++ b/libffi/src/x86/ffi64.c @@ -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; } |