1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 20:23:11 +01:00

[PowerPC][AIX} FIx AIX bootstrap build.

A recent patch:
https://reviews.llvm.org/rGe0921655b1ff8d4ba7c14be59252fe05b705920e
changed clangs AIX bitfield handling to use 4-byte bitfield containers,
matching XLs behavior. This change triggers static assert failures when
bootstrapping. Change the macro we check to enable bitfield packing on
AIX to `__clang__` which is defined by both xlclang and clang.

Differential Revision: https://reviews.llvm.org/D103474
This commit is contained in:
Sean Fertile 2021-06-01 13:39:02 -04:00
parent e882499c5b
commit ffbb13fbef
2 changed files with 2 additions and 2 deletions

View File

@ -462,7 +462,7 @@ protected:
// SubclassData. These are designed to fit within a uint16_t so they pack
// with NodeType.
#if defined(_AIX) && (!defined(__GNUC__) || defined(__ibmxl__))
#if defined(_AIX) && (!defined(__GNUC__) || defined(__clang__))
// Except for GCC; by default, AIX compilers store bit-fields in 4-byte words
// and give the `pack` pragma push semantics.
#define BEGIN_TWO_BYTE_PACK() _Pragma("pack(2)")

View File

@ -513,7 +513,7 @@ public:
void validateInstrOrdering() const;
private:
#if defined(_AIX) && (!defined(__GNUC__) || defined(__ibmxl__))
#if defined(_AIX) && (!defined(__GNUC__) || defined(__clang__))
// Except for GCC; by default, AIX compilers store bit-fields in 4-byte words
// and give the `pack` pragma push semantics.
#define BEGIN_TWO_BYTE_PACK() _Pragma("pack(2)")