]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign: tweak version# and test for HP-UX IA64
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Mar 2017 16:34:23 +0000 (09:34 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 19 Mar 2017 16:34:46 +0000 (09:34 -0700)
Problems reported by Bruno Haible in:
http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
* lib/stdalign.in.h (_Alignas):
* m4/stdalign.m4 (gl_STDALIGN_H):
Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
used octal (as that is how they document it), but it is decimal in
practice now and the ancient implementations no longer matter.
* tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.

ChangeLog
lib/stdalign.in.h
m4/stdalign.m4
tests/test-stdalign.c

index ee9e0d329ee6ae9d5dcaf5110529e4483cccec32..ac212537b92461adc3bccfcaf0bea8be4e53682c 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,15 @@
+2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
+
+       stdalign: tweak version# and test for HP-UX IA64
+       Problems reported by Bruno Haible in:
+       http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html
+       * lib/stdalign.in.h (_Alignas):
+       * m4/stdalign.m4 (gl_STDALIGN_H):
+       Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
+       used octal (as that is how they document it), but it is decimal in
+       practice now and the ancient implementations no longer matter.
+       * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
+
 2017-03-19  Bruno Haible  <bruno@clisp.org>
 
        vma-iter: Add support for Solaris.
index 1b6d8cbb5cd47017f15e5266b9575d777aa2c8f3..21f49472f37ae58deca7a84eaf39bc8b36f7ce41 100644 (file)
 # elif ((defined __APPLE__ && defined __MACH__                  \
          ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__)                 \
          : __GNUC__)                                            \
-        || (__ia64 && (061200 <= __HP_cc || 061200 <= __HP_aCC)) \
+        || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
         || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__)
 #  define _Alignas(a) __attribute__ ((__aligned__ (a)))
 # elif 1300 <= _MSC_VER
index a7572a3c5cec7f3435e5cad293b82c41055a2519..0652a1e4af5deca541072288007033ceb3626767 100644 (file)
@@ -35,7 +35,7 @@ AC_DEFUN([gl_STDALIGN_H],
                  || (defined __APPLE__ && defined __MACH__ \
                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
                      : __GNUC__) \
-                 || (__ia64 && (061200 <= __HP_cc || 061200 <= __HP_aCC)) \
+                 || (__ia64 && (61200 <= __HP_cc || 61200 <= __HP_aCC)) \
                  || __ICC || 0x590 <= __SUNPRO_C || 0x0600 <= __xlC__ \
                  || 1300 <= _MSC_VER)
               struct alignas_test { char c; char alignas (8) alignas_8; };
index 8b44d6f1199f7dcab27ea524e7cc2644b291c3ba..c4b70e1d7313ca01ff8a326915e79bc5013f9eb5 100644 (file)
@@ -84,6 +84,11 @@ main ()
   /* Avoid a test failure due to Sun Studio Developer Bug Report #2125432.  */
   fputs ("Skipping test: known Sun C compiler bug\n", stderr);
   return 77;
+#elif defined __HP_cc && __ia64
+  /* Avoid a test failure due to HP-UX Itanium cc bug; see:
+     http://lists.gnu.org/archive/html/bug-gnulib/2017-03/msg00078.html  */
+  fputs ("Skipping test: known HP-UX Itanium cc compiler bug\n", stderr);
+  return 77;
 #else
   CHECK_ALIGNED (static_char_alignas);
   CHECK_ALIGNED (static_char_Alignas);