diff options
Diffstat (limited to 'gcc/ggc-none.c')
-rw-r--r-- | gcc/ggc-none.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ggc-none.c b/gcc/ggc-none.c index f9c48cb..97d25b9 100644 --- a/gcc/ggc-none.c +++ b/gcc/ggc-none.c @@ -71,3 +71,22 @@ struct alloc_zone struct alloc_zone rtl_zone; struct alloc_zone tree_zone; struct alloc_zone tree_id_zone; + +#if defined (GGC_ZONE) && !defined (GENERATOR_FILE) + +void * +ggc_internal_alloc_zone_stat (size_t size, + struct alloc_zone * ARG_UNUSED(z) MEM_STAT_DECL) +{ + return xmalloc (size); +} + +void * +ggc_internal_cleared_alloc_zone_stat (size_t size, + struct alloc_zone * ARG_UNUSED(z) + MEM_STAT_DECL) +{ + return xcalloc (size, 1); +} + +#endif |