diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2023-06-18 22:09:38 +0200 |
---|---|---|
committer | Uros Bizjak <ubizjak@gmail.com> | 2023-06-18 22:10:19 +0200 |
commit | 220af5576405de4f8187d150d8403eea706316cc (patch) | |
tree | 863d6a76d9738b10c0001941bdbdf112527df365 /gcc/rtl.h | |
parent | 24f75498ea59be94ae3eb1b82aa0b9de6ebfa232 (diff) | |
download | gcc-220af5576405de4f8187d150d8403eea706316cc.zip gcc-220af5576405de4f8187d150d8403eea706316cc.tar.gz gcc-220af5576405de4f8187d150d8403eea706316cc.tar.bz2 |
RTL: Change return type of predicate and callback functions from int to bool
gcc/ChangeLog:
* rtl.h (*rtx_equal_p_callback_function):
Change return type from int to bool.
(rtx_equal_p): Ditto.
(*hash_rtx_callback_function): Ditto.
* rtl.cc (rtx_equal_p): Change return type from int to bool
and adjust function body accordingly.
* early-remat.cc (scratch_equal): Ditto.
* sel-sched-ir.cc (skip_unspecs_callback): Ditto.
(hash_with_unspec_callback): Ditto.
Diffstat (limited to 'gcc/rtl.h')
-rw-r--r-- | gcc/rtl.h | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -3009,10 +3009,10 @@ extern rtx copy_rtx_if_shared (rtx); extern unsigned int rtx_size (const_rtx); extern rtx shallow_copy_rtx (const_rtx CXX_MEM_STAT_INFO); -typedef int (*rtx_equal_p_callback_function) (const_rtx *, const_rtx *, - rtx *, rtx *); -extern int rtx_equal_p (const_rtx, const_rtx, - rtx_equal_p_callback_function = NULL); +typedef bool (*rtx_equal_p_callback_function) (const_rtx *, const_rtx *, + rtx *, rtx *); +extern bool rtx_equal_p (const_rtx, const_rtx, + rtx_equal_p_callback_function = NULL); extern bool rtvec_all_equal_p (const_rtvec); extern bool rtvec_series_p (rtvec, int); @@ -4138,8 +4138,8 @@ extern int rtx_to_tree_code (enum rtx_code); extern int delete_trivially_dead_insns (rtx_insn *, int); extern bool exp_equiv_p (const_rtx, const_rtx, int, bool); -typedef int (*hash_rtx_callback_function) (const_rtx, machine_mode, rtx *, - machine_mode *); +typedef bool (*hash_rtx_callback_function) (const_rtx, machine_mode, rtx *, + machine_mode *); extern unsigned hash_rtx (const_rtx, machine_mode, int *, int *, bool, hash_rtx_callback_function = NULL); |