https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118000
--- Comment #1 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Georg-Johann Lay <g...@gcc.gnu.org>: https://gcc.gnu.org/g:c94ac10ffc422d4c9a28266b1340382d69518464 commit r15-6175-gc94ac10ffc422d4c9a28266b1340382d69518464 Author: Georg-Johann Lay <a...@gjlay.de> Date: Thu Dec 12 16:13:39 2024 +0100 AVR: target/118000 - Fix copymem from address-spaces. * rampz_rtx et al. were missing MEM_VOLATILE_P. This is needed because avr_emit_cpymemhi is setting RAMPZ explicitly with an own insn. * avr_out_cpymem was missing a final RAMPZ = 0 on EBI devices. This only affects the __flash1 ... __flash5 spaces since the other ASes use different routines, gcc/ PR target/118000 * config/avr/avr.cc (avr_init_expanders) <sreg_rtx> <rampd_rtx, rampx_rtx, rampy_rtx, rampz_rtx>: Set MEM_VOLATILE_P. (avr_out_cpymem) [ELPM && EBI]: Restore RAMPZ to 0 after.