Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
When Python build is optimized by PGO, use GCC ``-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. Patch by Victor Stinner.
2 changes: 1 addition & 1 deletion configure

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -2084,7 +2084,7 @@ case "$ac_cv_cc_name" in
fi
;;
gcc)
PGO_PROF_GEN_FLAG="-fprofile-generate"
PGO_PROF_GEN_FLAG="-fprofile-generate -fprofile-update=atomic"
PGO_PROF_USE_FLAG="-fprofile-use -fprofile-correction"
LLVM_PROF_MERGER="true"
LLVM_PROF_FILE=""
Expand Down
Loading