[LLVMbugs] [Bug 2691] New: weak attribute ignored on alias

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Tue Aug 19 09:34:37 PDT 2008


http://llvm.org/bugs/show_bug.cgi?id=2691

           Summary: weak attribute ignored on alias
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: alenhar2 at uiuc.edu
                CC: llvmbugs at cs.uiuc.edu


The following code snippet does not make the symbol "smarter" a weak symbol, as
it does in gcc and clearly should.

#define cond(x) long x (void) __attribute__((weak, alias("dummy")))

long dummy(void) { return 0; }

cond(smarter);



relevent gcc output:
       .weak   smarter
        .set    smarter,dummy
relevent llvm-gcc output:
       .globl  smarter
        .set     smarter, dummy

relivent byte code:
   @smarter = alias i32 ()* @dummy         ; <i32 ()*> [#uses=0]


-- 
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