From 50b040ef83252730d75463bdeea589294e698532 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 19 Dec 2009 22:40:28 +0100 Subject: win64: add tiny unwind data for setjmp/longjmp This enables native unwind semantics with longjmp on win64 by putting an entry into the .pdata section for each compiled fuction. Also, the function now use a fixed stack and store arguments into X(%rsp) rather than using push. --- win32/include/_mingw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'win32/include') diff --git a/win32/include/_mingw.h b/win32/include/_mingw.h index bbac35e..baa454b 100644 --- a/win32/include/_mingw.h +++ b/win32/include/_mingw.h @@ -58,7 +58,7 @@ typedef unsigned __int64 uintptr_t; #define _AMD64_ 1 #define __x86_64 1 #define USE_MINGW_SETJMP_TWO_ARGS -#define mingw_getsp tinyc_getsp +#define mingw_getsp tinyc_getbp #else typedef __int32 intptr_t; typedef unsigned __int32 uintptr_t; -- cgit v1.3.1