]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign: port to older HP and IBM cc
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Feb 2016 22:56:32 +0000 (14:56 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Wed, 10 Feb 2016 22:57:08 +0000 (14:57 -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
lib/stdalign.in.h

index 9d5817525a1a9ca385a11ef5ee660e48a8971de5..d2cb9562cfa8556f823f3afb30ec439dc45cb3d0 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <eggert@cs.ucla.edu>
 
        stdalign: port to clang 3.7.0
index 7ce33a005398c5477241131fc639584217aed58a..1f488460ca159a0b7a9b8186f0d142b2a66b7a17 100644 (file)
 # 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))