[LLVMbugs] [Bug 4518] New: weakref emits undef symbol

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Jul 7 22:50:40 PDT 2009


           Summary: weakref emits undef symbol
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: nicholas at mxc.ca
                CC: llvmbugs at cs.uiuc.edu, nlewycky at google.com

Consider this program short C program:

  int target_func(unsigned long);
  static int bad_func(unsigned long)
  extern void foo(int);

  void user() {
    if (bad_func) {
    } else {

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.

More information about the llvm-bugs mailing list