Skip to content

Commit 5448cd9

Browse files
zaniebindygreg
andcommitted
Add -skip-funcs to BOLT options to fix computer goto errors
Co-authored-by: Gregory Szorc <[email protected]>
1 parent 88eef21 commit 5448cd9

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2170,7 +2170,14 @@ if test -z "${BOLT_COMMON_FLAGS}"
21702170
then
21712171
AS_VAR_SET(
21722172
[BOLT_COMMON_FLAGS],
2173-
[-update-debug-sections]
2173+
[m4_normalize("
2174+
[-update-debug-sections]
2175+
2176+
dnl At least LLVM 19.x doesn't support computed gotos in PIC compiled code.
2177+
dnl Exclude functions containing computed gotos.
2178+
dnl TODO this may be fixed in LLVM 20.x via https://github.com/llvm/llvm-project/pull/120267.
2179+
[-skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1]
2180+
")]
21742181
)
21752182
fi
21762183

0 commit comments

Comments
 (0)