gcov-profile: Fix -fcompare-debug with -fprofile-generate [PR100520]
authorMartin Liska <mliska@suse.cz>
Fri, 5 Nov 2021 15:50:06 +0000 (16:50 +0100)
committerMartin Liska <mliska@suse.cz>
Mon, 8 Nov 2021 11:52:16 +0000 (12:52 +0100)
commit7553bd35c876efaf8ab0b6661a6102822b99e6e3
tree24540afaa70a5102bee04aadc4a03f4865cdcd81
parent409767d774c59ee4c3eefca5015ba00539fddc08
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.
gcc/coverage.c
gcc/system.h
gcc/testsuite/gcc.dg/pr100520.c [new file with mode: 0644]