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

            Bug ID: 20898
           Summary: #pragma redefine_extname does not decorate target
                    symbol
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
            Blocks: 6815
    Classification: Unclassified

Consider this testcase:

#pragma redefine_extname name _imp__name
extern int name;

extern int name2;
#pragma redefine_extname name2 _imp__name2

int f(void)
{
    return name + name2;
}


clang output:
00000003: A1 00 00 00 00     mov         eax,dword ptr [_imp__name]
00000008: 03 05 00 00 00 00  add         eax,dword ptr [_imp__name2]

gcc output:
00000003: 8B 15 00 00 00 00  mov         edx,dword ptr [_imp__name]
00000009: A1 00 00 00 00     mov         eax,dword ptr [__imp__name2]

Tested with
clang version 3.6.0 (217266)
Target: i686-pc-windows-gnu
Thread model: posix

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to