[LLVMbugs] [Bug 20898] New: #pragma redefine_extname does not decorate target symbol
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Sep 10 11:48:46 PDT 2014
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: unassignedclangbugs at nondot.org
Reporter: amine.khaldi at reactos.org
CC: llvmbugs at cs.uiuc.edu
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20140910/dfb4a82b/attachment.html>
More information about the llvm-bugs
mailing list