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-common.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-common.c')
-rw-r--r-- | gcc/ggc-common.c | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/gcc/ggc-common.c b/gcc/ggc-common.c index 70930a375d5..f02224a9c59 100644 --- a/gcc/ggc-common.c +++ b/gcc/ggc-common.c @@ -250,8 +250,7 @@ ggc_cleared_alloc_ptr_array_two_args (size_t c, size_t n) /* These are for splay_tree_new_ggc. */ void * -ggc_splay_alloc (enum gt_types_enum obj_type ATTRIBUTE_UNUSED, int sz, - void *nl) +ggc_splay_alloc (int sz, void *nl) { gcc_assert (!nl); return ggc_internal_alloc (sz); @@ -300,7 +299,6 @@ struct ptr_data gt_handle_reorder reorder_fn; size_t size; void *new_addr; - enum gt_types_enum type; }; #define POINTER_HASH(x) (hashval_t)((intptr_t)x >> 3) @@ -309,8 +307,7 @@ struct ptr_data int gt_pch_note_object (void *obj, void *note_ptr_cookie, - gt_note_pointers note_ptr_fn, - enum gt_types_enum type) + gt_note_pointers note_ptr_fn) { struct ptr_data **slot; @@ -335,7 +332,6 @@ gt_pch_note_object (void *obj, void *note_ptr_cookie, (*slot)->size = strlen ((const char *)obj) + 1; else (*slot)->size = ggc_get_size (obj); - (*slot)->type = type; return 1; } @@ -391,8 +387,7 @@ call_count (void **slot, void *state_p) struct traversal_state *state = (struct traversal_state *)state_p; ggc_pch_count_object (state->d, d->obj, d->size, - d->note_ptr_fn == gt_pch_p_S, - d->type); + d->note_ptr_fn == gt_pch_p_S); state->count++; return 1; } @@ -404,8 +399,7 @@ call_alloc (void **slot, void *state_p) struct traversal_state *state = (struct traversal_state *)state_p; d->new_addr = ggc_pch_alloc_object (state->d, d->obj, d->size, - d->note_ptr_fn == gt_pch_p_S, - d->type); + d->note_ptr_fn == gt_pch_p_S); state->ptrs[state->ptrs_i++] = d; return 1; } |