[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] stdalign: correct mistake in alignof doc
From: |
Paul Eggert |
Subject: |
[PATCH] stdalign: correct mistake in alignof doc |
Date: |
Tue, 6 Sep 2016 14:27:30 -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 | 9 +++++++++
doc/posix-headers/stdalign.texi | 7 +++----
2 files changed, 12 insertions(+), 4 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index b99af4e..c9513a8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2016-09-06 Paul Eggert <address@hidden>
+
+ 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 <address@hidden>
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 f795306..4f2833a 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
address@hidden/@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
--
2.7.4
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] stdalign: correct mistake in alignof doc,
Paul Eggert <=