http://llvm.org/bugs/show_bug.cgi?id=4523
Summary: llvm-gcc generates symbol for weakref
Product: tools
Version: trunk
Platform: Macintosh
OS/Version: MacOS X
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
This code shouldn't generate an alias on Darwin (note that it should on Linux).
int target_func(unsigned long);
static int bad_func(unsigned long)
__attribute__((__weakref__("target_func")));
extern void foo(int);
void user() {
if (bad_func) {
foo(0);
} else {
foo(1);
}
}
which generates:
declare extern_weak i32 @bad_func(i32)
define void @user() nounwind {
entry:
br i1 icmp ne (i32 (i32)* @bad_func, i32 (i32)* null), label %bb, label
%bb1
[...]
it shouldn't mention bad_func at all. If you patch this, please be sure not to
change the behaviour on Linux...
--
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