diff options
author | Martin Liska <mliska@suse.cz> | 2021-01-12 18:16:05 +0100 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2021-01-12 18:16:05 +0100 |
commit | 248feb2fa2c0dfc8950566010b30351879c9d057 (patch) | |
tree | d081f4833df3afc4f1de4b2b5a4eaf5b39a44b99 /gcc/gcov.c | |
parent | 1aff68d54c33ae10fbbb52adb50527baf7b2f627 (diff) | |
download | gcc-248feb2fa2c0dfc8950566010b30351879c9d057.zip gcc-248feb2fa2c0dfc8950566010b30351879c9d057.tar.gz gcc-248feb2fa2c0dfc8950566010b30351879c9d057.tar.bz2 |
gcov: fix printf format for 32-bit hosts
gcc/ChangeLog:
* gcov.c (source_info::debug): Fix printf format for 32-bit hosts.
Diffstat (limited to 'gcc/gcov.c')
-rw-r--r-- | gcc/gcov.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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"); |