aboutsummaryrefslogtreecommitdiff
path: root/ports/libffi/win32-disable-stackframe-check.patch
diff options
context:
space:
mode:
Diffstat (limited to 'ports/libffi/win32-disable-stackframe-check.patch')
-rw-r--r--ports/libffi/win32-disable-stackframe-check.patch29
1 files changed, 0 insertions, 29 deletions
diff --git a/ports/libffi/win32-disable-stackframe-check.patch b/ports/libffi/win32-disable-stackframe-check.patch
deleted file mode 100644
index f9a1b186f..000000000
--- a/ports/libffi/win32-disable-stackframe-check.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-diff --git a/src/x86/ffi.c b/src/x86/ffi.c
-index 9a59218..9f5d703 100644
---- a/src/x86/ffi.c
-+++ b/src/x86/ffi.c
-@@ -255,6 +255,14 @@ static const struct abi_params abi_params[FFI_LAST_ABI] = {
-
- extern void FFI_DECLARE_FASTCALL ffi_call_i386(struct call_frame *, char *) FFI_HIDDEN;
-
-+/* we perform some black magic here to use some of the parent's
-+ * stack frame in ff_call_win() that breaks with the msvc compiler
-+ * with the /RTCs or /GZ flags. Disable the 'Stack frame run time
-+ * error checking' for this function so we don't hit weird exceptions
-+ * in debug builds */
-+#if defined(_MSC_VER)
-+#pragma runtime_checks("s", off)
-+#endif
- static void
- ffi_call_int (ffi_cif *cif, void (*fn)(void), void *rvalue,
- void **avalue, void *closure)
-@@ -390,6 +398,9 @@ ffi_call_int (ffi_cif *cif, void (*fn)(void), void *rvalue,
-
- ffi_call_i386 (frame, stack);
- }
-+#if defined(_MSC_VER)
-+#pragma runtime_checks("s", restore)
-+#endif
-
- void
- ffi_call (ffi_cif *cif, void (*fn)(void), void *rvalue, void **avalue)