diff options
author | Thomas Schwinge <thomas@codesourcery.com> | 2023-07-01 00:25:05 +0200 |
---|---|---|
committer | Thomas Schwinge <thomas@codesourcery.com> | 2023-07-06 11:59:07 +0200 |
commit | bbbe2dc1fc4f561cda3d8cb383132b7d519b0de8 (patch) | |
tree | ce74024cd7e2528883473024482c235f2e11a500 /gcc/ggc-common.cc | |
parent | 11578db6e2a0da8fa7921713093e91ea0e599bef (diff) | |
download | gcc-bbbe2dc1fc4f561cda3d8cb383132b7d519b0de8.zip gcc-bbbe2dc1fc4f561cda3d8cb383132b7d519b0de8.tar.gz gcc-bbbe2dc1fc4f561cda3d8cb383132b7d519b0de8.tar.bz2 |
GGC: Remove unused 'bool is_string' arguments to 'ggc_pch_{count,alloc,write}_object'
They're unused since the removal of 'gcc/ggc-zone.c' in 2013 Subversion r195426
(Git commit cd030c079e5e42fe3f49261fe01f384e6b7f0111) "Remove zone allocator".
Should any future 'gcc/ggc-[...].cc' ever need this again, it'll be a conscious
decision at that time.
gcc/
* ggc-internal.h (ggc_pch_count_object, ggc_pch_alloc_object)
(ggc_pch_write_object): Remove 'bool is_string' argument.
* ggc-common.cc: Adjust.
* ggc-page.cc: Likewise.
Diffstat (limited to 'gcc/ggc-common.cc')
-rw-r--r-- | gcc/ggc-common.cc | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/ggc-common.cc b/gcc/ggc-common.cc index db317f4..173ab64 100644 --- a/gcc/ggc-common.cc +++ b/gcc/ggc-common.cc @@ -336,8 +336,7 @@ ggc_call_count (ptr_data **slot, traversal_state *state) { struct ptr_data *d = *slot; - ggc_pch_count_object (state->d, d->obj, d->size, - d->note_ptr_fn == gt_pch_p_S); + ggc_pch_count_object (state->d, d->obj, d->size); state->count++; return 1; } @@ -347,8 +346,7 @@ ggc_call_alloc (ptr_data **slot, traversal_state *state) { struct ptr_data *d = *slot; - d->new_addr = ggc_pch_alloc_object (state->d, d->obj, d->size, - d->note_ptr_fn == gt_pch_p_S); + d->new_addr = ggc_pch_alloc_object (state->d, d->obj, d->size); state->ptrs[state->ptrs_i++] = d; return 1; } @@ -642,8 +640,7 @@ gt_pch_save (FILE *f) state.ptrs[i]->note_ptr_cookie, relocate_ptrs, &state); ggc_pch_write_object (state.d, state.f, state.ptrs[i]->obj, - state.ptrs[i]->new_addr, state.ptrs[i]->size, - state.ptrs[i]->note_ptr_fn == gt_pch_p_S); + state.ptrs[i]->new_addr, state.ptrs[i]->size); if (state.ptrs[i]->note_ptr_fn != gt_pch_p_S) memcpy (state.ptrs[i]->obj, this_object, state.ptrs[i]->size); #if defined ENABLE_VALGRIND_ANNOTATIONS && defined VALGRIND_GET_VBITS |