From: Paul Eggert Date: Thu, 12 Dec 2019 18:16:13 +0000 (-0800) Subject: stdalign: port to xlclang 16.01 X-Git-Tag: v1.0~4513 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=c39f9e1ad7f0b795bf09ed7c323a89077a8b4382;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index 6f4f764de7..a22fa72290 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2019-12-12 Paul Eggert + + 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 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)))