This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug optimization/10620] for(i=25000;i;i--) {} generates wrong assembly source in avr-gcc with -O2


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]