[Bug gcov-profile/47618] Collecting multiple profiles and using all for PGO

qinzhao at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Tue Apr 30 21:18:00 GMT 2019


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=47618

--- Comment #25 from qinzhao at gcc dot gnu.org ---
(In reply to Martin Liška from comment #24)
> 
> > How about the patch for the above 2? has it been committed?
> 
> It has been there for a while, please take a look at:
> 
> $ gcov-tool merge --help
> merge: unrecognized option '--help'
> Merge subcomand usage:  merge [options] <dir1> <dir2>         Merge coverage
> file contents
>     -o, --output <dir>                  Output directory
>     -v, --verbose                       Verbose mode
>     -w, --weight <w1,w2>                Set weights (float point values)

two more questions on this merge tool:
1. it can only merge two directories at one time. So, for multiple directories,
for example "n", we have to invoke gcov-tool merge n-1 times in order to merge
all of them?
2. Intel compiler (icc)'s profmerge is able to merge all the .dyn files under
one directory, does gcc have such functionality currently?


More information about the Gcc-bugs mailing list