[PATCH] D18596: [MSVC] PR27132: Proper mangling for __unaligned qualifier
Andrey Bokhanko via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 6 02:01:09 PDT 2016
andreybokhanko added a comment.
In http://reviews.llvm.org/D18596#392341, @majnemer wrote:
> In http://reviews.llvm.org/D18596#392098, @andreybokhanko wrote:
>
> > Do we want to do this for an ignored qualifier? I don't see any practical purpose.
>
>
> It's not ignored for Windows on ARM.
Hmmm... MS documentation <https://msdn.microsoft.com/en-us/library/ms177389.aspx> explicitly mentions IPF only:
> When you declare a pointer with the __unaligned modifier, the compiler assumes that the pointer addresses data that is not aligned. Consequently, for an application that targets an Itanium Processor Family (IPF) computer, the compiler generates code that reads the unaligned data one byte at a time.
OK, I will implement _unaligned as a qualifier, if you think this is the right way to go. Note, though, that it will remain ignored, as there is no support for _unaligned in LLVM IR.
Andrey
http://reviews.llvm.org/D18596
More information about the cfe-commits
mailing list