aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree.h
diff options
context:
space:
mode:
authorGeoff Keating <geoffk@cygnus.com>2000-10-06 04:51:47 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2000-10-06 04:51:47 +0000
commitc562099651d49af2777002f82e60e3ecc8125ac1 (patch)
tree3106595f245243c7928a9e3c10c5acdec022b2e1 /gcc/tree.h
parent37dad58d3ceb6a8e06c6d0b2196555356ac02c4a (diff)
downloadgcc-c562099651d49af2777002f82e60e3ecc8125ac1.zip
gcc-c562099651d49af2777002f82e60e3ecc8125ac1.tar.gz
gcc-c562099651d49af2777002f82e60e3ecc8125ac1.tar.bz2
tree.c (tree_size): New function split out of copy_node.
* tree.c (tree_size): New function split out of copy_node. (make_node): Remove obstack handling. Use tree_size. (copy_node): Use tree_size. * tree.h: Prototype tree_size. From-SVN: r36742
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 f55b4b6..74c566c 100644
--- a/gcc/tree.h
+++ b/gcc/tree.h
@@ -1863,6 +1863,11 @@ extern char *permalloc PARAMS ((int));
extern char *savealloc PARAMS ((int));
extern char *expralloc PARAMS ((int));
+/* Compute the number of bytes occupied by 'node'. This routine only
+ looks at TREE_CODE and, if the code is TREE_VEC, TREE_VEC_LENGTH. */
+
+extern size_t tree_size PARAMS ((tree));
+
/* 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. */