[LLVMbugs] [Bug 4523] New: llvm-gcc generates symbol for weakref

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Wed Jul 8 20:12:20 PDT 2009


           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: unassignedbugs at nondot.org
        ReportedBy: nlewycky at google.com
                CC: llvmbugs at cs.uiuc.edu

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)
  extern void foo(int);

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

which generates:

  declare extern_weak i32 @bad_func(i32)

  define void @user() nounwind {
    br i1 icmp ne (i32 (i32)* @bad_func, i32 (i32)* null), label %bb, label

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.

More information about the llvm-bugs mailing list