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