On Thursday 08 March 2007 09:41, Shaun Jackman wrote:
> On 3/7/07, Eric Weddington <[EMAIL PROTECTED]> wrote:
> > Hi Shaun,
> >
> > Thanks a lot for doing the leg work on this!
> >
> > But I have a favor to ask: Can you find out approximately *when* this got
> > fixed? i.e., can you test 4.1.2, and the current 4.2.x branch to see if
> > it's fixed at either of those two points?

Hi.

Avr-gcc 4.1.2 is correct.

Possible, this is the GCC bug #28386: "Wrong code with
if condition in loop", opened at Jul 2006.
It was fixed at Sep 2006.
See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28386

I have try the file of this bug from GCC testsuite: 20060905-1.c
Avr-gcc 4.1.1 (pure release) gives incorrect result. More,
this result is depended of RAM start address, i.e. it may
be different for different chips.
Avr-gcc 4.1.2 gives correct code (although not the smallest).

Dmitry.



_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to