https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91971
Eric Botcazou <ebotcazou at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED CC| |ebotcazou at gcc dot gnu.org Resolution|FIXED |--- --- Comment #7 from Eric Botcazou <ebotcazou at gcc dot gnu.org> --- Reopened because the new behavior is problematic. Consider the file t.c: int main (void) { return 0; } in the directory /home/eric and compile it like so: gcc -c /home/eric/t.c -o /home/eric/t.o -fprofile-arcs -ftest-coverage gcc /home/eric/t.o -o /home/eric/t -lgcov /home/eric/t You get the following couple of files in the directory: #home#eric#t.gcda #home#eric#t.gcno whereas you would have gotten t.gcda and t.gcno before. Please consider making the change conditional on -fprofile-dir= or somesuch.