[patch][avr] PR92606: Disable -fipa-icf-variables because it generates wrong code.

Georg-Johann Lay avr@gjlay.de
Wed Dec 18 15:36:00 GMT 2019


Hi, this patch turns off -fipa-icf-variables because it generates wrong 
code like for PR92606.  As there is no target hook that could decide 
whether such optimizations are obsolete, disable such optimizations 
alltogether until PR92932 (target hook to disable such optimizations 
depending on object attributes and address-spcace) is available.

Ok to apply?

Johann


	Work around PR ipa/92932 by disabling -fipa-icf-variables until
	PR92932 will have been solved.

	PR ipa/92932
	PR target/92606
	* common/config/avr/avr-common.c (avr_option_optimization_table)
	<-fipa-icf-variables>: Disable.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr92606.diff
Type: text/x-patch
Size: 1025 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20191218/7ecccd71/attachment.bin>


More information about the Gcc-patches mailing list