[PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier
Andrey Bokhanko via cfe-commits
cfe-commits at lists.llvm.org
Fri Apr 8 06:56:05 PDT 2016
andreybokhanko updated this revision to Diff 53022.
andreybokhanko added a comment.
This patch implements "__unaligned" as a qualifier (as per David Majnemer's request).
Most of the changes are miscellaneous small stuff one has to add when adding a new qualifier.
Other notable things are:
- One bit is stolen from "AddressSpace" to store __unaligned. This resulted in changes in OpenCL code and tests, that implicitly assumed that AddressSpace size is 24 bits.
- Sema checks added. It verifies that __unaligned can be used with non-pointers, for overloading and that it doesn't get recognized without -fms-compatibility option.
- Proper mangling (along with tests) for __unaligned added. Note that non-pointer __unaligned args don't affect mangling.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 22226 bytes
Desc: not available
More information about the cfe-commits