Commit b52ec220 by Senthil Kumar Selvaraj Committed by Denis Chertykov

re PR target/65210 ([avr] ICE: when using attributs 'address' and 'io_low')

gcc/ChangeLog

	PR target/65210
	* config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
	attribute as well.

gcc/testsuite/ChangeLog

	PR target/65210
	* gcc.target/avr/pr65210.c: New test.

From-SVN: r227496
parent c79c59f0
2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR target/65210
* config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
attribute as well.
2015-09-04 Tom de Vries <tom@codesourcery.com>
* doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
......
......@@ -9069,6 +9069,8 @@ avr_eval_addr_attrib (rtx x)
if (SYMBOL_REF_FLAGS (x) & SYMBOL_FLAG_IO)
{
attr = lookup_attribute ("io", DECL_ATTRIBUTES (decl));
if (!attr || !TREE_VALUE (attr))
attr = lookup_attribute ("io_low", DECL_ATTRIBUTES (decl));
gcc_assert (attr);
}
if (!attr || !TREE_VALUE (attr))
......
2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
PR target/65210
* gcc.target/avr/pr65210.c: New test.
2015-09-04 H.J. Lu <hongjiu.lu@intel.com>
PR testsuite/67450
......
/* { dg-do compile } */
/* This testcase exposes PR65210. Usage of the io_low attribute
causes assertion failure because code only looks for the io
attribute if SYMBOL_FLAG_IO is set. */
volatile char q __attribute__((io_low,address(0x81)));
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment