mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
[3.13] gh-128472: Add -skip-funcs
to BOLT options to fix computed goto errors (gh-128511) (#128573)
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 24b147a19b
)
Co-authored-by: Zanie Blue <contact@zanie.dev>
Co-authored-by: Gregory Szorc <gregory.szorc@gmail.com>
This commit is contained in:
parent
8f3e5554ba
commit
692a955cea
3 changed files with 11 additions and 2 deletions
|
@ -2224,7 +2224,14 @@ if test -z "${BOLT_COMMON_FLAGS}"
|
|||
then
|
||||
AS_VAR_SET(
|
||||
[BOLT_COMMON_FLAGS],
|
||||
[-update-debug-sections]
|
||||
[m4_normalize("
|
||||
[-update-debug-sections]
|
||||
|
||||
dnl At least LLVM 19.x doesn't support computed gotos in PIC compiled code.
|
||||
dnl Exclude functions containing computed gotos.
|
||||
dnl TODO this may be fixed in LLVM 20.x via https://github.com/llvm/llvm-project/pull/120267.
|
||||
[-skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1]
|
||||
")]
|
||||
)
|
||||
fi
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue