Follow-up Comment #1, bug #18565 (project avr-libc):
Yes, it is. However, this is not an Avr-libc bug, this is an Avr-gcc bug
in case of builtin memset() function.
I have try a set of versions:
avr-gcc 3.3.5 - OK, loop counter is separate register pare
avr-gcc 3.4.4, 4.0.2, 4.1 (prerelease) - false code.
Compiler options: -W -Wall -Os -S
Test program:
void * memset (void *buf, int val, unsigned int n);
void foo (void)
{
memset ((char *)0x4000, 0, 0x4000);
}
To author: whether you can to open this bug at gcc-bugzilla?
P.S. Personaly, I use for end products the 3.3 branch in general. :-)
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?18565>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
_______________________________________________
AVR-libc-dev mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/avr-libc-dev