[LLVMbugs] [Bug 3518] New: undefined reference to __compound_literal.*

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Mon Feb 9 10:32:06 PST 2009


           Summary: undefined reference to __compound_literal.*
           Product: tools
           Version: 2.5
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: jay.foad at antixlabs.com
                CC: llvmbugs at cs.uiuc.edu

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

The attached test case is taken from the GCC 4.2 testsuite. With llvm-gcc 2.5
(first prerelease) I get:

$ ~/llvm/llvm-gcc4.2-2.5-x86-linux-RHEL4/bin/llvm-gcc -O0 20050929-1.c 
/tmp/cce8mH7H.o:(.data+0x0): undefined reference to `__compound_literal.2'
/tmp/cce8mH7H.o:(.data+0x4): undefined reference to `__compound_literal.3'
collect2: ld returned 1 exit status

I don't get this error with either llvm-gcc 2.4 or any GCC 4.X (I've tried
debian lenny's 4.1.3, 4.2.4 and 4.3.2).

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