aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
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.h
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.h')
-rw-r--r--gcc/tree.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index 803004c..9fffe7e 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -3017,4 +3017,28 @@ extern void fancy_abort (const char *, int, const char *)
ATTRIBUTE_NORETURN;
#define abort() fancy_abort (__FILE__, __LINE__, __FUNCTION__)
+/* Enum and arrays used for tree allocation stats.
+ Keep in sync with tree.c:tree_node_kind_names. */
+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;
+
+extern int tree_node_counts[];
+extern int tree_node_sizes[];
+
#endif /* GCC_TREE_H */