[avr,applied] Fix a build warning in avr-passes.cc

Message ID 43cc643d-1217-4389-9059-ce69981bdd48@gjlay.de
State New
Headers
Series [avr,applied] Fix a build warning in avr-passes.cc |

Checks

Context Check Description
linaro-tcwg-bot/tcwg_gcc_build--master-arm fail Patch failed to apply
linaro-tcwg-bot/tcwg_gcc_build--master-aarch64 fail Patch failed to apply

Commit Message

Georg-Johann Lay Oct. 1, 2024, 6:31 p.m. UTC
  Applied this patchlet for a build warning.

Johann

--

     AVR: avr-passes.cc - Fix a build warning.

     gcc/
             * config/avr/avr-passes.cc 
(avr_split_fake_addressing_move): Fix
             a build warning.

    switch (addr_code)
      {
  

Patch

diff --git a/gcc/config/avr/avr-passes.cc b/gcc/config/avr/avr-passes.cc
index ad913ddd4af..205b490950d 100644
--- a/gcc/config/avr/avr-passes.cc
+++ b/gcc/config/avr/avr-passes.cc
@@ -1788,7 +1788,8 @@  avr_split_fake_addressing_move (rtx_insn * 
/*insn*/, rtx *xop)
    HOST_WIDE_INT add = 0, sub = 0;
    int msize = GET_MODE_SIZE (mode);

-  AVR_LdSt_Props ap { REGNO (base), store_p, volatile_p, 
ADDR_SPACE_GENERIC };
+  AVR_LdSt_Props ap { (int) REGNO (base), store_p, volatile_p,
+                     ADDR_SPACE_GENERIC };