Re: [PATCH] gcov: fix gcov-tool merge for TOPN counters

2020-07-03 Thread Martin Liška
On 7/2/20 9:03 PM, Gerald Pfeifer wrote: On Tue, 16 Jun 2020, Martin Liška wrote: 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.

Re: [PATCH] gcov: fix gcov-tool merge for TOPN counters

2020-07-02 Thread Gerald Pfeifer
On Tue, 16 Jun 2020, Martin Liška wrote: > 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

[PATCH] gcov: fix gcov-tool merge for TOPN counters

2020-06-16 Thread Martin Liška
Hello. The patch is about corrupted gcov-tool merge command for a TOPN counter. What was missing is transition of a on-disk representation to a memory representation expected by __gcov_merge_topn function. Patch can bootstrap on x86_64-linux-gnu and survives regression tests. I'm going to