]> git.ipfire.org Git - thirdparty/gcc.git/commit
Change the type of predicates to bool.
authorUros Bizjak <ubizjak@gmail.com>
Thu, 1 Jul 2021 13:18:50 +0000 (15:18 +0200)
committerUros Bizjak <ubizjak@gmail.com>
Thu, 1 Jul 2021 13:19:28 +0000 (15:19 +0200)
commita86b3453fc6e29cf0e19916b01c393652d838d56
tree235b7c2918275cc5f4f351ef824ebbd24345bb16
parent0a77c07b9b3fe83679358c3ef57721e09e2ad5fb
Change the type of predicates to bool.

The patch was tested on many targets, but some fallout is expected.
To fix the build error, simply change the function type from int to bool,
as was done in the patch for several targets.

2021-07-01  Uroš Bizjak  <ubizjak@gmail.com>

gcc/
* genpreds.c (write_predicate_subfunction):
Change the type of written subfunction to bool.
(write_one_predicate_function):
Change the type of written function to bool.
(write_tm_preds_h): Ditto.
* recog.h (*insn_operand_predicate_fn): Change the type to bool.
* recog.c (general_operand): Change the type to bool.
(address_operand): Ditto.
(register_operand): Ditto.
(pmode_register_operand): Ditto.
(scratch_operand): Ditto.
(immediate_operand): Ditto.
(const_int_operand): Ditto.
(const_scalar_int_operand): Ditto.
(const_double_operand): Ditto.
(nonimmediate_operand): Ditto.
(nonmemory_operand): Ditto.
(push_operand): Ditto.
(pop_operand): Ditto.
(memory_operand): Ditto.
(indirect_operand): Ditto.
(ordered_comparison_operator): Ditto.
(comparison_operator): Ditto.

* config/i386/i386-expand.c (ix86_expand_sse_cmp):
Change the type of indirect predicate function to bool.

* config/rs6000/rs6000.c (easy_vector_constant):
Change the type to bool.

* config/mips/mips-protos.h (m16_based_address_p):
Change the type of operand 3 to bool.
gcc/config/i386/i386-expand.c
gcc/config/mips/mips-protos.h
gcc/config/rs6000/rs6000.c
gcc/genpreds.c
gcc/recog.c
gcc/recog.h