[Python-checkins] gh-101282: Update BOLT --split-functions flag not to use deprecated u… (gh-101557)

corona10 webhook-mailer at python.org
Sat Feb 4 02:55:36 EST 2023


https://github.com/python/cpython/commit/144aaa74bbd77aee822ee92344744dbb05aa2f30
commit: 144aaa74bbd77aee822ee92344744dbb05aa2f30
branch: main
author: Dong-hee Na <donghee.na at python.org>
committer: corona10 <donghee.na92 at gmail.com>
date: 2023-02-04T16:55:31+09:00
summary:

gh-101282: Update BOLT --split-functions flag not to use deprecated u… (gh-101557)

gh-101282: Update BOLT --split-functions flag not to use deprecated usage

files:
A Misc/NEWS.d/next/Build/2023-02-04-06-59-07.gh-issue-101282.7sQz5l.rst
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index 618bb7b5f730..f2f9371e8ac0 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -647,7 +647,7 @@ bolt-opt: @PREBOLT_RULE@
 	@LLVM_BOLT@ ./$(BUILDPYTHON) -instrument -instrumentation-file-append-pid -instrumentation-file=$(abspath $(BUILDPYTHON).bolt) -o $(BUILDPYTHON).bolt_inst
 	./$(BUILDPYTHON).bolt_inst $(PROFILE_TASK) || true
 	@MERGE_FDATA@ $(BUILDPYTHON).*.fdata > $(BUILDPYTHON).fdata
-	@LLVM_BOLT@ ./$(BUILDPYTHON) -o $(BUILDPYTHON).bolt -data=$(BUILDPYTHON).fdata -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions=3 -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=all -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot
+	@LLVM_BOLT@ ./$(BUILDPYTHON) -o $(BUILDPYTHON).bolt -data=$(BUILDPYTHON).fdata -update-debug-sections -reorder-blocks=ext-tsp -reorder-functions=hfsort+ -split-functions -icf=1 -inline-all -split-eh -reorder-functions-use-hot-size -peepholes=all -jump-tables=aggressive -inline-ap -indirect-call-promotion=all -dyno-stats -use-gnu-stack -frame-opt=hot
 	rm -f *.fdata
 	rm -f $(BUILDPYTHON).bolt_inst
 	mv $(BUILDPYTHON).bolt $(BUILDPYTHON)
diff --git a/Misc/NEWS.d/next/Build/2023-02-04-06-59-07.gh-issue-101282.7sQz5l.rst b/Misc/NEWS.d/next/Build/2023-02-04-06-59-07.gh-issue-101282.7sQz5l.rst
new file mode 100644
index 000000000000..49d485646673
--- /dev/null
+++ b/Misc/NEWS.d/next/Build/2023-02-04-06-59-07.gh-issue-101282.7sQz5l.rst
@@ -0,0 +1,2 @@
+Update BOLT configration not to use depreacted usage of ``--split
+functions``. Patch by Dong-hee Na.



More information about the Python-checkins mailing list