[libcxx-commits] [PATCH] D112087: [libc++][AIX] Alignment of bool on AIX is 1

Sean Fertile via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Wed Nov 10 07:30:35 PST 2021


sfertile updated this revision to Diff 386158.
sfertile added a comment.

Rebased to trigger CI.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D112087

Files:
  libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp


Index: libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
===================================================================
--- libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
+++ libcxx/test/std/utilities/meta/meta.unary.prop.query/alignment_of.pass.cpp
@@ -6,9 +6,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-// Fails for 32-bit builds on AIX.
-// UNSUPPORTED: LIBCXX-AIX-FIXME
-
 // type_traits
 
 // alignment_of
@@ -54,8 +51,8 @@
     // we should expect. In most cases it should be 8. But in i386 builds
     // with Clang >= 8 or GCC >= 8 the value is '4'.
     test_alignment_of<double, TEST_ALIGNOF(double)>();
-#if (defined(__ppc__) && !defined(__ppc64__))
-    test_alignment_of<bool, 4>();   // 32-bit PPC has four byte bool
+#if (defined(__ppc__) && !defined(__ppc64__) && !defined(_AIX))
+    test_alignment_of<bool, 4>();   // 32-bit PPC has four byte bool, except on AIX.
 #else
     test_alignment_of<bool, 1>();
 #endif


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112087.386158.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211110/c4f6de93/attachment.bin>


More information about the libcxx-commits mailing list