[Top][All Lists]

[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


> 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.


reply via email to

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