<html>
<head>
<base href="https://llvm.org/bugs/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW --- - Need MSVC manging for __unaligned qualifiers"
href="https://llvm.org/bugs/show_bug.cgi?id=27132">27132</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Need MSVC manging for __unaligned qualifiers
</td>
</tr>
<tr>
<th>Product</th>
<td>clang
</td>
</tr>
<tr>
<th>Version</th>
<td>trunk
</td>
</tr>
<tr>
<th>Hardware</th>
<td>PC
</td>
</tr>
<tr>
<th>OS</th>
<td>Windows NT
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>normal
</td>
</tr>
<tr>
<th>Priority</th>
<td>P
</td>
</tr>
<tr>
<th>Component</th>
<td>C++
</td>
</tr>
<tr>
<th>Assignee</th>
<td>unassignedclangbugs@nondot.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>andreybokhanko@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>dgregor@apple.com, llvm-bugs@lists.llvm.org
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr></table>
<p>
<div>
<pre>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</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are on the CC list for the bug.</li>
</ul>
</body>
</html>