gcov: fix gcov-tool merge for TOPN counters
authorMartin Liska <mliska@suse.cz>
Tue, 16 Jun 2020 12:14:03 +0000 (14:14 +0200)
committerMartin Liska <mliska@suse.cz>
Wed, 17 Jun 2020 06:32:27 +0000 (08:32 +0200)
commit5fc312a98e9b06eac9e865f511a327b264056d66
treeab5bbdb46de04324f60dff330ad039e65e2665a9
parent56638b9b1853666f575928f8baf17f70e4ed3517
gcov: fix gcov-tool merge for TOPN counters

libgcc/ChangeLog:

* libgcov-util.c (read_gcda_finalize): Remove const operator.
(merge_wrapper): Add both counts and use them properly.
(topn_to_memory_representation): New function.
(gcov_merge): Covert on disk representation to in memory
representation.
* libgcov.h: Remove const operator.
libgcc/libgcov-util.c
libgcc/libgcov.h