[patch,avr] Fir PR91910: ICE for bad attribute "address".

Georg-Johann Lay avr@gjlay.de
Mon Aug 21 12:55:00 GMT 2017


"address" attribute only must be specified with VARs,
yet the compiler dived into attribute analysis for
non-VARs, resulting in ICE.

This patch also adds OPT_Wattributes as warning filter.

Ok to apply?

Johann

gcc/
	PR target/81910
	* config/avr/avr.c (avr_handle_addr_attribute): Early return if
	not VAR_P. Filter attribute warnings with OPT_Wattributes.
	(avr_attribute_table) <io, io_low, address>: Initialize
	.decl_required with true.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pr81910.diff
Type: text/x-patch
Size: 2972 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20170821/a31e090d/attachment.bin>


More information about the Gcc-patches mailing list