avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] ATmega2560 and gcc __prologue_saves__


From: Anatoly Sokolov
Subject: Re: [avr-gcc-list] ATmega2560 and gcc __prologue_saves__
Date: Mon, 14 Jul 2008 23:36:11 +0400

Hello.

> I've stumbled across another problem with ATmega2560 support.  Although
> the problem is triggered from avr-libc, I believe this to be a gcc
> problem.
> 
> Then the do_rand() calls __prologue_saves__.  That function saves the
> appropriate registers, but then assembles an EIJUMP without setting the
> proper value in EIND.  This wouldn't matter on anything *but* an
> ATmega2560.  On my code, EIND = 0 (because I've never made an EICALL to
> set EIND = 1) so the code jumps into lower flash and I'm dead.

This bug fixed in GCC mainline:

Patch AVR: fix call prologue saves for avr6 - commited.
http://gcc.gnu.org/ml/gcc-patches/2008-05/msg01611.html

Anatoly.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]