Mercurial > hg > octave-jordi > gnulib-hg
changeset 16015:5a444545ea59
* tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
mingw supports alignments only up to 8 (!). Reported by Bruno Haible in
<http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
* doc/posix-headers/stdalign.texi (stdalign.h): Document this.
author | Paul Eggert <eggert@cs.ucla.edu> |
---|---|
date | Tue, 01 Nov 2011 08:22:55 -0700 |
parents | 3389dd4f050e |
children | 20b12d88965f |
files | ChangeLog doc/posix-headers/stdalign.texi tests/test-stdalign.c |
diffstat | 3 files changed, 13 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-11-01 Paul Eggert <eggert@cs.ucla.edu> + + * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8. + mingw supports alignments only up to 8 (!). Reported by Bruno Haible in + <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>. + * doc/posix-headers/stdalign.texi (stdalign.h): Document this. + 2011-11-01 Bruno Haible <bruno@clisp.org> alignof: Avoid collision with stdalign module.
--- a/doc/posix-headers/stdalign.texi +++ b/doc/posix-headers/stdalign.texi @@ -29,6 +29,9 @@ variables on the stack). They diagnose and ignore the alignment: Sun C 5.11. @item +Some linkers do not support operands of @code{_Alignas}/@code{alignas} +that are greater than 8: mingw. +@item Some compilers require the operand of @code{_Alignas}/@code{alignas} to be a single integer constant, not an expression: MSVC 7.0 through at least 10.0.
--- a/tests/test-stdalign.c +++ b/tests/test-stdalign.c @@ -43,7 +43,9 @@ # ifndef alignas # error "alignas is not a macro" # endif -# define TEST_ALIGNMENT 16 +/* mingw can go up only to 8. 8 is all that GNU Emacs needs, so let's + limit the test to 8 for now. */ +# define TEST_ALIGNMENT 8 #else # define _Alignas(alignment) # define alignas(alignment)