mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-30 20:00:19 +02:00
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!
This commit is contained in:
parent
2db2b12e85
commit
a96c0188f1
1 changed files with 4 additions and 0 deletions
|
@ -328,6 +328,10 @@ reset_abi_arg_iterator(struct abi_arg_iterator *iter, size_t argc,
|
||||||
memset(iter, 0, sizeof *iter);
|
memset(iter, 0, sizeof *iter);
|
||||||
iter->argc = argc;
|
iter->argc = argc;
|
||||||
iter->args = args;
|
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
|
static void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue