[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 5 12:28:00 GMT 2017


https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81305

--- Comment #1 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Wed Jul  5 12:28:19 2017
New Revision: 249995

URL: https://gcc.gnu.org/viewcvs?rev=249995&root=gcc&view=rev
Log:
gcc/
        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".
        * testsuite/gcc.target/avr/torture/isr-01-simple.c: New test.
        * testsuite/gcc.target/avr/torture/isr-02-call.c: New test.
        * testsuite/gcc.target/avr/torture/isr-03-fixed.c: New test.

Added:
    trunk/gcc/testsuite/gcc.target/avr/torture/isr-01-simple.c
    trunk/gcc/testsuite/gcc.target/avr/torture/isr-02-call.c
    trunk/gcc/testsuite/gcc.target/avr/torture/isr-03-fixed.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c


More information about the Gcc-bugs mailing list