aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/gcc-interface
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/ada/gcc-interface
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/ada/gcc-interface')
-rw-r--r--gcc/ada/gcc-interface/decl.cc4
-rw-r--r--gcc/ada/gcc-interface/utils2.cc2
2 files changed, 3 insertions, 3 deletions
diff --git a/gcc/ada/gcc-interface/decl.cc b/gcc/ada/gcc-interface/decl.cc
index 1c7a716..d52c4fb 100644
--- a/gcc/ada/gcc-interface/decl.cc
+++ b/gcc/ada/gcc-interface/decl.cc
@@ -224,7 +224,7 @@ static bool constructor_address_p (tree);
static bool allocatable_size_p (tree, bool);
static bool initial_value_needs_conversion (tree, tree);
static tree update_n_elem (tree, tree, tree);
-static int compare_field_bitpos (const PTR, const PTR);
+static int compare_field_bitpos (const void *, const void *);
static bool components_to_record (Node_Id, Entity_Id, tree, tree, int, bool,
bool, bool, bool, bool, bool, bool, tree,
tree *);
@@ -7712,7 +7712,7 @@ field_has_variable_size (tree field)
/* qsort comparer for the bit positions of two record components. */
static int
-compare_field_bitpos (const PTR rt1, const PTR rt2)
+compare_field_bitpos (const void *rt1, const void *rt2)
{
const_tree const field1 = * (const_tree const *) rt1;
const_tree const field2 = * (const_tree const *) rt2;
diff --git a/gcc/ada/gcc-interface/utils2.cc b/gcc/ada/gcc-interface/utils2.cc
index e5cd856..76622da 100644
--- a/gcc/ada/gcc-interface/utils2.cc
+++ b/gcc/ada/gcc-interface/utils2.cc
@@ -1936,7 +1936,7 @@ build_call_raise_range (int msg, Node_Id gnat_node, char kind,
for record components. */
static int
-compare_elmt_bitpos (const PTR rt1, const PTR rt2)
+compare_elmt_bitpos (const void *rt1, const void *rt2)
{
const constructor_elt * const elmt1 = (const constructor_elt *) rt1;
const constructor_elt * const elmt2 = (const constructor_elt *) rt2;