From: marxin Date: Fri, 25 Oct 2019 09:13:12 +0000 (+0000) Subject: Fix typo in dump_tree_statistics. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37438a1a4295e0cc9437dc2df0da36b1c50f0a58;p=thirdparty%2Fgcc.git Fix typo in dump_tree_statistics. 2019-10-25 Martin Liska * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@277440 138bc75d-0d04-0410-961f-82ee72b054a4 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 89448b1166aa..3601030bca8d 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2019-10-25 Martin Liska + + * tree.c (dump_tree_statistics): Use sorted index 'j' and not 'i'. + 2019-10-25 Richard Sandiford * tree-vect-loop.c (vectorizable_reduction): Restrict the diff --git a/gcc/tree.c b/gcc/tree.c index 2bee1d255ff0..23fe5bffd374 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];