> -----Original Message-----
> From: Mikal Hart [mailto:mh...@sundial.com] 
> Sent: Sunday, January 04, 2009 8:38 PM
> To: Weddington, Eric; 'Joerg Wunsch'; AVR-libc-dev@nongnu.org
> Subject: RE: [avr-libc-dev] bug in 
> rand()/random()/do_rand()/do_random( )
> 
> > So far the evidence that you present points somehow to a 
> problem with
> 4.3.0, since this user said it works with 4.3.2. There are 
> known problems
> with 4.3.0 (for the AVR target) so I'm not totally surprised 
> that 4.3.2
> would fix it.
> 
> The only thing that makes me uneasy is that I don't see 
> exactly where the
> defective compiler comes into play.

Avr-libc is compiled with avr-gcc. The random functions in avr-libc are written 
in C, hence the generated code is dependent on the avr-gcc compiler. Avr-gcc 
4.3.0 has code generation problems that are known. Avr-gcc 4.3.2 fixes those 
code generation problems. So it is a matter of what version of avr-gcc was used 
to compile avr-libc.

Is that any clearer?


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

Reply via email to