aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Law <jeffreyalaw@gmail.com>2021-07-02 10:48:26 -0400
committerJeff Law <jeffreyalaw@gmail.com>2021-07-02 10:48:26 -0400
commitf6aa1c34e4a89c8c93518c49a108f3c43b78ea47 (patch)
tree6811fb4516e8567984d32e07d5c5ea5860b3951e
parentef9cc434a476954b5ef3493955d4e668338990c2 (diff)
downloadgcc-f6aa1c34e4a89c8c93518c49a108f3c43b78ea47.zip
gcc-f6aa1c34e4a89c8c93518c49a108f3c43b78ea47.tar.gz
gcc-f6aa1c34e4a89c8c93518c49a108f3c43b78ea47.tar.bz2
Fix m32r target specific fallout from recent int->bool changes
gcc/ChangeLog * config/m32r/m32r-protos.h (call_operand): Adjust return type. (small_data_operand, memreg_operand, small_insn_p): Likewise. * config/m32r/m32r.c (call_operand): Adjust return type. (small_data_operand, memreg_operand): Likewise.
-rw-r--r--gcc/config/m32r/m32r-protos.h8
-rw-r--r--gcc/config/m32r/m32r.c6
2 files changed, 7 insertions, 7 deletions
diff --git a/gcc/config/m32r/m32r-protos.h b/gcc/config/m32r/m32r-protos.h
index 23313fb..82b2c70 100644
--- a/gcc/config/m32r/m32r-protos.h
+++ b/gcc/config/m32r/m32r-protos.h
@@ -49,13 +49,13 @@ extern rtx m32r_return_addr (int);
extern rtx m32r_function_symbol (const char *);
#ifdef HAVE_MACHINE_MODES
-extern int call_operand (rtx, machine_mode);
-extern int small_data_operand (rtx, machine_mode);
+extern bool call_operand (rtx, machine_mode);
+extern bool small_data_operand (rtx, machine_mode);
extern int addr24_operand (rtx, machine_mode);
extern int addr32_operand (rtx, machine_mode);
extern int call26_operand (rtx, machine_mode);
-extern int memreg_operand (rtx, machine_mode);
-extern int small_insn_p (rtx, machine_mode);
+extern bool memreg_operand (rtx, machine_mode);
+extern bool small_insn_p (rtx, machine_mode);
#endif /* HAVE_MACHINE_MODES */
diff --git a/gcc/config/m32r/m32r.c b/gcc/config/m32r/m32r.c
index 3444ed4..1aaba94 100644
--- a/gcc/config/m32r/m32r.c
+++ b/gcc/config/m32r/m32r.c
@@ -532,7 +532,7 @@ m32r_init_expanders (void)
to make it easy to experiment. */
}
-int
+bool
call_operand (rtx op, machine_mode mode)
{
if (!MEM_P (op))
@@ -543,7 +543,7 @@ call_operand (rtx op, machine_mode mode)
/* Return 1 if OP is a reference to an object in .sdata/.sbss. */
-int
+bool
small_data_operand (rtx op, machine_mode mode ATTRIBUTE_UNUSED)
{
if (! TARGET_SDATA_USE)
@@ -674,7 +674,7 @@ easy_df_const (rtx op)
/* Return 1 if OP is (mem (reg ...)).
This is used in insn length calcs. */
-int
+bool
memreg_operand (rtx op, machine_mode mode ATTRIBUTE_UNUSED)
{
return MEM_P (op) && REG_P (XEXP (op, 0));