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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]
    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@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@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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to