http://llvm.org/bugs/show_bug.cgi?id=2262
Chris Lattner <[EMAIL PROTECTED]> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Keywords| |miscompilation
Resolution| |FIXED
--- Comment #6 from Chris Lattner <[EMAIL PROTECTED]> 2008-04-29 12:29:52 ---
Second fix here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20080428/061771.html
We now get:
_main:
subl $12, %esp
xorl %eax, %eax
movl _g_1, %ecx
.align 4,0x90
LBB3_1: ## bb
addl $5, %ecx
movl %ecx, _g_1
incl %eax
cmpl $10, %eax
movl _g_1, %ecx
jne LBB3_1 ## bb
LBB3_2: ## bb11
movl $_.str, (%esp)
call _puts
xorl %eax, %eax
addl $12, %esp
ret
with llvm-gcc -Os -S t.c -Wall -o - -static -fomit-frame-pointer, which I
believe to be right.
Thanks!
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs