http://llvm.org/bugs/show_bug.cgi?id=4518
Summary: weakref emits undef symbol
Product: tools
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: llvm-gcc
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected]
Consider this program short C program:
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);
}
}
This emits to LLVM @bad_func = alias weak ... @target_func and the @user
function references @bad_func. Instead the frontend should turn references to
@bad_func into references to @target_func and never emit the name 'bad_func' to
the LLVM IR.
--
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