diff options
author | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-30 21:44:23 +0000 |
---|---|---|
committer | steven <steven@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-04-30 21:44:23 +0000 |
commit | 761cbb5d4eb909ad04e71f7a4c4ace409ef525d6 (patch) | |
tree | 83e08f031c2474e806c6aa3a8e7b5d773f12aa67 /gcc/ggc-page.c | |
parent | ad15125b45f4a09912dc93455a489f5b6c6d7eb1 (diff) | |
download | gcc-761cbb5d4eb909ad04e71f7a4c4ace409ef525d6.tar.gz |
* ggc-page.c (TREE_EXP_SIZE): Define.
(extra_order_size_table): New entry for expr trees with
two operands.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@66306 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index ee5f9129e1f..569e5191e9c 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -173,6 +173,9 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA #define RTL_SIZE(NSLOTS) \ (sizeof (struct rtx_def) + ((NSLOTS) - 1) * sizeof (rtunion)) +#define TREE_EXP_SIZE(OPS) \ + (sizeof (struct tree_exp) + ((OPS) - 1) * sizeof (tree)) + /* The Ith entry is the maximum size of an object to be stored in the Ith extra order. Adding a new entry to this array is the *only* thing you need to do to add a new special allocation size. */ @@ -180,6 +183,7 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA static const size_t extra_order_size_table[] = { sizeof (struct tree_decl), sizeof (struct tree_list), + TREE_EXP_SIZE (2), RTL_SIZE (2), /* REG, MEM, PLUS, etc. */ RTL_SIZE (10), /* INSN, CALL_INSN, JUMP_INSN */ }; |