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

           Summary: undefined reference in generating native Linux x86-32
                    code
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: new bugs
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=4068)
 --> (http://llvm.org/bugs/attachment.cgi?id=4068)
Test case

Attached is the BitCode from a simple test program I have.
The program is essentially:
  for(i=10; i>0; i--) {printf("%d\n", i);}

Using the head version of LLVM, if I do
  lli bad.bc
it works properly.
However, I tried it on Linux x86-32, and it fails to assemble
the generated .s file with:
  bad.bc:(.text+0x17): undefined reference to `__unnamed_0'

With a slightly older version of LLVM, I got an invalid
optimization that caused it to segfault right away.
However, it worked properly with optimizations turned off.


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