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

--- Comment #17 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Jorgen Kvalsvik <j...@gcc.gnu.org>:

https://gcc.gnu.org/g:dd87540491de7242416751666089fcdbce434e7b

commit r16-493-gdd87540491de7242416751666089fcdbce434e7b
Author: Jørgen Kvalsvik <j...@lambda.is>
Date:   Tue May 6 11:38:34 2025 +0200

    Printf properly on systems without %zu [PR120086]

    Some systems don't support the %zu format modifier for size_t, such as
    hppa64-hp-hpux. We don't really need the full width of size_t for
    printing the number of prime paths as path counts of those sizes
    would've already blown up the machine. For printing the vector size we
    can use the formatting directives from hwint.h.

            PR gcov-profile/120086

    gcc/ChangeLog:

            * gcov.cc (print_prime_path_lines): Use unsigned, format with
            %u.
            (print_prime_path_source): Likewise.
            (output_path_coverage): Format with HOST_SIZE_T_PRINT_UNSIGNED,
            use unsigned for pathno.

Reply via email to