]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign: restore previous behavior for HP-UX IA64
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Mar 2017 05:35:02 +0000 (22:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Mar 2017 05:35:35 +0000 (22:35 -0700)
See Bruno Haible's email in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
which cites p 150 of a manual saying that 'aligned' works on Itanium.
* lib/stdalign.in.h (_Alignas):
Assume the '061200' applies to Itanium, not to PA-RISC.
* m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.

ChangeLog
lib/stdalign.in.h
m4/stdalign.m4

index b0529b58dd82b48891b1092986f2b871a0c39e6b..396b0b8538511468ee538ce2c39ab7e28af6e38f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
+
+       stdalign: restore previous behavior for HP-UX IA64
+       See Bruno Haible's email in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00066.html
+       which cites p 150 of a manual saying that 'aligned' works on Itanium.
+       * lib/stdalign.in.h (_Alignas):
+       Assume the '061200' applies to Itanium, not to PA-RISC.
+       * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
+
 2017-03-17  Bruno Haible  <bruno@clisp.org>
 
        stat-time, timespec: Support use of the header files in C++ mode.
index f6f419000c242ef867bed28a477494f3a3069d95..1b6d8cbb5cd47017f15e5266b9575d777aa2c8f3 100644 (file)
 # elif ((defined __APPLE__ && defined __MACH__                  \
          ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__)                 \
          : __GNUC__)                                            \
-        || 061200 <= __HP_aCC                                   \
+        || (__ia64 && (061200 <= __HP_cc || 061200 <= __HP_aCC)) \
         || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__)
 #  define _Alignas(a) __attribute__ ((__aligned__ (a)))
 # elif 1300 <= _MSC_VER
index 5c15ef01c0053a0228e537707e67f1b22a044791..a7572a3c5cec7f3435e5cad293b82c41055a2519 100644 (file)
@@ -35,8 +35,8 @@ AC_DEFUN([gl_STDALIGN_H],
                  || (defined __APPLE__ && defined __MACH__ \
                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
                      : __GNUC__) \
-                 || __HP_aCC || __IBMC__ || __IBMCPP__ \
-                 || __ICC || 0x5110 <= __SUNPRO_C \
+                 || (__ia64 && (061200 <= __HP_cc || 061200 <= __HP_aCC)) \
+                 || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
                  || 1300 <= _MSC_VER)
               struct alignas_test { char c; char alignas (8) alignas_8; };
               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8