[LLVMbugs] [Bug 3606] New: undefined symbol with -O2

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Feb 17 13:29:10 PST 2009


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

           Summary: undefined symbol with -O2
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: FreeBSD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: LLVM Codegen
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rdivacky at freebsd.org
                CC: llvmbugs at cs.uiuc.edu


hi.. I am getting this:

witten /tmp# ccc -c -O0 acpi_wakeup.c
ccc: Unknown host 'freebsd', using generic host information.
witten /tmp# nm acpi_wakeup.o | grep r_ds
00000030 b r_ds
witten /tmp# ccc -c -O1 acpi_wakeup.c
ccc: Unknown host 'freebsd', using generic host information.
witten /tmp# nm acpi_wakeup.o | grep r_ds
         U r_ds
witten /tmp# 

when the optimization is turned on the symbol is optimized out, this is most
likely llvm bug.

test case attached

this prevents i386 freebsd kernel from linking


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