bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] stdalign: port to older HP and IBM cc


From: Paul Eggert
Subject: [PATCH] stdalign: port to older HP and IBM cc
Date: Wed, 10 Feb 2016 14:57:42 -0800

* lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
C compilers, by checking their version numbers.  These version
numbers appear in MariaDB and in Qt code that dates way back and
that conditiionally uses the 'aligned' attribute.
---
 ChangeLog         | 8 ++++++++
 lib/stdalign.in.h | 4 ++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 9d58175..d2cb956 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-02-10  Paul Eggert  <address@hidden>
+
+       stdalign: port to older HP and IBM cc
+       * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
+       C compilers, by checking their version numbers.  These version
+       numbers appear in MariaDB and in Qt code that dates way back and
+       that conditiionally uses the 'aligned' attribute.
+
 2016-02-09  Paul Eggert  <address@hidden>
 
        stdalign: port to clang 3.7.0
diff --git a/lib/stdalign.in.h b/lib/stdalign.in.h
index 7ce33a0..1f48846 100644
--- a/lib/stdalign.in.h
+++ b/lib/stdalign.in.h
@@ -103,8 +103,8 @@
 # elif ((defined __APPLE__ && defined __MACH__                  \
          ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__)                 \
          : __GNUC__)                                            \
-        || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__        \
-        || __ICC || 0x590 <= __SUNPRO_C)
+        || 061200 <= __HP_cc || 061200 <= __HP_aCC                \
+        || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__)
 #  define _Alignas(a) __attribute__ ((__aligned__ (a)))
 # elif 1300 <= _MSC_VER
 #  define _Alignas(a) __declspec (align (a))
-- 
2.5.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]