diff options
author | Geoff Keating <geoffk@cygnus.com> | 2000-10-06 04:51:47 +0000 |
---|---|---|
committer | Geoffrey Keating <geoffk@gcc.gnu.org> | 2000-10-06 04:51:47 +0000 |
commit | c562099651d49af2777002f82e60e3ecc8125ac1 (patch) | |
tree | 3106595f245243c7928a9e3c10c5acdec022b2e1 /gcc/tree.h | |
parent | 37dad58d3ceb6a8e06c6d0b2196555356ac02c4a (diff) | |
download | gcc-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.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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. */ |