This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Fix overflows in -ftime-report


> >        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_ggc_mem, total->ggc_mem);
> >        gcc_unreachable ();
> >
> 
> Won't that cause compilation errors on platforms where size_t is not
> unsigned long?

You are probably right.  I will add the cast shortly.
Thanks,
Honza
> 
> R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]