This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/52461] [avr] XMEGA+EBI: RAMPZ clobbered while reading from flash
- 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, 07 Mar 2012 10:33:24 +0000
- Subject: [Bug target/52461] [avr] XMEGA+EBI: RAMPZ clobbered while reading from flash
- Auto-submitted: auto-generated
- References: <bug-52461-4@http.gcc.gnu.org/bugzilla/>
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