Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 115d504

Browse files
miss-islingtonzaniebindygreg
authored
[3.12] gh-128472: Add -skip-funcs to BOLT options to fix computed goto errors (gh-128511) (gh-128572)
gh-128472: Add `-skip-funcs` to BOLT options to fix computed goto errors (gh-128511) * Add `-skip-funcs` to BOLT options to fix computed goto errors * NEWS --------- (cherry picked from commit 24b147a) Co-authored-by: Zanie Blue <[email protected]> Co-authored-by: Gregory Szorc <[email protected]>
1 parent fb8bb36 commit 115d504

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Skip BOLT optimization of functions using computed gotos, fixing errors on
2+
build with LLVM 19.

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
@@ -2114,7 +2114,14 @@ if test -z "${BOLT_COMMON_FLAGS}"
21142114
then
21152115
AS_VAR_SET(
21162116
[BOLT_COMMON_FLAGS],
2117-
[-update-debug-sections]
2117+
[m4_normalize("
2118+
[-update-debug-sections]
2119+
2120+
dnl At least LLVM 19.x doesn't support computed gotos in PIC compiled code.
2121+
dnl Exclude functions containing computed gotos.
2122+
dnl TODO this may be fixed in LLVM 20.x via https://github.com/llvm/llvm-project/pull/120267.
2123+
[-skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1]
2124+
")]
21182125
)
21192126
fi
21202127

0 commit comments

Comments
 (0)