diff options
author | Martin Liska <mliska@suse.cz> | 2020-07-03 13:45:45 +0200 |
---|---|---|
committer | Martin Liska <mliska@suse.cz> | 2020-07-03 13:45:45 +0200 |
commit | 6c9e35a569f5a46fed7c8de6ac22545cb845a913 (patch) | |
tree | e7a5483d53e4cc57d2574c8d85a72d27c6baf9f0 /gcc/gcov-dump.c | |
parent | 59cc32acc8dde3b8719b9b4f90d33e8c3e3f17bb (diff) | |
download | gcc-6c9e35a569f5a46fed7c8de6ac22545cb845a913.zip gcc-6c9e35a569f5a46fed7c8de6ac22545cb845a913.tar.gz gcc-6c9e35a569f5a46fed7c8de6ac22545cb845a913.tar.bz2 |
gcov-dump: fix build for i386
gcc/ChangeLog:
PR bootstrap/96046
* gcov-dump.c (tag_function): Use gcov_position_t
type.
Co-Authored-By: Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Diffstat (limited to 'gcc/gcov-dump.c')
-rw-r--r-- | gcc/gcov-dump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/gcov-dump.c b/gcc/gcov-dump.c index 97ff278..7e412c8 100644 --- a/gcc/gcov-dump.c +++ b/gcc/gcov-dump.c @@ -299,7 +299,7 @@ tag_function (const char *filename ATTRIBUTE_UNUSED, unsigned tag ATTRIBUTE_UNUSED, int length, unsigned depth ATTRIBUTE_UNUSED) { - long pos = gcov_position (); + gcov_position_t pos = gcov_position (); if (!length) printf (" placeholder"); @@ -309,7 +309,7 @@ tag_function (const char *filename ATTRIBUTE_UNUSED, printf (", lineno_checksum=0x%08x", gcov_read_unsigned ()); printf (", cfg_checksum=0x%08x", gcov_read_unsigned ()); - if (gcov_position () - pos < length) + if (gcov_position () - pos < (gcov_position_t) length) { const char *name; |