aboutsummaryrefslogtreecommitdiff
path: root/gcc/rtl.c
diff options
context:
space:
mode:
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>1999-09-14 02:31:19 +0000
committerAlexandre Oliva <oliva@gcc.gnu.org>1999-09-14 02:31:19 +0000
commitc452dcde0ad257958078a4f0561f5bbd9d8763fa (patch)
treeb24f31ea8afca2d3440e693c68af11104ef383ed /gcc/rtl.c
parent9d85d30c20219b6ae3657c1ede69d7634aaad96f (diff)
downloadgcc-c452dcde0ad257958078a4f0561f5bbd9d8763fa.zip
gcc-c452dcde0ad257958078a4f0561f5bbd9d8763fa.tar.gz
gcc-c452dcde0ad257958078a4f0561f5bbd9d8763fa.tar.bz2
* rtl.c (obstack_alloc_rtx): Removed.
From-SVN: r29388
Diffstat (limited to 'gcc/rtl.c')
-rw-r--r--gcc/rtl.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/gcc/rtl.c b/gcc/rtl.c
index 4164c68..011c440 100644
--- a/gcc/rtl.c
+++ b/gcc/rtl.c
@@ -335,41 +335,6 @@ rtx_alloc (code)
return rt;
}
-/* Like the above, but allocate based only on the length. This is called
- by the routines built into genrtl.c. */
-
-rtx
-obstack_alloc_rtx (length)
- int length;
-{
- rtx rt;
- register struct obstack *ob = rtl_obstack;
-
- /* This function is called more than any other in GCC,
- so we manipulate the obstack directly.
-
- Even though rtx objects are word aligned, we may be sharing an obstack
- with tree nodes, which may have to be double-word aligned. So align
- our length to the alignment mask in the obstack. */
-
- length = (length + ob->alignment_mask) & ~ ob->alignment_mask;
-
- if (ob->chunk_limit - ob->next_free < length)
- _obstack_newchunk (ob, length);
-
- rt = (rtx) ob->object_base;
- ob->next_free += length;
- ob->object_base = ob->next_free;
-
- /* We want to clear everything up to the FLD array. Normally,
- this is one int, but we don't want to assume that and it
- isn't very portable anyway; this is. */
-
- memset (rt, 0, sizeof (struct rtx_def) - sizeof (rtunion));
-
- return rt;
-}
-
/* Free the rtx X and all RTL allocated since X. */
void