diff options
author | Martin Liska <mliska@suse.cz> | 2019-08-07 14:45:57 +0200 |
---|---|---|
committer | Martin Liska <marxin@gcc.gnu.org> | 2019-08-07 12:45:57 +0000 |
commit | 12bbb1f78e610e665077f6ed58013b4c9f57741b (patch) | |
tree | 60eef701e963225ccc924c85191c496d5e95d0e5 /gcc/fold-const.h | |
parent | 4047bab96dfc6bcea64a12b428f40d2f7a77ccbb (diff) | |
download | gcc-12bbb1f78e610e665077f6ed58013b4c9f57741b.zip gcc-12bbb1f78e610e665077f6ed58013b4c9f57741b.tar.gz gcc-12bbb1f78e610e665077f6ed58013b4c9f57741b.tar.bz2 |
Replace int with boolean in predicate functions.
2019-08-07 Martin Liska <mliska@suse.cz>
* fold-const.c (twoval_comparison_p): Replace int
with bool as a return type.
(simple_operand_p): Likewise.
(operand_equal_p): Replace int with bool as a return type.
* fold-const.h (operand_equal_p): Likewise.
From-SVN: r274161
Diffstat (limited to 'gcc/fold-const.h')
-rw-r--r-- | gcc/fold-const.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/fold-const.h b/gcc/fold-const.h index eab2b47..54c850a 100644 --- a/gcc/fold-const.h +++ b/gcc/fold-const.h @@ -84,7 +84,7 @@ extern bool fold_deferring_overflow_warnings_p (void); extern void fold_overflow_warning (const char*, enum warn_strict_overflow_code); extern enum tree_code fold_div_compare (enum tree_code, tree, tree, tree *, tree *, bool *); -extern int operand_equal_p (const_tree, const_tree, unsigned int); +extern bool operand_equal_p (const_tree, const_tree, unsigned int); extern int multiple_of_p (tree, const_tree, const_tree); #define omit_one_operand(T1,T2,T3)\ omit_one_operand_loc (UNKNOWN_LOCATION, T1, T2, T3) |