[llvm-bugs] [Bug 27132] New: Need MSVC manging for __unaligned qualifiers

via llvm-bugs llvm-bugs at lists.llvm.org
Wed Mar 30 06:59:02 PDT 2016


https://llvm.org/bugs/show_bug.cgi?id=27132

            Bug ID: 27132
           Summary: Need MSVC manging for __unaligned qualifiers
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Windows NT
            Status: NEW
          Severity: normal
          Priority: P
         Component: C++
          Assignee: unassignedclangbugs at nondot.org
          Reporter: andreybokhanko at gmail.com
                CC: dgregor at apple.com, llvm-bugs at lists.llvm.org
    Classification: Unclassified

Clang doesn't mangle MS-specific __unaligned qualifier:

$ cat H:/test.cpp
int __unaligned * foo1() { return 0; }


MS compiler:

$ cl.exe H:/test.cpp -c
Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x64
Copyright (C) Microsoft Corporation.  All rights reserved.

test.cpp

$ dumpbin /symbols test.obj
Microsoft (R) COFF/PE Dumper Version 14.00.23506.0
Copyright (C) Microsoft Corporation.  All rights reserved.


Dump of file test.obj
...
008 00000000 SECT3  notype ()    External     | ?foo1@@YAPEFAHXZ (int
__unaligned * __cdecl foo1(void))


Clang:

$ clang-cl H:/test.cpp -c

$ dumpbin /symbols test.obj
Microsoft (R) COFF/PE Dumper Version 12.00.31101.0
Copyright (C) Microsoft Corporation.  All rights reserved


Dump of file test.obj
...
00C 00000000 SECT1  notype ()    External     | ?foo1@@YAPEAHXZ (int * __cdecl
foo1(void))


(note there is no 'F' in Clang version)

Yours,
Andrey
=====
Software Engineer
Intel Compiler Team

-- 
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/20160330/7c7f7ce9/attachment.html>


More information about the llvm-bugs mailing list