[PATCH] D105635: [PowerPC][AIX] Fix Zero-width bit fields wrt MaxFieldAlign.

Sean Fertile via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Jul 8 08:05:30 PDT 2021


sfertile created this revision.
sfertile added reviewers: stevewan, Jake-Egan, daltenty.
sfertile added a project: PowerPC.
Herald added subscribers: shchenz, nemanjai.
sfertile requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

On AIX when there is a pragma pack, or pragma align in effect then zero-width bitfields should pad out to the end of the bitfield container but not increase the alignment requirements of the struct greater then the max field align.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D105635

Files:
  clang/lib/AST/RecordLayoutBuilder.cpp
  clang/test/Layout/aix-bitfield-alignment.c
  clang/test/Layout/aix-packed-bitfields.c

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D105635.357226.patch
Type: text/x-patch
Size: 4340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20210708/450713a0/attachment.bin>


More information about the cfe-commits mailing list