SIGN IN SIGN UP

[3.13] gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#145802) (#145893)

gh-145801: Use gcc -fprofile-update=atomic for PGO builds (#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)
V
Victor Stinner committed
b012f6817f80b646ec95b212b23e6a785200f862
Parent: 3ae8cc8
Committed by GitHub <noreply@github.com> on 3/12/2026, 11:17:00 PM