https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89961
Bug ID: 89961 Summary: When "--intermediate-format" is used "--preserve-paths"/"--hash-filenames" is ignored Product: gcc Version: 8.3.1 Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: christian.morales.vega at gmail dot com CC: marxin at gcc dot gnu.org Target Milestone: --- Fedora 29, gcc-8.3.1-2.fc29.x86_64 (no related patch AFAICT -> https://src.fedoraproject.org/rpms/gcc/tree/a050417cd5cb9b3269bcce2e324fab8d081e4355) In issue #89959 I described an issue I had because cmake runs gcov once per .gcda file. Unfortunately I noticed that it would not be possible to run gcov only once, with all the .gcda files, since the "--object-directory" is not the same for all the .gcda files. Fortunately gcov has the "--intermediate-format" option. Since "The output is a single .gcov file per .gcda file" I don't have the gcov files overwriting problems I had before, which required the use of "-l". But the reason why "--preserve-paths"/"--hash-filenames" exist doesn't go away because of the use of "--intermediate-format". Even when using "--intermediate-format", "--preserve-paths"/"--hash-filenames" are "useful if sourcefiles are in several different directories". Unfortunately there seems to be a bug in gcov: when "--intermediate-format" is used, "--preserve-paths"/"--hash-filenames" is ignored.