Skip to content

Commit 029d92b

Browse files
committed
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]
1 parent 8f7d081 commit 029d92b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

configure.ac

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1259,7 +1259,8 @@ main()
12591259
# __builtin_longjmp in ppc64* Linux does not restore
12601260
# the TOC register (r2), which is problematic
12611261
# when a global exit happens from JITted .so code.
1262-
AS_CASE(["$target_cpu"], [powerpc64*], [
1262+
# __builtin_setjmp can have issues on arm64 linux (see [Bug #14480]).
1263+
AS_CASE(["$target_cpu"], [powerpc64*|arm64|aarch64], [
12631264
ac_cv_func___builtin_setjmp=no
12641265
])
12651266
# With gcc-8's -fcf-protection, RJIT's __builtin_longjmp fails.

0 commit comments

Comments
 (0)