diff options
author | Georg-Johann Lay <avr@gjlay.de> | 2024-10-01 20:25:26 +0200 |
---|---|---|
committer | Georg-Johann Lay <avr@gjlay.de> | 2024-10-01 20:28:51 +0200 |
commit | 5e41e8fd86794319f05eb1d76822021786b81a91 (patch) | |
tree | 7b6e082d749d7c1e90e203ff2969db2d694c9fe1 /gcc/config/avr | |
parent | ac4cdf5cb43c0b09e81760e2a1902ceebcf1a135 (diff) | |
download | gcc-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.cc | 3 |
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) { |