Hi. I'm fixing one obvious issue in dump_tree_statistics.
I'm going to install the patch. Martin gcc/ChangeLog: 2019-10-25 Martin Liska <mli...@suse.cz> * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'. --- gcc/tree.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/tree.c b/gcc/tree.c index 2bee1d255ff..23fe5bffd37 100644 --- a/gcc/tree.c +++ b/gcc/tree.c @@ -9673,7 +9673,7 @@ dump_tree_statistics (void) { unsigned j = indices[i]; fprintf (stderr, "%-20s %6" PRIu64 "%c %9" PRIu64 "%c\n", - tree_node_kind_names[i], SIZE_AMOUNT (tree_node_counts[j]), + tree_node_kind_names[j], SIZE_AMOUNT (tree_node_counts[j]), SIZE_AMOUNT (tree_node_sizes[j])); total_nodes += tree_node_counts[j]; total_bytes += tree_node_sizes[j];