Mercurial > gnulib
changeset 37518:7501392f6767
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.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 16 Dec 2014 17:57:23 -0800 |
parents | 070110cfc167 |
children | 4483d89bc1e8 |
files | ChangeLog m4/stdalign.m4 |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog Tue Dec 16 17:29:33 2014 -0800 +++ b/ChangeLog Tue Dec 16 17:57:23 2014 -0800 @@ -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
--- a/m4/stdalign.m4 Tue Dec 16 17:29:33 2014 -0800 +++ b/m4/stdalign.m4 Tue Dec 16 17:57:23 2014 -0800 @@ -35,8 +35,9 @@ || (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];