aboutsummaryrefslogtreecommitdiff
path: root/gcc/ggc-common.cc
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2022-05-10 09:45:16 +0200
committerMartin Liska <mliska@suse.cz>2022-05-10 12:27:08 +0200
commit4b86508194463b601000bfa779bce0834247c66c (patch)
treee4ab7b94d2a7522c9b22eaa999d6af3f4cedb390 /gcc/ggc-common.cc
parentd4694846102a9589558dd509ef70b7960063935d (diff)
downloadgcc-4b86508194463b601000bfa779bce0834247c66c.zip
gcc-4b86508194463b601000bfa779bce0834247c66c.tar.gz
gcc-4b86508194463b601000bfa779bce0834247c66c.tar.bz2
Replace PTR with 'void *' in compiler.
gcc/ada/ChangeLog: * gcc-interface/decl.cc (compare_field_bitpos): Use void * instead PTR. * gcc-interface/utils2.cc (compare_elmt_bitpos): Likewise. gcc/ChangeLog: * basic-block.h (struct basic_block_d): Use void * instead PTR. * cfgloop.h: Likewise. * cgraph.h: Likewise. * gengtype-state.cc (state_ident_by_name): Likewise. (record_type): Likewise. (read_state_already_seen_type): Likewise. * gengtype.cc (dump_type): Likewise. (input_file_by_name): Likewise. (main): Likewise. * ggc-common.cc (ggc_cleared_alloc_ptr_array_two_args): Likewise. * ipa-utils.h (struct ipa_dfs_info): Likewise. * plugin.cc (htab_hash_plugin): Likewise.
Diffstat (limited to 'gcc/ggc-common.cc')
-rw-r--r--gcc/ggc-common.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ggc-common.cc b/gcc/ggc-common.cc
index 9d737d0..8b3389e 100644
--- a/gcc/ggc-common.cc
+++ b/gcc/ggc-common.cc
@@ -175,8 +175,8 @@ ggc_cleared_alloc_htab_ignore_args (size_t c ATTRIBUTE_UNUSED,
void *
ggc_cleared_alloc_ptr_array_two_args (size_t c, size_t n)
{
- gcc_assert (sizeof (PTR *) == n);
- return ggc_cleared_vec_alloc<PTR *> (c);
+ gcc_assert (sizeof (void **) == n);
+ return ggc_cleared_vec_alloc<void **> (c);
}
/* These are for splay_tree_new_ggc. */