Re: [PATCH] Fix tree statistics with -fmem-report.

2018-03-14 Thread Richard Biener
On Wed, Mar 14, 2018 at 10:51 AM, Martin Liška wrote: > Hi. > > Current code that tracks memory statistics wrongly decremented a counter > based on t_kind, which is an enum value and thus a constant: > > - tree_node_counts[(int) t_kind]--; > > That's obviously a mistake. > > May I install the

[PATCH] Fix tree statistics with -fmem-report.

2018-03-14 Thread Martin Liška
Hi. Current code that tracks memory statistics wrongly decremented a counter based on t_kind, which is an enum value and thus a constant: - tree_node_counts[(int) t_kind]--; That's obviously a mistake. May I install the patch after reg tests&bootstrap? Thanks, Martin gcc/ChangeLog: 2018-