https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116295
--- 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:c4d3dba253b49fb0e8e32109783f76453bc53653 commit r15-2838-gc4d3dba253b49fb0e8e32109783f76453bc53653 Author: Georg-Johann Lay <a...@gjlay.de> Date: Thu Aug 8 18:31:16 2024 +0200 AVR: target/116295 - Fix unrecognizable insn with __flash read. Some loads from non-generic address-spaces are performed by libgcc calls, and they don't have a POST_INC form. Don't consider such insns when running -mfuse-add. PR target/116295 gcc/ * config/avr/avr.cc (Mem_Insn::Mem_Insn): Don't consider MEMs that are avr_mem_memx_p or avr_load_libgcc_p. gcc/testsuite/ * gcc.target/avr/torture/pr116295.c: New test.