From: Paul Eggert Date: Tue, 1 Nov 2011 15:22:55 +0000 (-0700) Subject: * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8. X-Git-Tag: v0.1~1511 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=086fbef22c89b68e37680edd5b00211f96d6e1de;p=gnulib.git * 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 index 1c6d1f0b10..7a1eac5b21 100644 --- 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 index c5fbc5f284..9d2499a108 100644 --- a/doc/posix-headers/stdalign.texi +++ b/doc/posix-headers/stdalign.texi @@ -29,6 +29,9 @@ Some compilers do not support alignment via 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 index c1d86775ae..66a2040e5e 100644 --- a/tests/test-stdalign.c +++ b/tests/test-stdalign.c @@ -43,7 +43,9 @@ verify (__alignas_is_defined == 1); # 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)