aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.c
diff options
context:
space:
mode:
authorGerald Pfeifer <gerald@gcc.gnu.org>2003-07-14 13:36:56 +0000
committerGerald Pfeifer <gerald@gcc.gnu.org>2003-07-14 13:36:56 +0000
commitadc4adcdaf77425b4ef99c8f468a6b7cf27292aa (patch)
tree47bd6d886c5f588b7ab757036ddad7e0ef31691b /gcc/tree.c
parent3ad249b9c71911ab735f7ea4e43a0b3fa6f48513 (diff)
downloadgcc-adc4adcdaf77425b4ef99c8f468a6b7cf27292aa.zip
gcc-adc4adcdaf77425b4ef99c8f468a6b7cf27292aa.tar.gz
gcc-adc4adcdaf77425b4ef99c8f468a6b7cf27292aa.tar.bz2
ggc-page.c (extra_order_size_table): Insns have 9 slots.
* ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs don't have 2. * ggc-page.c (struct globals): Add new fields to keep track of the total allocated memory and overhead. (ggc_print_statistics): Print them. (ggc_alloc): Keep track of the total allocated memory and the overhead. * tree.c (dump_tree_statistics): Increase spacing. (enum tree_node_kind): Move to ... * tree.h (enum tree_node_kind): ... here. (tree_node_counts, tree_node_sizes): Declare. * doc/include/texinfo.tex: Upgrade to texinfo 4.6. From-SVN: r69330
Diffstat (limited to 'gcc/tree.c')
-rw-r--r--gcc/tree.c31
1 files changed, 7 insertions, 24 deletions
diff --git a/gcc/tree.c b/gcc/tree.c
index 2f87033..d362ec1 100644
--- a/gcc/tree.c
+++ b/gcc/tree.c
@@ -51,28 +51,11 @@ extern int _obstack_allocated_p (struct obstack *h, void *obj);
#ifdef GATHER_STATISTICS
/* Statistics-gathering stuff. */
-typedef enum
-{
- d_kind,
- t_kind,
- b_kind,
- s_kind,
- r_kind,
- e_kind,
- c_kind,
- id_kind,
- perm_list_kind,
- temp_list_kind,
- vec_kind,
- x_kind,
- lang_decl,
- lang_type,
- all_kinds
-} tree_node_kind;
int tree_node_counts[(int) all_kinds];
int tree_node_sizes[(int) all_kinds];
+/* Keep in sync with tree.h:enum tree_node_kind. */
static const char * const tree_node_kind_names[] = {
"decls",
"types",
@@ -4446,19 +4429,19 @@ dump_tree_statistics (void)
fprintf (stderr, "\n??? tree nodes created\n\n");
#ifdef GATHER_STATISTICS
- fprintf (stderr, "Kind Nodes Bytes\n");
- fprintf (stderr, "-------------------------------------\n");
+ fprintf (stderr, "Kind Nodes Bytes\n");
+ fprintf (stderr, "---------------------------------------\n");
total_nodes = total_bytes = 0;
for (i = 0; i < (int) all_kinds; i++)
{
- fprintf (stderr, "%-20s %6d %9d\n", tree_node_kind_names[i],
+ fprintf (stderr, "%-20s %7d %10d\n", tree_node_kind_names[i],
tree_node_counts[i], tree_node_sizes[i]);
total_nodes += tree_node_counts[i];
total_bytes += tree_node_sizes[i];
}
- fprintf (stderr, "-------------------------------------\n");
- fprintf (stderr, "%-20s %6d %9d\n", "Total", total_nodes, total_bytes);
- fprintf (stderr, "-------------------------------------\n");
+ fprintf (stderr, "---------------------------------------\n");
+ fprintf (stderr, "%-20s %7d %10d\n", "Total", total_nodes, total_bytes);
+ fprintf (stderr, "---------------------------------------\n");
#else
fprintf (stderr, "(No per-node statistics)\n");
#endif