]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-101525: [BOLT] Add GCC's LTO-generated function clones, with computed gotos, to...
authorstratakis <cstratak@redhat.com>
Sun, 19 Oct 2025 14:23:49 +0000 (16:23 +0200)
committerGitHub <noreply@github.com>
Sun, 19 Oct 2025 14:23:49 +0000 (23:23 +0900)
configure
configure.ac

index 3ea9c1044316c2b2dbd29163b1ac99dc6fc289a8..95e231f406a9a3efe1f11f1828b3df8e3367f461 100755 (executable)
--- a/configure
+++ b/configure
@@ -9396,7 +9396,7 @@ fi
 printf %s "checking BOLT_COMMON_FLAGS... " >&6; }
 if test -z "${BOLT_COMMON_FLAGS}"
 then
-  BOLT_COMMON_FLAGS=" -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1 "
+  BOLT_COMMON_FLAGS=" -update-debug-sections -skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1,sre_ucs1_match.lto_priv.0/1,sre_ucs2_match.lto_priv.0/1,sre_ucs4_match.lto_priv.0/1 "
 
 fi
 
index 8c920da1997155d148b61755eb023035f5ec015c..65c375796337543b398e43249af6bb978951c68e 100644 (file)
@@ -2162,7 +2162,8 @@ then
       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]
+      dnl GCC's LTO creates .lto_priv.0 clones of these functions.
+      [-skip-funcs=_PyEval_EvalFrameDefault,sre_ucs1_match/1,sre_ucs2_match/1,sre_ucs4_match/1,sre_ucs1_match.lto_priv.0/1,sre_ucs2_match.lto_priv.0/1,sre_ucs4_match.lto_priv.0/1]
     ")]
   )
 fi