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 <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:fb71d7c8e7ce4b061e40cd29cd77a4cfd7a256af commit r15-8927-gfb71d7c8e7ce4b061e40cd29cd77a4cfd7a256af Author: Jakub Jelinek <ja...@redhat.com> 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 <ja...@redhat.com> Andi Kleen <a...@gcc.gnu.org> PR gcov-profile/118442 * profile.cc (branch_prob): Ignore EDGE_FAKE edges from musttail calls to EXIT. * c-c++-common/pr118442.c: New test.