diff options
author | Jeff Law <jeffreyalaw@gmail.com> | 2022-10-28 23:33:06 -0400 |
---|---|---|
committer | Jeff Law <jeffreyalaw@gmail.com> | 2022-10-28 23:34:30 -0400 |
commit | 724d3f926b94672de960dbe88fb699bbdd7fde97 (patch) | |
tree | 8221d3e5e3e3f530e100575c53c811d9a73ad6d5 /gcc | |
parent | 3055829a4addde1fa3542c8070c87e2dd17217fc (diff) | |
download | gcc-724d3f926b94672de960dbe88fb699bbdd7fde97.zip gcc-724d3f926b94672de960dbe88fb699bbdd7fde97.tar.gz gcc-724d3f926b94672de960dbe88fb699bbdd7fde97.tar.bz2 |
Fix signed vs unsigned issue in H8 port
gcc/
* config/h8300/h8300.cc (pre_incdec_with_reg): Make reg argument
an unsigned int
* config/h8300/h8300-protos.h (pre_incdec_with_reg): Adjust prototype.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/h8300/h8300-protos.h | 2 | ||||
-rw-r--r-- | gcc/config/h8300/h8300.cc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/gcc/config/h8300/h8300-protos.h b/gcc/config/h8300/h8300-protos.h index 8c98949..77adfab 100644 --- a/gcc/config/h8300/h8300-protos.h +++ b/gcc/config/h8300/h8300-protos.h @@ -100,7 +100,7 @@ extern int h8300_initial_elimination_offset (int, int); extern int h8300_regs_ok_for_stm (int, rtx[]); extern int h8300_hard_regno_rename_ok (unsigned int, unsigned int); extern bool h8300_move_ok (rtx, rtx); -extern bool pre_incdec_with_reg (rtx, int); +extern bool pre_incdec_with_reg (rtx, unsigned int); struct cpp_reader; extern void h8300_pr_interrupt (struct cpp_reader *); diff --git a/gcc/config/h8300/h8300.cc b/gcc/config/h8300/h8300.cc index ce0702e..cd7975e 100644 --- a/gcc/config/h8300/h8300.cc +++ b/gcc/config/h8300/h8300.cc @@ -5536,7 +5536,7 @@ h8300_ok_for_sibcall_p (tree fndecl, tree) instruction using REG, FALSE otherwise. */ bool -pre_incdec_with_reg (rtx op, int reg) +pre_incdec_with_reg (rtx op, unsigned int reg) { /* OP must be a MEM. */ if (GET_CODE (op) != MEM) |