mirror of
https://github.com/mirror/tinycc.git
synced 2024-12-28 04:00:06 +08:00
win64: adjust for two args with setjmp(buf,ctx)
This commit is contained in:
parent
614790dc14
commit
d79b867d55
@ -57,6 +57,8 @@ typedef unsigned __int64 uintptr_t;
|
||||
#define __stdcall
|
||||
#define _AMD64_ 1
|
||||
#define __x86_64 1
|
||||
#define USE_MINGW_SETJMP_TWO_ARGS
|
||||
#define mingw_getsp tinyc_getsp
|
||||
#else
|
||||
typedef __int32 intptr_t;
|
||||
typedef unsigned __int32 uintptr_t;
|
||||
|
@ -56,6 +56,14 @@ P0:
|
||||
mov (%rax),%rcx /* restore ecx */
|
||||
jmp *8(%rax)
|
||||
|
||||
/* ---------------------------------------------- */
|
||||
/* avoid msvcrt unwind stuff for setjmp/longjmp */
|
||||
|
||||
.globl tinyc_getsp
|
||||
tinyc_getsp:
|
||||
xor %rax,%rax
|
||||
ret
|
||||
|
||||
/* ---------------------------------------------- */
|
||||
#endif
|
||||
/* ---------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user