/* Null garbage collection for the GNU compiler.
- Copyright (C) 1998, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2003
+ Free Software Foundation, Inc.
This file is part of GCC.
#include "coretypes.h"
#include "tm.h"
#include "ggc.h"
+struct alloc_zone *rtl_zone = NULL;
+struct alloc_zone *garbage_zone = NULL;
void *
-ggc_alloc (size)
- size_t size;
+ggc_alloc_typed (enum gt_types_enum gte ATTRIBUTE_UNUSED, size_t size)
{
return xmalloc (size);
}
void *
-ggc_alloc_cleared (size)
- size_t size;
+ggc_alloc (size_t size)
+{
+ return xmalloc (size);
+}
+
+void *
+ggc_alloc_zone (size_t size, struct alloc_zone *zone ATTRIBUTE_UNUSED)
+{
+ return xmalloc (size);
+}
+
+void *
+ggc_alloc_cleared (size_t size)
{
return xcalloc (size, 1);
}
void *
-ggc_realloc (x, size)
- void *x;
- size_t size;
+ggc_realloc (void *x, size_t size)
{
return xrealloc (x, size);
}