PR rtl-optimization/122992
        * config/m68k/m68k.cc (m68k_conditional_register_usage): Fix
        signedness of register number var.
        (m68k_zero_call_used_regs): Fix missing declaration.
---
 gcc/config/m68k/m68k.cc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gcc/config/m68k/m68k.cc b/gcc/config/m68k/m68k.cc
index 494f4b76924..b6134892883 100644
--- a/gcc/config/m68k/m68k.cc
+++ b/gcc/config/m68k/m68k.cc
@@ -7113,7 +7113,7 @@ m68k_return_pops_args (tree fundecl, tree funtype, 
poly_int64 size)
 static void
 m68k_conditional_register_usage (void)
 {
-  int i;
+  unsigned int i;
   HARD_REG_SET x;
   if (!TARGET_HARD_FLOAT)
     {
@@ -7212,6 +7212,7 @@ m68k_zero_call_used_regs (HARD_REG_SET 
need_zeroed_hardregs)
   rtx zero_fpreg = NULL_RTX;
 
   hard_reg_set_iterator hrsi;
+  unsigned int regno;
   EXECUTE_IF_SET_IN_HARD_REG_SET (need_zeroed_hardregs, 0, regno, hrsi)
     {
       rtx reg, zero;
-- 
2.54.0


-- 
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."

Reply via email to