diff options
Diffstat (limited to 'contrib/gcc/ggc-none.c')
-rw-r--r-- | contrib/gcc/ggc-none.c | 29 |
1 files changed, 21 insertions, 8 deletions
diff --git a/contrib/gcc/ggc-none.c b/contrib/gcc/ggc-none.c index 3711475..659bf93 100644 --- a/contrib/gcc/ggc-none.c +++ b/contrib/gcc/ggc-none.c @@ -1,5 +1,6 @@ /* 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. @@ -24,26 +25,38 @@ #include "config.h" #include "system.h" +#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); } |