[PATCH] D107506: [PowerPC][AIX] Warn when using pragma align(packed) on AIX.
Chris Bowler via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 5 19:38:54 PDT 2021
cebowleratibm 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;
----------------
It's undesirable to warn for each bitfield member. Perhaps diagnose this in Sema::ActOnTagFinishDefinition?
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