Mercurial > hg > octave-nkf > gnulib-hg
changeset 17838:eac9c3308ec8
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 | 399c34835df9 |
children | 1b65e3c73dae |
files | ChangeLog m4/stdalign.m4 |
diffstat | 2 files changed, 7 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- a/m4/stdalign.m4 +++ b/m4/stdalign.m4 @@ -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];