https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118442

--- Comment #7 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jakub Jelinek <[email protected]>:

https://gcc.gnu.org/g:fb71d7c8e7ce4b061e40cd29cd77a4cfd7a256af

commit r15-8927-gfb71d7c8e7ce4b061e40cd29cd77a4cfd7a256af
Author: Jakub Jelinek <[email protected]>
Date:   Wed Mar 26 13:59:16 2025 +0100

    profile: Don't instrument fake exit edges after musttail [PR118442]

    When -fprofile-generate is used musttail often fails because the
    compiler adds instrumentation after the tail calls.

    This patch ignores EDGE_FAKE edges added from musttail calls to EXIT.

    2025-03-26  Jakub Jelinek  <[email protected]>
                Andi Kleen  <[email protected]>

            PR gcov-profile/118442
            * profile.cc (branch_prob): Ignore EDGE_FAKE edges from musttail
calls
            to EXIT.

            * c-c++-common/pr118442.c: New test.

Reply via email to