https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97461
--- Comment #16 from Martin Liška <marxin at gcc dot gnu.org> --- (In reply to Sergei Trofimovich from comment #15) > allocate_gcov_kvp() gets called 89 times. Tried as: All right, it's quite close to what we have. So can you please test the following patch: diff --git a/gcc/gcov-io.h b/gcc/gcov-io.h index 4e95c7c82ee..a899a02b765 100644 --- a/gcc/gcov-io.h +++ b/gcc/gcov-io.h @@ -293,7 +293,7 @@ GCOV_COUNTERS #define GCOV_TOPN_MAXIMUM_TRACKED_VALUES 32 /* Number of pre-allocated gcov_kvp structures. */ -#define GCOV_PREALLOCATED_KVP 64 +#define GCOV_PREALLOCATED_KVP 128 /* Convert a counter index to a tag. */ #define GCOV_TAG_FOR_COUNTER(COUNT) \