* rtl.c (obstack_alloc_rtx): Removed.
authorAlexandre Oliva <oliva@lsd.ic.unicamp.br>
Tue, 14 Sep 1999 02:31:19 +0000 (02:31 +0000)
committerAlexandre Oliva <oliva@gcc.gnu.org>
Tue, 14 Sep 1999 02:31:19 +0000 (02:31 +0000)
From-SVN: r29388

gcc/ChangeLog
gcc/rtl.c

index 7188b287fb78c08da6357fce7faf3255774050d3..6d2aae3881aa92a3052ddfe834fe00c5d069c2a4 100644 (file)
@@ -1,3 +1,7 @@
+1999-09-13  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
+
+       * rtl.c (obstack_alloc_rtx): Removed.
+
 1999-09-13 17:03 -0700  Zack Weinberg  <zack@bitmover.com>
 
        * config/gmicro/gmicro.md: Disable move DF->DI anonymous pattern.
index 4164c689c6c984414c281de40aee2eae474feb59..011c44022c87a56eca3d46c8cd44e170bb8ed360 100644 (file)
--- 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