https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100520
--- Comment #8 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:7553bd35c876efaf8ab0b6661a6102822b99e6e3 commit r12-4996-g7553bd35c876efaf8ab0b6661a6102822b99e6e3 Author: Martin Liska <mli...@suse.cz> Date: Fri Nov 5 16:50:06 2021 +0100 gcov-profile: Fix -fcompare-debug with -fprofile-generate [PR100520] PR gcov-profile/100520 gcc/ChangeLog: * coverage.c (coverage_compute_profile_id): Strip .gk when compare debug is used. * system.h (endswith): New function. gcc/testsuite/ChangeLog: * gcc.dg/pr100520.c: New test.