aboutsummaryrefslogtreecommitdiff
path: root/libgcc/libgcov.h
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-05-10 10:52:19 +0200
committerMartin Liska <mliska@suse.cz>2022-05-10 12:47:10 +0200
commit1bac97ad0436afcbce24c82e6d57f11471cd8f10 (patch)
treecc83338b609ea084adb879630d811ae3ef139f23 /libgcc/libgcov.h
parent4b86508194463b601000bfa779bce0834247c66c (diff)
downloadgcc-1bac97ad0436afcbce24c82e6d57f11471cd8f10.zip
gcc-1bac97ad0436afcbce24c82e6d57f11471cd8f10.tar.gz
gcc-1bac97ad0436afcbce24c82e6d57f11471cd8f10.tar.bz2
libgcov: use proper type for n_functions
gcov_info::n_functions type is initialized by generated code in build_info_type: /* n_functions */ field = build_decl (BUILTINS_LOCATION, FIELD_DECL, NULL_TREE, get_gcov_unsigned_t ()); It uses gcov_unsigned_t, but the struct definition in libgcov.h uses unsigned type. That brings troubled on 16-bit targets. PR gcov-profile/105535 libgcc/ChangeLog: * libgcov.h (struct gcov_info): Use gcov_unsigned_t for n_functions. Co-Authored-By: Hans-Peter Helfert <peter-helfert@t-online.de>
Diffstat (limited to 'libgcc/libgcov.h')
-rw-r--r--libgcc/libgcov.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/libgcc/libgcov.h b/libgcc/libgcov.h
index 487bd14..c7545cc 100644
--- a/libgcc/libgcov.h
+++ b/libgcc/libgcov.h
@@ -235,7 +235,7 @@ struct gcov_info
gcov_merge_fn merge[GCOV_COUNTERS]; /* merge functions (null for
unused) */
- unsigned n_functions; /* number of functions */
+ gcov_unsigned_t n_functions; /* number of functions */
#ifndef IN_GCOV_TOOL
const struct gcov_fn_info *const *functions; /* pointer to pointers