]> Savannah Git Hosting - gnulib.git/commitdiff
stdalign: correct mistake in alignof doc
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Sep 2016 21:26:05 +0000 (14:26 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 6 Sep 2016 21:26:43 +0000 (14:26 -0700)
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.

ChangeLog
doc/posix-headers/stdalign.texi

index b99af4e9f08e100681d31020758e75af678b625b..c9513a897d3f457b96cd179879337066b9e8cce4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
+
+       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  <ptoscano@redhat.com>
 
        main.mk: remove sc_program_name, since there is no more need to
index f7953065b87614ce788a0be4ef6b51bf2453b25c..4f2833a5a4bd41508994b6275e265d9fc87f1b10 100644 (file)
@@ -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