]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix signed vs unsigned issue in H8 port
authorJeff Law <jeffreyalaw@gmail.com>
Sat, 29 Oct 2022 03:33:06 +0000 (23:33 -0400)
committerJeff Law <jeffreyalaw@gmail.com>
Sat, 29 Oct 2022 03:34:30 +0000 (23:34 -0400)
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.

gcc/config/h8300/h8300-protos.h
gcc/config/h8300/h8300.cc

index 8c989495c293b9bf9ad32b9bb78dad929c155bf6..77adfaba07b28dcfc61ac21659f9fb72b2e4a0c6 100644 (file)
@@ -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 *);
index ce0702edecb0038b3ca56e0e62b4bfba963ca316..cd7975e2fff202d77f854760a1328817b68f5006 100644 (file)
@@ -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)