From: Paul Eggert Date: Tue, 6 Sep 2016 21:26:05 +0000 (-0700) Subject: stdalign: correct mistake in alignof doc X-Git-Tag: v1.0~6657 X-Git-Url: https://gitweb.git.savannah.gnu.org/gitweb/?a=commitdiff_plain;h=775dbeeb1146e4ff658f0e087546c977f02931aa;p=gnulib.git stdalign: correct mistake in alignof doc Problem reported by Joseph Myers in: https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits alignof(S) where S is a structure containing a flexible array member. The Gnulib substitute does not support this, but C11 does. --- diff --git a/ChangeLog b/ChangeLog index b99af4e9f0..c9513a897d 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,12 @@ +2016-09-06 Paul Eggert + + stdalign: correct mistake in alignof doc + Problem reported by Joseph Myers in: + https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html + * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits + alignof(S) where S is a structure containing a flexible array + member. The Gnulib substitute does not support this, but C11 does. + 2016-08-18 Pino Toscano main.mk: remove sc_program_name, since there is no more need to diff --git a/doc/posix-headers/stdalign.texi b/doc/posix-headers/stdalign.texi index f7953065b8..4f2833a5a4 100644 --- a/doc/posix-headers/stdalign.texi +++ b/doc/posix-headers/stdalign.texi @@ -30,10 +30,9 @@ parenthesized type. Recent versions of GCC support an extension in which the operand can also be a unary expression, as with @code{sizeof}. The Gnulib substitute does not support this extension. @item -In ISO C11, the operand of @code{alignof}/@code{_Alignof} must be a -complete type. Recent versions of GCC support an extension in which -the operand can also be structure type containing a flexible array -member. The Gnulib substitute does not support this extension. +On most pre-C11 platforms, the operand of +@code{alignof}/@code{_Alignof} cannot be a structure type containing a +flexible array member. @item @code{_Alignas} and @code{alignas} are not always supported; on platforms lacking support, the