diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-07-03 16:32:37 +0200 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2023-07-03 16:33:11 +0200 |
commit | 9a856f67ee2f13ea1b17ca79e71b1d10ca03afa4 (patch) | |
tree | 1e8da0b3262a87691ae824280086ca0effe1fb54 /gcc/tree.h | |
parent | b8806f6ffbe72ed8fb7aba3b3a9196ec4d13e614 (diff) | |
download | gcc-9a856f67ee2f13ea1b17ca79e71b1d10ca03afa4.zip gcc-9a856f67ee2f13ea1b17ca79e71b1d10ca03afa4.tar.gz gcc-9a856f67ee2f13ea1b17ca79e71b1d10ca03afa4.tar.bz2 |
tree+ggc: Change return type of predicate functions from int to bool
Also change internal variable from int to bool.
gcc/ChangeLog:
* tree.h (tree_int_cst_equal): Change return type from int to bool.
(operand_equal_for_phi_arg_p): Ditto.
(tree_map_base_marked_p): Ditto.
* tree.cc (contains_placeholder_p): Update function body
for bool return type.
(type_cache_hasher::equal): Ditto.
(tree_map_base_hash): Change return type
from int to void and adjust function body accordingly.
(tree_int_cst_equal): Ditto.
(operand_equal_for_phi_arg_p): Ditto.
(get_narrower): Change "first" variable to bool.
(cl_option_hasher::equal): Update function body for bool return type.
* ggc.h (ggc_set_mark): Change return type from int to bool.
(ggc_marked_p): Ditto.
* ggc-page.cc (gt_ggc_mx): Change return type
from int to void and adjust function body accordingly.
(ggc_set_mark): Ditto.
Diffstat (limited to 'gcc/tree.h')
-rw-r--r-- | gcc/tree.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -4810,7 +4810,7 @@ extern bool vec_member (const_tree, vec<tree, va_gc> *); extern tree chain_index (int, tree); /* Arguments may be null. */ -extern int tree_int_cst_equal (const_tree, const_tree); +extern bool tree_int_cst_equal (const_tree, const_tree); /* The following predicates are safe to call with a null argument. */ extern bool tree_fits_shwi_p (const_tree) ATTRIBUTE_PURE; @@ -5418,7 +5418,7 @@ extern bool operation_can_overflow (enum tree_code); extern bool operation_no_trapping_overflow (tree, enum tree_code); extern tree upper_bound_in_type (tree, tree); extern tree lower_bound_in_type (tree, tree); -extern int operand_equal_for_phi_arg_p (const_tree, const_tree); +extern bool operand_equal_for_phi_arg_p (const_tree, const_tree); extern tree create_artificial_label (location_t); extern const char *get_name (tree); extern bool stdarg_p (const_tree); @@ -5662,7 +5662,7 @@ extern tree component_ref_size (tree, special_array_member * = NULL); extern int tree_map_base_eq (const void *, const void *); extern unsigned int tree_map_base_hash (const void *); -extern int tree_map_base_marked_p (const void *); +extern bool tree_map_base_marked_p (const void *); extern void DEBUG_FUNCTION verify_type (const_tree t); extern bool gimple_canonical_types_compatible_p (const_tree, const_tree, bool trust_type_canonical = true); |