]> git.ipfire.org Git - thirdparty/gcc.git/commit
AVR: ipa/92606 - Don't optimize PROGMEM data against non-PROGMEM.
authorGeorg-Johann Lay <avr@gjlay.de>
Fri, 3 May 2024 16:47:50 +0000 (18:47 +0200)
committerGeorg-Johann Lay <avr@gjlay.de>
Tue, 7 May 2024 10:27:30 +0000 (12:27 +0200)
commit231728b6dd7684e031f2a05e7e43bab54b7f2c5e
tree7871378727403bcaa7bcc4d834c3fd6047042dea
parent4f2a927c65c0e55a348ae8b4f6f3c61afba60d32
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.

(cherry picked from commit 08e752e72363ae7fd5a5fcb70913a0f7b240387b)
gcc/config/avr/avr.cc
gcc/testsuite/gcc.target/avr/torture/pr92606.c [new file with mode: 0644]