# HG changeset patch # User Paul Eggert # Date 1320160975 25200 # Node ID 5a444545ea59c6bdeed71ed03ea8480ee40cc7a9 # Parent 3389dd4f050ed8801768333d95ee10505ea888c3 * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8. mingw supports alignments only up to 8 (!). Reported by Bruno Haible in . * doc/posix-headers/stdalign.texi (stdalign.h): Document this. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-11-01 Paul Eggert + + * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8. + mingw supports alignments only up to 8 (!). Reported by Bruno Haible in + . + * doc/posix-headers/stdalign.texi (stdalign.h): Document this. + 2011-11-01 Bruno Haible alignof: Avoid collision with stdalign module. diff --git a/doc/posix-headers/stdalign.texi b/doc/posix-headers/stdalign.texi --- 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. diff --git a/tests/test-stdalign.c b/tests/test-stdalign.c --- 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)