gcov-profile: use static pool for TOPN first
authorMartin Liska <mliska@suse.cz>
Mon, 19 Oct 2020 15:40:00 +0000 (17:40 +0200)
committerMartin Liska <mliska@suse.cz>
Tue, 27 Oct 2020 10:49:54 +0000 (11:49 +0100)
commit14e19b82c1e67ead60c3095ac23347317298904b
treefde313742d6dd32a455e4246f7d5535178d5e30c
parent21508c47f9a51f5b7dce35baee08fe95053ea85b
gcov-profile: use static pool for TOPN first

gcc/ChangeLog:

PR gcov-profile/97461
* gcov-io.h (GCOV_PREALLOCATED_KVP): Pre-allocate 64
static counters.

libgcc/ChangeLog:

PR gcov-profile/97461
* libgcov.h (gcov_counter_add): Use first static counters
as it should help to have malloc wrappers set up.

gcc/testsuite/ChangeLog:

PR gcov-profile/97461
* gcc.dg/tree-prof/pr97461.c: New test.
gcc/gcov-io.h
gcc/testsuite/gcc.dg/tree-prof/pr97461.c [new file with mode: 0644]
libgcc/libgcov.h