]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign tests: Skip test with AIX xlclang.
authorBruno Haible <bruno@clisp.org>
Thu, 20 Aug 2020 22:43:57 +0000 (00:43 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 20 Aug 2020 22:43:57 +0000 (00:43 +0200)
* tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.

ChangeLog
tests/test-stdalign.c

index a9adf9755729d5d4ddc9d13e210f6f9547e33b8e..82ee4897d4ccfc0f720ad8dcb944ede78de5742e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2020-08-20  Bruno Haible  <bruno@clisp.org>
+
+       stdalign tests: Skip test with AIX xlclang.
+       * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
+
 2020-08-20  Bruno Haible  <bruno@clisp.org>
 
        stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
index 65e5c6a42bb1ce4130d3fc4f82fc51a31d993e5d..64511683580b5ac8f5fa6f32586d0132cdf8ce27 100644 (file)
@@ -89,6 +89,11 @@ main ()
      https://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html  */
   fputs ("Skipping test: known HP-UX Itanium cc compiler bug\n", stderr);
   return 77;
+#elif defined __clang__ && defined __ibmxl__
+  /* Avoid a test failure with IBM xlc 16.1.  It ignores alignas (8),
+     _Alignas (8), and __attribute__ ((__aligned__ (8))).  */
+  fputs ("Skipping test: known AIX XL C compiler deficiency\n", stderr);
+  return 77;
 #else
   CHECK_ALIGNED (static_char_alignas);
   CHECK_ALIGNED (static_char_Alignas);