[Bug target/52461] [avr] XMEGA+EBI: RAMPZ clobbered while reading from flash

gjl at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Wed Mar 7 10:34:00 GMT 2012


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52461

--- Comment #6 from Georg-Johann Lay <gjl at gcc dot gnu.org> 2012-03-07 10:33:24 UTC ---
Author: gjl
Date: Wed Mar  7 10:33:19 2012
New Revision: 185030

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=185030
Log:
libgcc/
    PR target/52461
    PR target/52508
    * config/avr/lib1funcs.S (__do_copy_data): Clear RAMPZ after usage
    if RAMPZ affects reading from RAM.
    (__tablejump_elpm__): Ditto.
    (.xload): Ditto.
    (__movmemx_hi): Ditto.
    (__do_global_ctors): Right condition for RAMPZ usage is "have ELPM".
    (__do_global_dtors): Ditto.
    (__xload_1, __xload_2, __xload_3, __xload_4): Ditto.
    (__movmemx_hi): Ditto.
gcc/    
    PR target/52461
    * gcc/config/avr/avr.c (avr_out_lpm): Clear RAMPZ after usage
    if RAMPZ affects reading from RAM.


Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/config/avr/avr.c
    trunk/libgcc/ChangeLog
    trunk/libgcc/config/avr/lib1funcs.S



More information about the Gcc-bugs mailing list