diff options
author | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-06 04:51:47 +0000 |
---|---|---|
committer | geoffk <geoffk@138bc75d-0d04-0410-961f-82ee72b054a4> | 2000-10-06 04:51:47 +0000 |
commit | 6663ac46138cdb1b1fd3374117912065d8f4d46b (patch) | |
tree | 3106595f245243c7928a9e3c10c5acdec022b2e1 /gcc/tree.h | |
parent | be7a7c698e1aa6f6ca9851eefab16febd0fca81c (diff) | |
download | gcc-6663ac46138cdb1b1fd3374117912065d8f4d46b.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@36742 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/tree.h b/gcc/tree.h index f55b4b640e3..74c566c85d6 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. */ |