gcc/ChangeLog
        PR c/118118
        * doc/extend.texi (Boolean Type): New section.
---
 gcc/doc/extend.texi | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 76fb210060d..d2bf6048be7 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -12944,6 +12944,7 @@ C and/or C++ standards, while others remain specific to 
GNU C.
 * Offsetof::            Special syntax for @code{offsetof}.
 * Alignment::           Determining the alignment of a function, type or 
variable.
 * Enum Extensions::     Forward declarations and specifying the underlying 
type.
+* Boolean Type::       Support for the @code{_Bool} keyword.
 * Variadic Macros::     Macros with a variable number of arguments.
 * Conditionals::        Omitting the middle operand of a @samp{?:} expression.
 * Case Ranges::         `case 1 ... 9' and such.
@@ -13698,6 +13699,17 @@ Forward-declaring an incomplete enum type without an 
explicit
 underlying type is supported as an extension in all GNU C dialects,
 but is not supported at all in GNU C++.
 
+@node Boolean Type
+@subsection Support for the @code{_Bool} Type
+@cindex boolean type
+@cindex @code{_Bool} keyword
+
+The C99 standard added @code{_Bool} as a C language keyword naming the
+boolean type.  As an extension, GNU C also recognizes @code{_Bool} in
+C90 mode as well as with @option{-std=c99} and later.
+
+GNU C++ does not support the @code{_Bool} keyword.
+
 @node Variadic Macros
 @subsection Macros with a Variable Number of Arguments.
 @cindex variable number of arguments
-- 
2.34.1

Reply via email to