summaryrefslogtreecommitdiff
path: root/gcc/ggc-page.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2002-08-14 18:03:43 -0700
committerRichard Henderson <rth@gcc.gnu.org>2002-08-14 18:03:43 -0700
commitd1f1cc6a0fbea6eafd29bf13a02705ccb9e4f45e (patch)
tree98f95ebf444eb6c313ed44d7aaf8dfa76160648b /gcc/ggc-page.c
parent55ae9079933065d00adfac121e8b5b6a18b61939 (diff)
downloadgcc-d1f1cc6a0fbea6eafd29bf13a02705ccb9e4f45e.tar.gz
ggc-page.c (RTL_SIZE): New.
* ggc-page.c (RTL_SIZE): New. (extra_order_size_table): Add specializations for 2 and 10 rtl slots. * rtl.def (BARRIER, NOTE): Pad to 9 slots. From-SVN: r56337
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r--gcc/ggc-page.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c
index 0f59153ad36..9a5644a3232 100644
--- a/gcc/ggc-page.c
+++ b/gcc/ggc-page.c
@@ -163,13 +163,18 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA
#define NUM_EXTRA_ORDERS ARRAY_SIZE (extra_order_size_table)
+#define RTL_SIZE(NSLOTS) \
+ (sizeof (struct rtx_def) + ((NSLOTS) - 1) * sizeof (rtunion))
+
/* 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. */
static const size_t extra_order_size_table[] = {
sizeof (struct tree_decl),
- sizeof (struct tree_list)
+ sizeof (struct tree_list),
+ RTL_SIZE (2), /* REG, MEM, PLUS, etc. */
+ RTL_SIZE (10), /* INSN, CALL_INSN, JUMP_INSN */
};
/* The total number of orders. */