[LLVMbugs] [Bug 2989] New: weak attribute improper handled when return type is pointer type

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Oct 30 20:32:04 PDT 2008


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

           Summary: weak attribute improper handled when return type is
                    pointer type
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llvm-gcc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: yliang6 at illinois.edu
                CC: llvmbugs at cs.uiuc.edu


int * __attribute__((weak)) foo(int * x) {
    return x;
}

llvm-gcc warns ``'weak' attribute ignored'', and llvm-nm shows "T foo".


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