Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Let Win64 ABI use an unwind-free setjmp #189

Merged
merged 1 commit into from Jan 5, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
12 changes: 12 additions & 0 deletions platforms/Cross/plugins/IA32ABI/ia32abi.h
Expand Up @@ -69,3 +69,15 @@ extern VMCallbackContext *getMostRecentCallbackContext(void);
# define setjmp _setjmp
# define longjmp _longjmp
#endif
/* Note: on windows 64 via mingw-w64, the 2nd argument NULL to _setjmp prevents stack unwinding
*/
#if defined(_WIN64)
# undef setjmp
# undef longjmp
# if defined(__GNUC__)
# define setjmp(jb) _setjmp(jb,NULL)
# elif defined(_MSC_VER)
# define setjmp(jb) _setjmp(jb)
# endif
#endif