This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.
- From: "gjl at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Wed, 26 Jul 2017 14:23:03 +0000
- Subject: [Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.
- Auto-submitted: auto-generated
- References: <bug-81305-4@http.gcc.gnu.org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81305
--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Wed Jul 26 14:22:31 2017
New Revision: 250576
URL: https://gcc.gnu.org/viewcvs?rev=250576&root=gcc&view=rev
Log:
gcc/
Backport from 2017-07-05 trunk r249995.
PR target/81305
* config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
Don't depend on "optimize > 0".
(out_movhi_r_mr, out_movqi_mr_r): Same.
(out_movhi_mr_r, out_movqi_r_mr): Same.
(avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
io_address_operand on "optimize > 0".
gcc/testsuite/
Backport from 2017-07-05 trunk r249995, r249996.
PR target/81305
* gcc.target/avr/isr-test.h: New file.
* gcc.target/avr/torture/isr-01-simple.c: New test.
* gcc.target/avr/torture/isr-02-call.c: New test.
* gcc.target/avr/torture/isr-03-fixed.c: New test.
Added:
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/isr-test.h
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/torture/isr-01-simple.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/torture/isr-02-call.c
branches/gcc-6-branch/gcc/testsuite/gcc.target/avr/torture/isr-03-fixed.c
Modified:
branches/gcc-6-branch/gcc/ChangeLog
branches/gcc-6-branch/gcc/config/avr/avr.c
branches/gcc-6-branch/gcc/testsuite/ChangeLog