opnsense-ports/devel/avr-gcc/files/patch-gcc_config_avr_avr.cc
Franco Fichtner 4bf7251dc9 */*: sync with upstream
Taken from: FreeBSD
2024-06-20 13:34:26 +02:00

16 lines
719 B
C++

index 510e4cea19f662f30d9474e4b208e3691103934c..74924ab0565779c597d10ee880548640a9dd59ae 100644 (file)
--- gcc/config/avr/avr.cc
+++ gcc/config/avr/avr.cc
@@ -1140,6 +1140,12 @@ avr_option_override (void)
if (targetm.addr_space.zero_address_valid (ADDR_SPACE_GENERIC))
flag_delete_null_pointer_checks = 0;
+ /* PR 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. */
+ flag_ipa_icf_variables = 0;
+
if (flag_pic == 1)
warning (OPT_fpic, "%<-fpic%> is not supported");
if (flag_pic == 2)