[LLVMbugs] [Bug 3661] New: ccc -O1 miscompiles git

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 24 09:05:38 PST 2009


           Summary: ccc -O1 miscompiles git
           Product: libraries
           Version: trunk
          Platform: PC
               URL: http://pastie.textmate.org/private/dzzobqfokiltcqh5uoiem
        OS/Version: MacOS X
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Interprocedural Optimizations
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: frimmirf at gmail.com
                CC: llvmbugs at cs.uiuc.edu

When compiling git and running the test suite with `make CC=ccc CFLAGS="-O1"
test`, it fails on test 2050.

Apparently, the return value of a function gets messed up -- I pasted a summary
on http://pastie.textmate.org/private/dzzobqfokiltcqh5uoiema .

When compiling with -O0 everything works as expected. -O1 fails too.

This happens on OS X Leopard with trunk clang and llvm, but also with llvm-gcc
in /Developer/usr/bin

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.

More information about the llvm-bugs mailing list