View | Details | Return to bug 45375 | Differences between
and this patch

Collapse All | Expand All

(-)tree.c (-15 / +18 lines)
Lines 123-131 extern int _obstack_allocated_p (struct Link Here
123
123
124
/* Statistics-gathering stuff.  */
124
/* Statistics-gathering stuff.  */
125
125
126
static int tree_code_counts[MAX_TREE_CODES];
126
size_t tree_code_counts[MAX_TREE_CODES];
127
int tree_node_counts[(int) all_kinds];
127
size_t tree_node_counts[(int) all_kinds];
128
int tree_node_sizes[(int) all_kinds];
128
size_t tree_node_sizes[(int) all_kinds];
129
129
130
/* Keep in sync with tree.h:enum tree_node_kind.  */
130
/* Keep in sync with tree.h:enum tree_node_kind.  */
131
static const char * const tree_node_kind_names[] = {
131
static const char * const tree_node_kind_names[] = {
Lines 8673-8697 dump_tree_statistics (void) Link Here
8673
  if (GATHER_STATISTICS)
8673
  if (GATHER_STATISTICS)
8674
    {
8674
    {
8675
      int i;
8675
      int i;
8676
      int total_nodes, total_bytes;
8676
      size_t total_nodes, total_bytes;
8677
      fprintf (stderr, "Kind                   Nodes      Bytes\n");
8677
      fprintf (stderr, "Kind                        Nodes        Bytes\n");
8678
      fprintf (stderr, "---------------------------------------\n");
8678
      fprintf (stderr, "----------------------------------------------\n");
8679
      total_nodes = total_bytes = 0;
8679
      total_nodes = total_bytes = 0;
8680
      for (i = 0; i < (int) all_kinds; i++)
8680
      for (i = 0; i < (int) all_kinds; i++)
8681
	{
8681
	{
8682
	  fprintf (stderr, "%-20s %7d %10d\n", tree_node_kind_names[i],
8682
	  fprintf (stderr, "%-20s %12zu %12zu\n",
8683
		   tree_node_counts[i], tree_node_sizes[i]);
8683
		   tree_node_kind_names[i],
8684
		   tree_node_counts[i],
8685
		   tree_node_sizes[i]);
8684
	  total_nodes += tree_node_counts[i];
8686
	  total_nodes += tree_node_counts[i];
8685
	  total_bytes += tree_node_sizes[i];
8687
	  total_bytes += tree_node_sizes[i];
8686
	}
8688
	}
8687
      fprintf (stderr, "---------------------------------------\n");
8689
      fprintf (stderr, "----------------------------------------------\n");
8688
      fprintf (stderr, "%-20s %7d %10d\n", "Total", total_nodes, total_bytes);
8690
      fprintf (stderr, "%-20s %12zu %12zu\n", "Total",
8689
      fprintf (stderr, "---------------------------------------\n");
8691
	       total_nodes, total_bytes);
8690
      fprintf (stderr, "Code                   Nodes\n");
8692
      fprintf (stderr, "----------------------------------------------\n");
8691
      fprintf (stderr, "----------------------------\n");
8693
      fprintf (stderr, "Code                        Nodes\n");
8694
      fprintf (stderr, "---------------------------------\n");
8692
      for (i = 0; i < (int) MAX_TREE_CODES; i++)
8695
      for (i = 0; i < (int) MAX_TREE_CODES; i++)
8693
	fprintf (stderr, "%-20s %7d\n", tree_code_name[i], tree_code_counts[i]);
8696
	fprintf (stderr, "%-20s %12zu\n", tree_code_name[i], tree_code_counts[i]);
8694
      fprintf (stderr, "----------------------------\n");
8697
      fprintf (stderr, "---------------------------------\n");
8695
      ssanames_print_statistics ();
8698
      ssanames_print_statistics ();
8696
      phinodes_print_statistics ();
8699
      phinodes_print_statistics ();
8697
    }
8700
    }

Return to bug 45375