[all-commits] [llvm/llvm-project] 9b10e2: [PowerPC][AIX] Warn when using pragma align(packed...

Sean Fertile via All-commits all-commits at lists.llvm.org
Wed Sep 29 08:55:19 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b10e2b1cf01b37f441d83ebc41d2c2f9f81831e
      https://github.com/llvm/llvm-project/commit/9b10e2b1cf01b37f441d83ebc41d2c2f9f81831e
  Author: Sean Fertile <sd.fertile at gmail.com>
  Date:   2021-09-29 (Wed, 29 Sep 2021)

  Changed paths:
    M clang/include/clang/Basic/DiagnosticSemaKinds.td
    M clang/lib/Sema/SemaDecl.cpp
    A clang/test/Sema/aix-pragma-align-packed-warn.c

  Log Message:
  -----------
  [PowerPC][AIX] Warn when using pragma align(packed) on AIX.

With xlc and xlC pragma align(packed) will pack bitfields the same way
as pragma align(bit_packed). xlclang, xlclang++ and clang will
pack bitfields the same way as pragma pack(1). Issue a warning when
source code using pragma align(packed) is used to alert the user it
may not be compatable with xlc/xlC.

Differential Revision: https://reviews.llvm.org/D107506




More information about the All-commits mailing list