[ms-abi] Handle __declspec(align) on bitfields "properly"

Press ? to show keyboard shortcuts.
Committed
whuntJan 9 2014, 5:28 PM
Parents
rL198906: CGRecordLayoutBuilder.cpp: Clarify if-else. [-Wdangling-else]
Branches
Unknown
Tags
Unknown
Description

[ms-abi] Handle __declspec(align) on bitfields "properly"

__declspec(align), when applied to bitfields affects their perferred
alignment instead of their required alignment. We don't know why.
Also, #pragma pack(n) turns packing *off* if n is greater than the
pointer size. This is now observable because of the impact of
declspec(align) on bitfields.

rL198907

cfe/trunk/lib/AST/RecordLayoutBuilder.cpp

Loading...

cfe/trunk/test/Layout/ms-x86-pack-and-align.cpp

Loading...

Add Comment