[PATCH] D107506: [PowerPC][AIX] Warn when using pragma align(packed) on AIX.

Sean Fertile via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 6 09:07:44 PDT 2021


sfertile marked an inline comment as done.
sfertile added inline comments.


================
Comment at: clang/test/Sema/aix-pragma-align-packed-warn.c:13
+  short a : 8;  // expected-warning {{#pragma align(packed) may not be compatible with objects generated with AIX XL C/C++}}
+  short b : 8;  // expected-warning {{#pragma align(packed) may not be compatible with objects generated with AIX XL C/C++}}
+  int c;
----------------
cebowleratibm wrote:
> It's undesirable to warn for each bitfield member.  Perhaps diagnose this in Sema::ActOnTagFinishDefinition?
Thanks for the suggestion Chris, I've moved it as suggested.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107506/new/

https://reviews.llvm.org/D107506



More information about the llvm-commits mailing list