[Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.
gjl at gcc dot gnu.org
gcc-bugzilla@gcc.gnu.org
Wed Jul 26 14:23:00 GMT 2017
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
More information about the Gcc-bugs
mailing list