diff options
author | Martin Liska <mliska@suse.cz> | 2020-06-08 20:07:08 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-06-09 13:07:41 +0200 |
commit | 862b9b225fba6cf3c63234206f2dbc47f1ab5350 (patch) | |
tree | 132a4505a1eab6d808754c7156b80ffdd4ee10d2 /gcc | |
parent | 009668e31f4ee910eae874b24afb8eb6adf65fae (diff) | |
download | gcc-862b9b225fba6cf3c63234206f2dbc47f1ab5350.zip gcc-862b9b225fba6cf3c63234206f2dbc47f1ab5350.tar.gz gcc-862b9b225fba6cf3c63234206f2dbc47f1ab5350.tar.bz2 |
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.
Diffstat (limited to 'gcc')
0 files changed, 0 insertions, 0 deletions