[LLVMbugs] [Bug 4133] New: clang: symbol declared as always_inline and extern considered internal
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Sun May 3 04:01:46 PDT 2009
http://llvm.org/bugs/show_bug.cgi?id=4133
Summary: clang: symbol declared as always_inline and extern
considered internal
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: edwintorok at gmail.com
CC: llvmbugs at cs.uiuc.edu
Blocks: 4068
The kernel fails to link:
net/unix/af_unix.c:(.text+0x6d779): undefined reference to `mutex_lock'
net/built-in.o: In function `unix_dgram_recvmsg':
net/unix/af_unix.c:(.text+0x6e9af): undefined reference to `mutex_lock'
net/built-in.o: In function `unix_autobind':
net/unix/af_unix.c:(.text+0x6f30f): undefined reference to `mutex_lock'
net/built-in.o: In function `unix_stream_recvmsg':
net/unix/af_unix.c:(.text+0x70531): undefined reference to `mutex_lock'
net/unix/af_unix.c:(.text+0x70966): undefined reference to `mutex_lock
Testcase:
$ gcc -c testcase-min.i -o x.o
0000000000000000 T mutex_lock
$ clang testcase-min.i -c -o x.o
$ nm x.o
$ clang testcase-min.i -c -o x.o -std=gnu89
$ nm x.o
$ cat testcase-min.i
void inline __attribute__ ((always_inline))
__attribute__ ((__section__ (".sched.text"))) mutex_lock (struct mutex
*lock)
{
}
extern
typeof (mutex_lock)
mutex_lock;
--
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