Re: Fix overflows in -ftime-report

2013-08-22 Thread Jan Hubicka
> >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 %24u > %24u\n", phase_ggc_mem, total->ggc_mem); > > + fprintf (fp, "ggc_mem %24lu > %24lu\n", phase_g

Re: Fix overflows in -ftime-report

2013-08-22 Thread Richard Earnshaw
On 22/08/13 16:03, Jan Hubicka wrote: > Hi, > this patch fixes overflow happening in -ftime-report when printing memory > usage > of bigger WPA compilations. > > Honza > > * timevar.c (validate_phases): Use size_t for memory. > * timevar.h (struct timevar_time_def): Use size_t for gg

Fix overflows in -ftime-report

2013-08-22 Thread Jan Hubicka
Hi, this patch fixes overflow happening in -ftime-report when printing memory usage of bigger WPA compilations. Honza * timevar.c (validate_phases): Use size_t for memory. * timevar.h (struct timevar_time_def): Use size_t for ggc_mem. Index: timevar.c =