diff options
author | denisc <denisc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-04 16:34:11 +0000 |
---|---|---|
committer | denisc <denisc@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-09-04 16:34:11 +0000 |
commit | a700e283776f66a7ccaa6be1b1cfba34f424fbcf (patch) | |
tree | 627bebbf11e8bea4eebf5be38d7aa3f574b5d8a3 /gcc/config/avr/avr.c | |
parent | 26befabfb630f8cf2e27f140ff79a867e29dcdb9 (diff) | |
download | gcc-a700e283776f66a7ccaa6be1b1cfba34f424fbcf.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@227496 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/avr/avr.c')
-rw-r--r-- | gcc/config/avr/avr.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/config/avr/avr.c b/gcc/config/avr/avr.c index bec9a8bb788..9f5bc88ce30 100644 --- a/gcc/config/avr/avr.c +++ b/gcc/config/avr/avr.c @@ -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)) |