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: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected]
    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.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to