aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorZack Weinberg <zack@gcc.gnu.org>2004-09-11 21:14:39 +0000
committerZack Weinberg <zack@gcc.gnu.org>2004-09-11 21:14:39 +0000
commita38b644be61f5131051591c489f343b6008e555e (patch)
tree02ed409cddb73dd4e5bef2d9859d272ef3ce4744 /gcc/tree.h
parent68a97276d689ed61be616643316bc9be453e412b (diff)
downloadgcc-a38b644be61f5131051591c489f343b6008e555e.zip
gcc-a38b644be61f5131051591c489f343b6008e555e.tar.gz
gcc-a38b644be61f5131051591c489f343b6008e555e.tar.bz2
tree.c (tree_code_size): New function, bulk of code from tree_size.
* tree.c (tree_code_size): New function, bulk of code from tree_size. (tree_size, make_node): Use it. * tree-ssa-pre.c (init_pre): Use it. * tree.h: Prototype it. From-SVN: r87371
Diffstat (limited to 'gcc/tree.h')
-rw-r--r--gcc/tree.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h
index bdd95aa..0dd7eac 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -2650,6 +2650,11 @@ extern tree decl_assembler_name (tree);
extern size_t tree_size (tree);
+/* Compute the number of bytes occupied by a tree with code CODE. This
+ function cannot be used for TREE_VEC or PHI_NODE codes, which are of
+ variable length. */
+extern size_t tree_code_size (enum tree_code);
+
/* Lowest level primitive for allocating a node.
The TREE_CODE is the only argument. Contents are initialized
to zero except for a few of the common fields. */