diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2019-12-12 10:16:13 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2019-12-12 10:16:40 -0800 |
commit | c39f9e1ad7f0b795bf09ed7c323a89077a8b4382 (patch) | |
tree | c4a53c5c6d35adb5dba6c2b7ff4d6bc82834902d | |
parent | fbfc2664030502c0cad8ba1ff6d8d328e3843509 (diff) | |
download | gnulib-c39f9e1ad7f0b795bf09ed7c323a89077a8b4382.tar.gz gnulib-c39f9e1ad7f0b795bf09ed7c323a89077a8b4382.tar.bz2 |
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.
-rw-r--r-- | ChangeLog | 10 | ||||
-rw-r--r-- | lib/stdalign.in.h | 2 |
2 files changed, 11 insertions, 1 deletions
@@ -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. diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h index 5c2c72e2b2..257c33764c 100644 --- a/lib/stdalign.in.h +++ b/lib/stdalign.in.h @@ -102,7 +102,7 @@ # 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))) |