Commit 5e302bca by Jan Hubicka Committed by Jan Hubicka

timevar.c (validate_phases): Use size_t for memory.

	* timevar.c (validate_phases): Use size_t for memory.
	* timevar.h (struct timevar_time_def): Use size_t for ggc_mem.

From-SVN: r201920
parent a7a6a027
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.
2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net> 2013-08-22 Gabriel Dos Reis <gdr@integrable-solutions.net>
* pretty-print.h (output_buffer::output_buffer): Declare. * pretty-print.h (output_buffer::output_buffer): Declare.
......
...@@ -430,7 +430,7 @@ validate_phases (FILE *fp) ...@@ -430,7 +430,7 @@ validate_phases (FILE *fp)
double phase_user = 0.0; double phase_user = 0.0;
double phase_sys = 0.0; double phase_sys = 0.0;
double phase_wall = 0.0; double phase_wall = 0.0;
unsigned phase_ggc_mem = 0; size_t phase_ggc_mem = 0;
static char phase_prefix[] = "phase "; static char phase_prefix[] = "phase ";
const double tolerance = 1.000001; /* One part in a million. */ const double tolerance = 1.000001; /* One part in a million. */
...@@ -465,7 +465,7 @@ validate_phases (FILE *fp) ...@@ -465,7 +465,7 @@ validate_phases (FILE *fp)
if (phase_wall > total->wall) if (phase_wall > total->wall)
fprintf (fp, "wall %24.18e > %24.18e\n", phase_wall, total->wall); fprintf (fp, "wall %24.18e > %24.18e\n", phase_wall, total->wall);
if (phase_ggc_mem > total->ggc_mem) if (phase_ggc_mem > total->ggc_mem)
fprintf (fp, "ggc_mem %24u > %24u\n", phase_ggc_mem, total->ggc_mem); fprintf (fp, "ggc_mem %24lu > %24lu\n", phase_ggc_mem, total->ggc_mem);
gcc_unreachable (); gcc_unreachable ();
} }
} }
......
...@@ -62,7 +62,7 @@ struct timevar_time_def ...@@ -62,7 +62,7 @@ struct timevar_time_def
double wall; double wall;
/* Garbage collector memory. */ /* Garbage collector memory. */
unsigned ggc_mem; size_t ggc_mem;
}; };
/* An enumeration of timing variable identifiers. Constructed from /* An enumeration of timing variable identifiers. Constructed from
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment