This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug target/81305] [avr] avrtiny uses LDS for SREG in ISR routines which is out of range of LDS.


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

--- Comment #3 from Georg-Johann Lay <gjl at gcc dot gnu.org> ---
Author: gjl
Date: Wed Jul  5 12:49:08 2017
New Revision: 249998

URL: https://gcc.gnu.org/viewcvs?rev=249998&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-7-branch/gcc/testsuite/gcc.target/avr/isr-test.h
    branches/gcc-7-branch/gcc/testsuite/gcc.target/avr/torture/isr-01-simple.c
    branches/gcc-7-branch/gcc/testsuite/gcc.target/avr/torture/isr-02-call.c
    branches/gcc-7-branch/gcc/testsuite/gcc.target/avr/torture/isr-03-fixed.c
Modified:
    branches/gcc-7-branch/gcc/ChangeLog
    branches/gcc-7-branch/gcc/config/avr/avr.c
    branches/gcc-7-branch/gcc/testsuite/ChangeLog

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]