[LLVMbugs] [Bug 9065] New: Small incompatibility in "#pragma GCC visibility push"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed Jan 26 21:39:32 PST 2011


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

           Summary: Small incompatibility in "#pragma GCC visibility push"
           Product: clang
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Frontend
        AssignedTo: unassignedclangbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu


Compiling
-----------------------------------
//void bar(void);
#pragma GCC visibility push(hidden)
//void bar(void);
void foo()
{
        bar();
}
----------------------------------
with -fPIC, both clang and gcc will produce a R_X86_64_PLT32 relocation if the
first declaration in uncommented and a R_X86_64_PC32 if the second one. They
disagree if both are commented, gcc will produce a R_X86_64_PLT32 and clang a
R_X86_64_PC32.

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