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>
This commit is contained in:
Martin Liska 2020-07-03 13:45:45 +02:00
parent 59cc32acc8
commit 6c9e35a569
No known key found for this signature in database
GPG Key ID: 4DC182DC0FA73785

View File

@ -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;