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.htmlAnatoly.
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@...
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list