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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM but I have a strong preference that clang/test/Layout/aix-packed-bitfields.c be committed separately if my understanding is right.
clang/test/Layout/aix-bitfield-alignment.c | ||
---|---|---|
236 | nit: I prefer having these test cases together with the other #pragma align/pack test cases. | |
clang/test/Layout/aix-packed-bitfields.c | ||
2 | AFAIU this test case is not affected by your changes here. Maybe commit this as a separate NFC patch? |
nit: I prefer having these test cases together with the other #pragma align/pack test cases.