This is the mail archive of the
libffi-discuss@sourceware.org
mailing list for the libffi project.
[PATCH 3/6] Remove surplus frame from MASM function entry
- From: Peter Rosin <peda at lysator dot liu dot se>
- To: libffi-discuss at sourceware dot org
- Cc: Peter Rosin <peda at lysator dot liu dot se>
- Date: Fri, 23 Mar 2012 00:25:28 +0100
- Subject: [PATCH 3/6] Remove surplus frame from MASM function entry
- References: <1332458731-15004-1-git-send-email-peda@lysator.liu.se>
---
ChangeLog | 5 +++++
src/x86/win32.S | 2 --
2 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2d03e59..0c0cc68 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2012-03-22 Peter Rosin <peda@lysator.liu.se>
+ * src/x86/win32.S [MSVC] (ffi_closure_THISCALL): Remove the manual
+ frame on function entry, MASM adds one automatically.
+
+2012-03-22 Peter Rosin <peda@lysator.liu.se>
+
* testsuite/libffi.call/ffitest.h [MSVC]: Add kludge for missing
bits in the MSVC headers.
diff --git a/src/x86/win32.S b/src/x86/win32.S
index 47629fe..f1a1278 100644
--- a/src/x86/win32.S
+++ b/src/x86/win32.S
@@ -171,8 +171,6 @@ ca_epilogue:
ffi_call_win32 ENDP
ffi_closure_THISCALL PROC NEAR FORCEFRAME
- push ebp
- mov ebp, esp
sub esp, 40
lea edx, [ebp -24]
mov [ebp - 12], edx /* resp */
--
1.7.9