aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/avr
diff options
context:
space:
mode:
authorGeorg-Johann Lay <avr@gjlay.de>2024-10-01 20:25:26 +0200
committerGeorg-Johann Lay <avr@gjlay.de>2024-10-01 20:28:51 +0200
commit5e41e8fd86794319f05eb1d76822021786b81a91 (patch)
tree7b6e082d749d7c1e90e203ff2969db2d694c9fe1 /gcc/config/avr
parentac4cdf5cb43c0b09e81760e2a1902ceebcf1a135 (diff)
downloadgcc-5e41e8fd86794319f05eb1d76822021786b81a91.zip
gcc-5e41e8fd86794319f05eb1d76822021786b81a91.tar.gz
gcc-5e41e8fd86794319f05eb1d76822021786b81a91.tar.bz2
AVR: avr-passes.cc - Fix a build warning.
gcc/ * config/avr/avr-passes.cc (avr_split_fake_addressing_move): Fix a build warning.
Diffstat (limited to 'gcc/config/avr')
-rw-r--r--gcc/config/avr/avr-passes.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/config/avr/avr-passes.cc b/gcc/config/avr/avr-passes.cc
index ad913dd..205b490 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 };
switch (addr_code)
{