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

           Summary: debug info generates duplicate label
           Product: libraries
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Backend: X86
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


Created an attachment (id=2844)
 --> (http://llvm.org/bugs/attachment.cgi?id=2844)
c++ testcase

The attached delta-reduced test program produces bad assembly when built with
debug info:

$ llvm-g++ y.c -g
/tmp/cc5eEOy7.s: Assembler messages:
/tmp/cc5eEOy7.s:79: Error: symbol `.Llabel11' is already defined
$ llvm-g++ y.c
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x20): undefined reference to `main'
collect2: ld returned 1 exit status

Not sure if it's llvm-gcc's fault for producing bad debug info in the first
place or a backend bug, so I'm filing it as a backend bug.

This happens on x86-64 linux.


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