From: Paul Eggert Date: Wed, 17 Dec 2014 01:57:23 +0000 (-0800) Subject: stdalign: port better to HP compilers X-Git-Tag: v1.0~7220 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=95c5407b3b9ab9504be976cded95c85f6ae851e4;p=gnulib.git 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. --- diff --git a/ChangeLog b/ChangeLog index a2c5645919..877a721554 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2014-12-16 Paul Eggert + 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 diff --git a/m4/stdalign.m4 b/m4/stdalign.m4 index 2b1f90eaa6..f60257f16a 100644 --- a/m4/stdalign.m4 +++ b/m4/stdalign.m4 @@ -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];