[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 10:03:12 PST 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGe068c84762ac: [libc++][AIX] Alignment of bool on AIX is 1 (authored by sfertile).

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.386218.patch
Type: text/x-patch
Size: 1040 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20211110/5b35907f/attachment.bin>


More information about the libcxx-commits mailing list