Skip to content

[3.14] gh-148535: Don't use gcc -fprofile-update=atomic flag on i686 (GH-148554)#148655

Merged
vstinner merged 1 commit intopython:3.14from
miss-islington:backport-2faceee-3.14
Apr 16, 2026
Merged

[3.14] gh-148535: Don't use gcc -fprofile-update=atomic flag on i686 (GH-148554)#148655
vstinner merged 1 commit intopython:3.14from
miss-islington:backport-2faceee-3.14

Conversation

@miss-islington
Copy link
Copy Markdown
Contributor

@miss-islington miss-islington commented Apr 16, 2026

The -fprofile-update=atomic flag was added to fix a random GCC
internal error on PGO build (gh-145801) caused by corruption of
profile data (.gcda files). The problem is that it makes the PGO
build way slower (up to 47x slower) on i686. Since the GCC internal
error was not seen on i686 so far, don't use -fprofile-update=atomic
on i686.
(cherry picked from commit 2faceee)

Co-authored-by: Victor Stinner vstinner@python.org

…ythonGH-148554)

The -fprofile-update=atomic flag was added to fix a random GCC
internal error on PGO build (pythongh-145801) caused by corruption of
profile data (.gcda files). The problem is that it makes the PGO
build way slower (up to 47x slower) on i686. Since the GCC internal
error was not seen on i686 so far, don't use -fprofile-update=atomic
on i686.
(cherry picked from commit 2faceeec5c0fb06498a9654d429180ac4610c65a)

Co-authored-by: Victor Stinner <vstinner@python.org>
@vstinner vstinner enabled auto-merge (squash) April 16, 2026 17:14
@vstinner vstinner merged commit 2fdccb3 into python:3.14 Apr 16, 2026
47 of 49 checks passed
@miss-islington miss-islington deleted the backport-2faceee-3.14 branch April 16, 2026 17:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants