From 029d92b8988d26955d0622f0cbb8ef3213200749 Mon Sep 17 00:00:00 2001 From: Jeremy Evans Date: Wed, 23 Aug 2023 14:43:06 -0700 Subject: [PATCH] Disable __builtin_setjmp usage on linux-aarch64 It is questionable whether __builtin_setjmp should default to yes at all, but since it appears to still have problems on this platform, it seems safest to disable it. Fixes [Bug #14480] --- configure.ac | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 2626c45920..f35fad6a36 100644 --- a/configure.ac +++ b/configure.ac @@ -1259,7 +1259,8 @@ main() # __builtin_longjmp in ppc64* Linux does not restore # the TOC register (r2), which is problematic # when a global exit happens from JITted .so code. - AS_CASE(["$target_cpu"], [powerpc64*], [ + # __builtin_setjmp can have issues on arm64 linux (see [Bug #14480]). + AS_CASE(["$target_cpu"], [powerpc64*|arm64|aarch64], [ ac_cv_func___builtin_setjmp=no ]) # With gcc-8's -fcf-protection, RJIT's __builtin_longjmp fails.