[LLVMbugs] [Bug 3572] New: missing __attribute__((__used__))

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Feb 13 04:54:47 PST 2009


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

           Summary: missing __attribute__((__used__))
           Product: clang
           Version: unspecified
          Platform: PC
        OS/Version: Linux
            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


clang ignore __used__ attribute which prevents FreeBSD kernel from linking. the
generated scterm-teken.o contains zero symbols and then linker complains about
missing symbols.

lev /tmp$ cc -c -std=c99 scterm-teken.c && nm scterm-teken.o | wc -l
In file included from ../../../dev/syscons/scterm-teken.c:37,
                 from ../../../dev/syscons/scterm-teken.c:2:
../../../sys/systm.h:159: warning: conflicting types for built-in function
'log'
      56

lev /tmp$ ccc -c -std=c99 scterm-teken.c && nm scterm-teken.o | wc -l

... warnings ...

       0

please test the attached


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