[all-commits] [llvm/llvm-project] 798fe3: [PowerPC][AIX] Fix Zero-width bit fields wrt MaxFi...

Steven Wan via All-commits all-commits at lists.llvm.org
Mon Jul 12 12:32:42 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 798fe3c774a1af75c8735933ded749fa62f39594
      https://github.com/llvm/llvm-project/commit/798fe3c774a1af75c8735933ded749fa62f39594
  Author: Steven Wan <wanyu9511 at gmail.com>
  Date:   2021-07-12 (Mon, 12 Jul 2021)

  Changed paths:
    M clang/lib/AST/RecordLayoutBuilder.cpp
    M clang/test/Layout/aix-bitfield-alignment.c
    A clang/test/Layout/aix-packed-bitfields.c

  Log Message:
  -----------
  [PowerPC][AIX] Fix Zero-width bit fields wrt MaxFieldAlign.

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.

Reviewed By: ZarkoCA

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




More information about the All-commits mailing list