This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [patch,avr] Fir PR91910: ICE for bad attribute "address".
- From: Denis Chertykov <chertykov at gmail dot com>
- To: Georg-Johann Lay <avr at gjlay dot de>
- Cc: gcc-patches <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 21 Aug 2017 23:11:05 +0400
- Subject: Re: [patch,avr] Fir PR91910: ICE for bad attribute "address".
- Authentication-results: sourceware.org; auth=none
- References: <369a3ac9-88d6-cb43-0d8a-43d66f67c8b3@gjlay.de>
2017-08-21 16:35 GMT+04:00 Georg-Johann Lay <avr@gjlay.de>:
> "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?
Approved.
Please 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.