aboutsummaryrefslogtreecommitdiff
path: root/gcc/input.c
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2021-07-01 15:18:50 +0200
committerUros Bizjak <ubizjak@gmail.com>2021-07-01 15:19:28 +0200
commita86b3453fc6e29cf0e19916b01c393652d838d56 (patch)
tree235b7c2918275cc5f4f351ef824ebbd24345bb16 /gcc/input.c
parent0a77c07b9b3fe83679358c3ef57721e09e2ad5fb (diff)
downloadgcc-a86b3453fc6e29cf0e19916b01c393652d838d56.zip
gcc-a86b3453fc6e29cf0e19916b01c393652d838d56.tar.gz
gcc-a86b3453fc6e29cf0e19916b01c393652d838d56.tar.bz2
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.
Diffstat (limited to 'gcc/input.c')
0 files changed, 0 insertions, 0 deletions