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: [email protected]
        ReportedBy: [email protected]
                CC: [email protected]


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

Reply via email to