]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign: port to xlclang 16.01
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Dec 2019 18:16:13 +0000 (10:16 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 12 Dec 2019 18:16:40 +0000 (10:16 -0800)
Problem reportd by Bruno Haible in:
https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
* lib/stdalign.in.h (_Alignas): Do not use __attribute__
((__aligned__ (...))) with xlclang, as a top-level
‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
xlclang version 16.01.0000.0001; the alignment directive is ignored.

ChangeLog
lib/stdalign.in.h

index 6f4f764de7c5eb52013ca7582e558b5f73d85f94..a22fa7229054b9915ae916bff1ff4d62f6e0ca80 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
+
+       stdalign: port to xlclang 16.01
+       Problem reportd by Bruno Haible in:
+       https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
+       * lib/stdalign.in.h (_Alignas): Do not use __attribute__
+       ((__aligned__ (...))) with xlclang, as a top-level
+       ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
+       xlclang version 16.01.0000.0001; the alignment directive is ignored.
+
 2019-12-12  Bruno Haible  <bruno@clisp.org>
 
        duplocale: Fix test failure on AIX 7.2 with xlclang.
index 5c2c72e2b299218754e9d5f7133afe81b5aa195c..257c33764c799823a83e666634523aa793cd656a 100644 (file)
 #  define _Alignas(a) alignas (a)
 # elif ((defined __APPLE__ && defined __MACH__                  \
          ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__)                 \
-         : __GNUC__)                                            \
+         : __GNUC__ && !defined __ibmxl__) \
         || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
         || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__)
 #  define _Alignas(a) __attribute__ ((__aligned__ (a)))