[PATCH] D87029: [AIX] Implement AIX special bitfield related alignment rules

Xiangling Liao via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Sep 2 07:24:55 PDT 2020


Xiangling_L created this revision.
Xiangling_L added reviewers: jasonliu, hubert.reinterpretcast.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
Xiangling_L requested review of this revision.

1.[bool, char, short] bitfields have the same alignment as unsigned int
2.Adjust alignment on typedef field decls/honor align attribute
3.Fix alignment for scoped enum class
4.Long long bitfield has 4bytes alignment and StorageUnitSize under 32 bit compile mode
5.Emit error for oversized bitfield under 32bit mode


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D87029

Files:
  clang/lib/AST/RecordLayoutBuilder.cpp
  clang/lib/Sema/SemaDecl.cpp
  clang/test/Layout/aix-bitfield-alignment.cpp
  clang/test/Layout/aix-oversized-bitfield.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87029.289442.patch
Type: text/x-patch
Size: 14647 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200902/499d8d6d/attachment-0001.bin>


More information about the cfe-commits mailing list