diff options
author | kan <kan@FreeBSD.org> | 2004-07-28 03:11:36 +0000 |
---|---|---|
committer | kan <kan@FreeBSD.org> | 2004-07-28 03:11:36 +0000 |
commit | 5e00ec74d8ce58f99801200d4d3d0412c7cc1b28 (patch) | |
tree | 052f4bb635f2bea2c5e350bd60c902be100a0d1e /contrib/gcc/ggc-none.c | |
parent | 87b8398a7d9f9bf0e28bbcd54a4fc27db2125f38 (diff) | |
download | FreeBSD-src-5e00ec74d8ce58f99801200d4d3d0412c7cc1b28.zip FreeBSD-src-5e00ec74d8ce58f99801200d4d3d0412c7cc1b28.tar.gz |
Gcc 3.4.2 20040728.
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); } |