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-internal.h | |
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-internal.h')
-rw-r--r-- | gcc/ggc-internal.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gcc/ggc-internal.h b/gcc/ggc-internal.h index 25e6ce6..33874bc 100644 --- a/gcc/ggc-internal.h +++ b/gcc/ggc-internal.h @@ -52,9 +52,8 @@ extern struct ggc_pch_data *init_ggc_pch (void); /* The second parameter and third parameters give the address and size of an object. Update the ggc_pch_data structure with as much of - that information as is necessary. The bool argument should be true - if the object is a string. */ -extern void ggc_pch_count_object (struct ggc_pch_data *, void *, size_t, bool); + that information as is necessary. */ +extern void ggc_pch_count_object (struct ggc_pch_data *, void *, size_t); /* Return the total size of the data to be written to hold all the objects previously passed to ggc_pch_count_object. */ @@ -65,17 +64,15 @@ extern size_t ggc_pch_total_size (struct ggc_pch_data *); extern void ggc_pch_this_base (struct ggc_pch_data *, void *); /* Assuming that the objects really do end up at the address - passed to ggc_pch_this_base, return the address of this object. - The bool argument should be true if the object is a string. */ -extern char *ggc_pch_alloc_object (struct ggc_pch_data *, void *, size_t, bool); + passed to ggc_pch_this_base, return the address of this object. */ +extern char *ggc_pch_alloc_object (struct ggc_pch_data *, void *, size_t); /* Write out any initial information required. */ extern void ggc_pch_prepare_write (struct ggc_pch_data *, FILE *); -/* Write out this object, including any padding. The last argument should be - true if the object is a string. */ +/* Write out this object, including any padding. */ extern void ggc_pch_write_object (struct ggc_pch_data *, FILE *, void *, - void *, size_t, bool); + void *, size_t); /* All objects have been written, write out any final information required. */ |