<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/70038>70038</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
GCOV_PREFIX_STRIP behaves differently compared to GCC
</td>
</tr>
<tr>
<th>Labels</th>
<td>
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
kolrami
</td>
</tr>
</table>
<pre>
While setting up coverage collection for our codebase I encountered a minor difference in how GCC and CLANG handles the GCOV_PREFIX_STRIP enviornment variable. On GCC the leading slash is removed before stripping away the components (see https://github.com/gcc-mirror/gcc/blob/master/libgcc/libgcov-driver-system.c#L277) while we do not have such a logic.
This issue should raise the awarenss of this difference. I don't know if we want to change the existing behavior (might be a breaking change for somebody) or just document some more details to make it more clear for the users?
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJx8U01v4zYQ_TXUZWBDpiw7OuiQZusgwKK72C7a3hYjciRyQ3EMDiU3_76gnCKHAr1IJOfr8b1HFPFTJOpV-4tqP1W4ZMepf-WQcPbVwPat_9P5QCCUs48TLFcwvFLCicBwCGSy5wgjJ-AlgWFLAwrBC1A0vMRMiSwgzD5yAuvHkRJFQ-AjOL7B89MTYLTw9Pnxt2dwGG0ggewInp--_PHj67dfLy9__fj9-7eXr0Bx9ZziTDHDisnjEGgPX-LWpJQEQltASkBx4AUSzbyShYFGTgSSk79eSwbe8G0rMTxfOVLMAko_CBG4nK-imkelL0pfJp_dMuwNz2VjzG72KXG6b5S-DIEHpS8zSqZyGvxwD2wLXnc2-ZXSTt4k07w3Sjef9fmsdAe3jdgbgWWInMHhSiCLcYAQePJmr-pPqn68f787L-BFFgJxvAQLCb3Qdgm8YaIoAjxCLnkfPO_hBSxHpc8ZXiPfwI9l5A1jhsxgHMbp3oT-9rJJPJDDQnQhZPaTyzAQIAyJ8LXE32uK5MIzFZOU63CCn4tksGyWTaIShLnwbimjD1IGzvhK4PP93ATCtDUqABahJKq5VLZvbNd0WFF_OHUPh_bQtW3lejTnkcy5Gzttx9Y8HO0RD6ajk2076syx8r2udXOo9fGgW920-9Y09eGI5xO2p7M-WXWsaUYf9iGs857TVG2M9ue6bh6qgAMF-fctpL4k7YZlEnWsg5csH2XZ50D9fy26cUcfAuTwtlkMyyvIXJxaLSn0_2OyMuP9t7sm_kkmK33ZcIrSlw3qPwEAAP__AKdEbw">