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

Chris Bowler via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 5 10:22:02 PDT 2021


cebowleratibm added inline comments.


================
Comment at: clang/lib/Sema/SemaAttr.cpp:238
+    if (this->Context.getTargetInfo().getTriple().isOSAIX())
+      Diag(PragmaLoc, diag::warn_pragma_align_not_xl_compatible);
     Action = Sema::PSK_Push_Set;
----------------
Does this diagnostic need to be emitted for any struct or only structs that contain bitfield members?  As it is it will be very verbose.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D107506



More information about the cfe-commits mailing list