Skip to content

Commit

Permalink
Revert "mruby/throw.h: do not use __builtin_setjmp for GCC; close #5950"
Browse files Browse the repository at this point in the history
This reverts commit 9cf49d0.

This change caused flaky tests on MinGW. I now remember it was introduced
for MINGW64 to address #5133. Sorry.
  • Loading branch information
matz committed Mar 14, 2023
1 parent 0d07af1 commit 4fc69ce
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions include/mruby/throw.h
Expand Up @@ -33,6 +33,9 @@ typedef mrb_int mrb_jmpbuf_impl;
#if defined(__APPLE__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)
#define MRB_SETJMP _setjmp
#define MRB_LONGJMP _longjmp
#elif defined(__MINGW64__) && defined(__GNUC__) && __GNUC__ >= 4
#define MRB_SETJMP __builtin_setjmp
#define MRB_LONGJMP __builtin_longjmp
#else
#define MRB_SETJMP setjmp
#define MRB_LONGJMP longjmp
Expand Down

0 comments on commit 4fc69ce

Please sign in to comment.