https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92606
--- Comment #32 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:08e752e72363ae7fd5a5fcb70913a0f7b240387b commit r15-207-g08e752e72363ae7fd5a5fcb70913a0f7b240387b Author: Georg-Johann Lay <a...@gjlay.de> Date: Fri May 3 18:47:50 2024 +0200 AVR: ipa/92606 - Don't optimize PROGMEM data against non-PROGMEM. ipa/92606: Inter-procedural analysis optimizes data across address-spaces and PROGMEM. As of v14, the PROGMEM part is still not fixed (and there is still no target hook as proposed in PR92932). Just disable respective bogus optimization. PR ipa/92606 gcc/ * config/avr/avr.cc (avr_option_override): Set flag_ipa_icf_variables = 0. gcc/testsuite/ * gcc.target/avr/torture/pr92606.c: New test.