On 9/26/18 11:22 AM, Martin Sebor wrote: > The attached patch modifies the return types of a number > of predicates in tree.h and tree.c from int to bool. > > Tested on x86_64-linux with no unexpected failures. > > Martin > > gcc-tree-int2bool.diff > > gcc/ChangeLog: > > * tree.c (zerop): Change return type to bool. > (integer_zerop, integer_onep, integer_each_onep): Same. > (integer_all_onesp, integer_minus_onep, integer_pow2p): Same. > (integer_nonzerop, integer_truep, tree_ctz, real_zerop): Same. > (real_onep, real_minus_onep, chain_index): Same. > (print_type_hash_statistics, type_list_equal): Same. > * tree.h (zerop): Same. > (zerop, integer_zerop, integer_onep, integer_each_onep): Same. > (integer_all_onesp, integer_minus_onep, integer_pow2p): Same. > (integer_nonzerop, integer_truep, tree_ctz, real_zerop): Same. > (real_onep, real_minus_onep, chain_index): Same. > (print_type_hash_statistics, type_list_equal): Same. OK. And I think that generally this should be OK under the obvious rule. So if you find more, just fix 'em.
Jeff