https://gcc.gnu.org/bugzilla/show_bug.cgi?id=93401
--- Comment #6 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Jan Hubicka from comment #4) > Actually passing phony / is not needed. We could do right thing with > > gcc foo.c -o <buildir>/ibb1/foo.o -fprofile-prefix-map=<buildir>= > -fprofile-generate > > or > > gcc foo.c -o <buildir>/ibb1/foo.o -fprofile-strip-prefix=<buildir> > -fprofile-generate If we really want to support the absolute paths, then I'm for -fprofile-strip-prefix. > > if we do not like the map infrastructure