https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95494
--- 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:862b9b225fba6cf3c63234206f2dbc47f1ab5350 commit r11-1114-g862b9b225fba6cf3c63234206f2dbc47f1ab5350 Author: Martin Liska <mli...@suse.cz> Date: Mon Jun 8 20:07:08 2020 +0200 libgcov: fix TOPN type casting The patch fixes tree-prof.exp tests on solaris11 and i686-linux-gnu, problem was that sizeof of a pointer is different from sizeof gcov_type. I'm going to install it if there are no objections. Thanks, Martin libgcc/ChangeLog: PR gcov-profile/95494 * libgcov-driver.c (write_top_counters): Cast first to intptr_t as sizeof(*) != sizeof(gcov_type). * libgcov.h (gcov_counter_set_if_null): Remove. (gcov_topn_add_value): Cast first to intptr_t and update linked list directly.