/* Null garbage collection for the GNU compiler.
- Copyright (C) 1998, 1999 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
This file is part of GNU CC.
need GC at all. This prevents problems with pulling in all the
tree stuff. */
-/* We are used by gengenrtl, before genrtl.h exists. But we don't
- need it either. */
-#define NO_GENRTL_H
-
#include "config.h"
#include "system.h"
-#include "rtl.h"
#include "ggc.h"
-/* For now, keep using the old obstack scheme in the gen* programs. */
-int ggc_p = 0;
-
-rtx
-ggc_alloc_rtx (nslots)
- int nslots;
+void *
+ggc_alloc (size)
+ size_t size;
{
- int size = sizeof(struct rtx_def) + (nslots - 1) * sizeof(rtunion);
- rtx n;
-
- n = (rtx) xmalloc (size);
- bzero ((char *) n, size);
-
- return n;
-}
-
-rtvec
-ggc_alloc_rtvec (nelt)
- int nelt;
-{
- int size = sizeof (struct rtvec_def) + (nelt - 1) * sizeof (rtunion);
- rtvec v;
-
- v = (rtvec) xmalloc (size);
- bzero ((char *) v, size);
-
- return v;
+ return xmalloc (size);
}