This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug optimization/10620] for(i=25000;i;i--) {} generates wrong assembly source in avr-gcc with -O2
- From: gcc-bugzilla at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 May 2003 22:59:19 -0000
- Subject: [Bug optimization/10620] for(i=25000;i;i--) {} generates wrong assembly source in avr-gcc with -O2
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
PLEASE REPLY TO gcc-bugzilla@gcc.gnu.org ONLY, *NOT* gcc-bugs@gcc.gnu.org.
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=10620
------- Additional Comments From dhazeghi@yahoo.com 2003-05-21 22:59 -------
Hello,
I certainly don't know much about avr asm. With gcc 3.2.3 and 3.3 branch, I see the same code
that you mention (.L10 etc.) generated. With mainline (20030520), I see the following:
.L8:
subi r18,lo8(-(-50))
sbci r19,hi8(-(-50))
brne .L8
Is this assembly also faulty? Thanks,
Dara
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.