* timevar.c (validate_phases): Add cast.
authorJan Hubicka <jh@suse.cz>
Thu, 22 Aug 2013 15:25:53 +0000 (15:25 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Thu, 22 Aug 2013 15:25:53 +0000 (15:25 +0000)
From-SVN: r201921

gcc/ChangeLog
gcc/timevar.c

index 75e4520..6cfd96e 100644 (file)
@@ -1,5 +1,9 @@
 2013-08-22  Jan Hubicka  <jh@susue.cz>
 
+       * timevar.c (validate_phases): Add cast.
+
+2013-08-22  Jan Hubicka  <jh@susue.cz>
+
        * timevar.c (validate_phases): Use size_t for memory.
        * timevar.h (struct timevar_time_def): Use size_t for ggc_mem.
 
index ab82e4b..23b7118 100644 (file)
@@ -465,7 +465,8 @@ validate_phases (FILE *fp)
       if (phase_wall > total->wall)
        fprintf (fp, "wall    %24.18e > %24.18e\n", phase_wall, total->wall);
       if (phase_ggc_mem > total->ggc_mem)
-       fprintf (fp, "ggc_mem %24lu > %24lu\n", phase_ggc_mem, total->ggc_mem);
+       fprintf (fp, "ggc_mem %24lu > %24lu\n", (unsigned long)phase_ggc_mem,
+                (unsigned long)total->ggc_mem);
       gcc_unreachable ();
     }
 }