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 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.
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.
# 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)