From: Martin Liska Date: Tue, 12 Jan 2021 17:16:05 +0000 (+0100) Subject: gcov: fix printf format for 32-bit hosts X-Git-Tag: basepoints/gcc-12~1639 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=248feb2fa2c0dfc8950566010b30351879c9d057;p=thirdparty%2Fgcc.git gcov: fix printf format for 32-bit hosts gcc/ChangeLog: * gcov.c (source_info::debug): Fix printf format for 32-bit hosts. --- diff --git a/gcc/gcov.c b/gcc/gcov.c index 93128721ef6c..5c651a9bdce4 100644 --- a/gcc/gcov.c +++ b/gcc/gcov.c @@ -442,7 +442,7 @@ void source_info::debug () for (vector::iterator bit = fn->blocks.begin (); bit != fn->blocks.end (); bit++) { - fprintf (stderr, " block_info id=%d, count=%ld\n", + fprintf (stderr, " block_info id=%d, count=%" PRId64 " \n", bit->id, bit->count); } } @@ -450,7 +450,7 @@ void source_info::debug () for (unsigned lineno = 1; lineno < lines.size (); ++lineno) { line_info &line = lines[lineno]; - fprintf (stderr, " line_info=%d, count=%ld\n", lineno, line.count); + fprintf (stderr, " line_info=%d, count=%" PRId64 "\n", lineno, line.count); } fprintf (stderr, "\n");