[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 01/02: Ensure 32 bytes of stack are reserved on 64-bit W
From: |
Andy Wingo |
Subject: |
[Guile-commits] 01/02: Ensure 32 bytes of stack are reserved on 64-bit Windows targets |
Date: |
Mon, 17 Feb 2020 16:04:17 -0500 (EST) |
wingo pushed a commit to branch master
in repository guile.
commit a96c0188f196acb46fdee3bd0c20575db6c945a9
Author: Andy Wingo <address@hidden>
AuthorDate: Mon Feb 17 22:01:14 2020 +0100
Ensure 32 bytes of stack are reserved on 64-bit Windows targets
* lightening/x86.c (reset_abi_arg_iterator): Reserve 32 stack bytes on
64-bit Windows systems, in accordance with ABI. Thanks a million to
Charles Stanhope for the patch and to Mike Gran for testing!
---
lightening/x86.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/lightening/x86.c b/lightening/x86.c
index 965191a..bdd26e1 100644
--- a/lightening/x86.c
+++ b/lightening/x86.c
@@ -328,6 +328,10 @@ reset_abi_arg_iterator(struct abi_arg_iterator *iter,
size_t argc,
memset(iter, 0, sizeof *iter);
iter->argc = argc;
iter->args = args;
+#if __CYGWIN__ && __X64
+ // Reserve slots on the stack for 4 register parameters (8 bytes each).
+ iter->stack_size = 32;
+#endif
}
static void