https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105535

--- Comment #3 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:1bac97ad0436afcbce24c82e6d57f11471cd8f10

commit r13-258-g1bac97ad0436afcbce24c82e6d57f11471cd8f10
Author: Martin Liska <mli...@suse.cz>
Date:   Tue May 10 10:52:19 2022 +0200

    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-helf...@t-online.de>

Reply via email to