Skip to content

Commit

Permalink
Merge pull request ocaml#13331 from MisterDA/fix-gcc-9-unreachable-re…
Browse files Browse the repository at this point in the history
…turn

Define `CAMLunreachable` in GCC < 10
  • Loading branch information
gasche authored Jul 24, 2024
2 parents 0ebe56b + 26e1886 commit 7c79323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/caml/misc.h
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ CAMLnoret CAMLextern void caml_failed_assert (char *, char_os *, int);
#define CAMLassert(x) ((void) 0)
#endif

#if __has_builtin(__builtin_trap)
#if __has_builtin(__builtin_trap) || defined(__GNUC__)
#define CAMLunreachable() (__builtin_trap())
#elif defined(_MSC_VER)
#include <intrin.h>
Expand Down

0 comments on commit 7c79323

Please sign in to comment.