]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign: port better to HP compilers
authorPaul Eggert <eggert@cs.ucla.edu>
Wed, 17 Dec 2014 01:57:23 +0000 (17:57 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 18 Dec 2014 20:49:14 +0000 (12:49 -0800)
* m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
__HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.

ChangeLog
m4/stdalign.m4

index a2c56459199116601e61d84a398cc673ad267417..877a72155490d105fd9676509efc680de96ce912 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
 
+       stdalign: port better to HP compilers
+       * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
+       __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
+
        stdalign: work around Apple GCC 4.0 bug
        Reported by David Fang in:
        http://lists.gnu.org/archive/html/bug-gnulib/2014-12/msg00194.html
index 2b1f90eaa6dfa8d7cccf21892036c0087d2b91aa..f60257f16ab7ad17d7ba18b528f6e9410188f2da 100644 (file)
@@ -35,8 +35,9 @@ AC_DEFUN([gl_STDALIGN_H],
                  || (defined __APPLE__ && defined __MACH__ \
                      ? 4 < __GNUC__ + (1 <= __GNUC_MINOR__) \
                      : __GNUC__) \
-                 || __IBMC__ || __IBMCPP__ || __ICC \
-                 || 0x5110 <= __SUNPRO_C || 1300 <= _MSC_VER)
+                 || __HP_cc || __HP_aCC || __IBMC__ || __IBMCPP__ \
+                 || __ICC || 0x5110 <= __SUNPRO_C \
+                 || 1300 <= _MSC_VER)
               struct alignas_test { char c; char alignas (8) alignas_8; };
               char test_alignas[offsetof (struct alignas_test, alignas_8) == 8
                                 ? 1 : -1];