summaryrefslogtreecommitdiff
path: root/gcc/ggc-none.c
diff options
context:
space:
mode:
authorlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-30 04:12:56 +0000
committerlauras <lauras@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-30 04:12:56 +0000
commit00881f33e939f70ace98eaf6e9a65735dd378ba3 (patch)
treef6b2e47509cb0718729134f98203a2546c2cb4e4 /gcc/ggc-none.c
parenta20ee7a1e136d9e2e820f479b3038a40bcd759cb (diff)
downloadgcc-00881f33e939f70ace98eaf6e9a65735dd378ba3.tar.gz
2010-11-30 Laurynas Biveinis <laurynas.biveinis@gmail.com>
* ggc-zone.c (ggc_pch_read): Fix conditional compilation. * ggc-none.c (ggc_internal_alloc_zone_stat) (ggc_internal_cleared_alloc_zone_stat): New. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167284 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-none.c')
-rw-r--r--gcc/ggc-none.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/ggc-none.c b/gcc/ggc-none.c
index f9c48cb8cc5..97d25b9b653 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