diff options
author | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-24 15:13:46 +0000 |
---|---|---|
committer | dnovillo <dnovillo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-24 15:13:46 +0000 |
commit | 5cc133546a196ebceb71b11c50db41bec240e530 (patch) | |
tree | 34d4eb3cfee54bbc5c75bfb073ac74fea18fdc6d /gcc/ggc-page.c | |
parent | 2b5c3dd17b47e65b28ec2abc3aed3869eaa4a37a (diff) | |
download | gcc-5cc133546a196ebceb71b11c50db41bec240e530.tar.gz |
Remove zone allocator.
This patch removes the GC zone allocator. It is not used and it
produces several regressions in the testsuite. Furthermore, it
complicates things for the plan to implement manual GC markers
(http://gcc.gnu.org/wiki/cxx-conversion/gc-alternatives#Do_GC_marking_manually).
Tested on x86_64 with standard checking, --enable-checking=gc and
--enable-checking=release.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195426 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ggc-page.c')
-rw-r--r-- | gcc/ggc-page.c | 24 |
1 files changed, 2 insertions, 22 deletions
diff --git a/gcc/ggc-page.c b/gcc/ggc-page.c index 693753cb389..32768b2fc86 100644 --- a/gcc/ggc-page.c +++ b/gcc/ggc-page.c @@ -1199,15 +1199,6 @@ ggc_round_alloc_size (size_t requested_size) return size; } -/* Typed allocation function. Does nothing special in this collector. */ - -void * -ggc_alloc_typed_stat (enum gt_types_enum type ATTRIBUTE_UNUSED, size_t size - MEM_STAT_DECL) -{ - return ggc_internal_alloc_stat (size PASS_MEM_STAT); -} - /* Allocate a chunk of memory of SIZE bytes. Its contents are undefined. */ void * @@ -2230,8 +2221,7 @@ init_ggc_pch (void) void ggc_pch_count_object (struct ggc_pch_data *d, void *x ATTRIBUTE_UNUSED, - size_t size, bool is_string ATTRIBUTE_UNUSED, - enum gt_types_enum type ATTRIBUTE_UNUSED) + size_t size, bool is_string ATTRIBUTE_UNUSED) { unsigned order; @@ -2274,8 +2264,7 @@ ggc_pch_this_base (struct ggc_pch_data *d, void *base) char * ggc_pch_alloc_object (struct ggc_pch_data *d, void *x ATTRIBUTE_UNUSED, - size_t size, bool is_string ATTRIBUTE_UNUSED, - enum gt_types_enum type ATTRIBUTE_UNUSED) + size_t size, bool is_string ATTRIBUTE_UNUSED) { unsigned order; char *result; @@ -2507,12 +2496,3 @@ ggc_pch_read (FILE *f, void *addr) /* Update the statistics. */ G.allocated = G.allocated_last_gc = offs - (char *)addr; } - -struct alloc_zone -{ - int dummy; -}; - -struct alloc_zone rtl_zone; -struct alloc_zone tree_zone; -struct alloc_zone tree_id_zone; |