On 1/12/21 5:27 PM, H.J. Lu wrote:
This breaks build on 32-bit hosts:

Sorry for that.

Should be fixed with:

commit 248feb2fa2c0dfc8950566010b30351879c9d057
Author: Martin Liska <mli...@suse.cz>
Date:   Tue Jan 12 18:16:05 2021 +0100

    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 93128721ef6..5c651a9bdce 100644
--- a/gcc/gcov.c
+++ b/gcc/gcov.c
@@ -442,7 +442,7 @@ void source_info::debug ()
       for (vector<block_info>::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");

I'm going to install the patch.
Martin

Reply via email to