https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92924
--- Comment #9 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Martin Liska <mar...@gcc.gnu.org>: https://gcc.gnu.org/g:7491c17fe01d8cf116f645532d46120029b26408 commit r10-6145-g7491c17fe01d8cf116f645532d46120029b26408 Author: Martin Liska <mli...@suse.cz> Date: Wed Jan 22 13:40:12 2020 +0100 Fix TOP N counter update. PR tree-optimization/92924 * libgcov-profiler.c (__gcov_topn_values_profiler_body): First try to find an existing value, then find an empty slot if not found.