[LLVMbugs] [Bug 15098] New: llc bug with -O0

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon Jan 28 16:52:39 PST 2013


http://llvm.org/bugs/show_bug.cgi?id=15098

             Bug #: 15098
           Summary: llc bug with -O0
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rkotler at mips.com
                CC: llvmbugs at cs.uiuc.edu
    Classification: Unclassified


If you compile with clang -O0, we get a link error on x86.

#include <stdio.h>
inline void foo(){
    printf("hello\n");
}

int main(){
    foo();
    return 0;
} 


rkotler at ubuntu-rkotler:~/testmips16/hf$ ~/llvm_3_2/install/bin/clang le1.c -O0
/tmp/le1-8cNxwM.o: In function `main':
le1.c:(.text+0x12): undefined reference to `foo'
clang: error: linker command failed with exit code 1 (use -v to see invocation)
rkotler at ubuntu-rkotler:~/testmips16/hf$

-- 
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