]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
AVR: avr-passes.cc - Fix a build warning.
authorGeorg-Johann Lay <avr@gjlay.de>
Tue, 1 Oct 2024 18:25:26 +0000 (20:25 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Tue, 1 Oct 2024 18:28:51 +0000 (20:28 +0200)
gcc/
* config/avr/avr-passes.cc (avr_split_fake_addressing_move): Fix
a build warning.

gcc/config/avr/avr-passes.cc

index ad913ddd4afc1524314396bb278ac6d0bb752240..205b490950d745326a33c9ae1f743677a731c9a6 100644 (file)
@@ -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 };
 
   switch (addr_code)
     {