]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.14] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (GH-145802) (#145892)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 12 Mar 2026 23:13:13 +0000 (00:13 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Mar 2026 23:13:13 +0000 (23:13 +0000)
commit8c0a190dd34c220af007896d66850f5676d524d4
tree6a1a9f93cdc3d04f76697593aa333e013e9ffbb7
parentcedff2d617c79e2122162049bb75e1d690d9f5eb
[3.14] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (GH-145802) (#145892)

gh-145801: Use gcc -fprofile-update=atomic for PGO builds (GH-145802)

When Python build is optimized with GCC using PGO, use
-fprofile-update=atomic option to use atomic operations when updating
profile information. This option reduces the risk of gcov Data Files
(.gcda) corruption which can cause random GCC crashes.
(cherry picked from commit 08a018ebe0d673e9c352f790d2e4604d69604188)

Co-authored-by: Victor Stinner <vstinner@python.org>
Misc/NEWS.d/next/Build/2026-03-11-11-58-42.gh-issue-145801.iCXa3v.rst [new file with mode: 0644]
configure
configure.ac