aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtlanal.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2021-02-16 16:28:06 +0100
committerMartin Liska <mliska@suse.cz>2021-03-04 16:21:52 +0100
commit6a8fc0c31a9ae759fe9bf59b5418abf2af938f91 (patch)
treed0f65e009207e8142f7e5882e2c9e059c3e1b6b8 /gcc/rtlanal.c
parentc9816196328a4f4b927f08cf2f66cf255849da0b (diff)
downloadgcc-6a8fc0c31a9ae759fe9bf59b5418abf2af938f91.zip
gcc-6a8fc0c31a9ae759fe9bf59b5418abf2af938f91.tar.gz
gcc-6a8fc0c31a9ae759fe9bf59b5418abf2af938f91.tar.bz2
profiling: fix streaming of TOPN counters
libgcc/ChangeLog: PR gcov-profile/99105 * libgcov-driver.c (write_top_counters): Rename to ... (write_topn_counters): ... this. (write_one_data): Pre-allocate buffer for number of items in the corresponding linked lists. * libgcov.h (malloc_mmap): New function. (allocate_gcov_kvp): Use it. gcc/testsuite/ChangeLog: PR gcov-profile/99105 * gcc.dg/tree-prof/indir-call-prof-malloc.c: Use profile correction as the wrapped malloc is called one more time from libgcov. * gcc.dg/tree-prof/pr97461.c: Likewise.
Diffstat (limited to 'gcc/rtlanal.c')
0 files changed, 0 insertions, 0 deletions