summaryrefslogtreecommitdiff
path: root/libffi/src
diff options
context:
space:
mode:
authoraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-07 15:59:30 +0000
committeraph <aph@138bc75d-0d04-0410-961f-82ee72b054a4>2010-07-07 15:59:30 +0000
commit297dcba185d03e68d8ea623cd79d6dcf43d9729a (patch)
tree5e6bb20be1facd801ad7fae4172ad62a677fc612 /libffi/src
parent6416852cb041376b066d3d7c196ae7f0c80c4329 (diff)
downloadgcc-297dcba185d03e68d8ea623cd79d6dcf43d9729a.tar.gz
2010-07-07 Neil Roberts <neil@linux.intel.com>
* src/x86/sysv.S (ffi_call_SYSV): Align the stack pointer to 16-bytes. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@161922 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src')
-rw-r--r--libffi/src/x86/sysv.S3
1 files changed, 3 insertions, 0 deletions
diff --git a/libffi/src/x86/sysv.S b/libffi/src/x86/sysv.S
index 2e5e3da57f0..f3b0bd5ac52 100644
--- a/libffi/src/x86/sysv.S
+++ b/libffi/src/x86/sysv.S
@@ -48,6 +48,9 @@ ffi_call_SYSV:
movl 16(%ebp),%ecx
subl %ecx,%esp
+ /* Align the stack pointer to 16-bytes */
+ andl $0xfffffff0, %esp
+
movl %esp,%eax
/* Place all of the ffi_prep_args in position */