]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
ggc-page.c (TREE_EXP_SIZE): Define.
authorSteven Bosscher <steven@gcc.gnu.org>
Wed, 30 Apr 2003 21:44:23 +0000 (21:44 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 30 Apr 2003 21:44:23 +0000 (21:44 +0000)
* ggc-page.c (TREE_EXP_SIZE): Define.
(extra_order_size_table): New entry for expr trees with
two operands.

From-SVN: r66306

gcc/ChangeLog
gcc/ggc-page.c

index acfb3c99c7a9dc99f704b1d6021c47056ac717fe..0bc241ac29a979d213ebbd44ac11a6418a4213ef 100644 (file)
@@ -1,3 +1,9 @@
+2003-04-30  Steven Bosscher  <steven@gcc.gnu.org>
+
+       * ggc-page.c (TREE_EXP_SIZE): Define.
+       (extra_order_size_table): New entry for expr trees with
+       two operands.
+
 2003-04-30  Gabriel Dos Reis <gdr@integrable-solutions.net>
 
        * c-common.c (if_elt): Use location_t in lieu of "file, line" pair.
index ee5f9129e1f4f5fbbd3e5c63d117ccab65380f2f..569e5191e9cb691865c4391e961c5318a9de97c1 100644 (file)
@@ -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 */
 };