]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
gcov-dump: fix build for i386
authorMartin Liska <mliska@suse.cz>
Fri, 3 Jul 2020 11:45:45 +0000 (13:45 +0200)
committerMartin Liska <mliska@suse.cz>
Fri, 3 Jul 2020 11:45:45 +0000 (13:45 +0200)
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>
gcc/gcov-dump.c

index 97ff27861c6291a02aab38e3b43333114a0ed100..7e412c8d329859b4a6aa55c4846c6879bcd288aa 100644 (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;