]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
c-family, docs: Adjust descriptions/documentation for C23 publication
authorJakub Jelinek <jakub@redhat.com>
Thu, 21 Nov 2024 08:40:37 +0000 (09:40 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 21 Nov 2024 08:40:37 +0000 (09:40 +0100)
As C23 has been published already https://www.iso.org/standard/82075.html
we don't need to say that it is expected to be published etc.

Furthermore, standards.texi was still documenting that -std=gnu17
is the default.

2024-11-21  Jakub Jelinek  <jakub@redhat.com>

gcc/
* doc/invoke.texi (-std=c23): Adjust documentation for
publication of the ISO/IEC 9899:2024 standard.
* doc/standards.texi: Likewise.  Document -std=gnu17 and
-std=gnu23 options.  Mention that -std=gnu23 rather than
-std=gnu17 is now the default for C.
gcc/c-family/
* c.opt (std=c23, std=gnu23, std=iso9899:2024): Adjust description
for publication of the ISO/IEC 9899:2024 standard.

gcc/c-family/c.opt
gcc/doc/invoke.texi
gcc/doc/standards.texi

index 220421accf476e637b9efb16db136591de6bd968..65cb8e5c6969b244bed75b39835c84088156795c 100644 (file)
@@ -2605,7 +2605,7 @@ Conform to the ISO 2017 C standard (published in 2018).
 
 std=c23
 C ObjC
-Conform to the ISO 2023 C standard draft (expected to be published in 2024).
+Conform to the ISO 2023 C standard (published in 2024).
 
 std=c2x
 C ObjC Alias(std=c23)
@@ -2707,7 +2707,7 @@ Conform to the ISO 2017 C standard (published in 2018) with GNU extensions.
 
 std=gnu23
 C ObjC
-Conform to the ISO 2023 C standard draft (expected to be published in 2024) with GNU extensions.
+Conform to the ISO 2023 C standard (published in 2024) with GNU extensions.
 
 std=gnu2x
 C ObjC Alias(std=gnu23)
@@ -2763,7 +2763,7 @@ Conform to the ISO 2017 C standard (published in 2018).
 
 std=iso9899:2024
 C ObjC Alias(std=c23)
-Conform to the ISO 2023 C standard draft (expected to be published in 2024).
+Conform to the ISO 2023 C standard (published in 2024).
 
 stdlib=
 Driver C++ ObjC++ Common Condition(ENABLE_STDLIB_OPTION) Var(flag_stdlib_kind) Joined Enum(stdlib_kind) RejectNegative Init(1)
index 8f53df7607a0f0060fa5f613effb1f9eff6d39fa..c62c6bc590305b29ef3bcc68b02f439778391921 100644 (file)
@@ -2479,8 +2479,8 @@ applied with @option{-std=c11}) and a new value of
 @item c23
 @itemx c2x
 @itemx iso9899:2024
-ISO C23, the 2023 revision of the ISO C standard (expected to be
-published in 2024).  The name @samp{c2x} is deprecated.
+ISO C23, the 2023 revision of the ISO C standard (published in 2024).  The
+name @samp{c2x} is deprecated.
 
 @item c2y
 The next version of the ISO C standard, still under development.  The
index 7e9b5891c1819f3bda9803bc4f23b30048a15e0e..7d9bc03b6b22dd3c722f6b2a0483ab37a1e7a5a4 100644 (file)
@@ -115,8 +115,8 @@ known as @dfn{C17} and is supported with @option{-std=c17} or
 @option{-std=c11}, and the only difference between the options is the
 value of @code{__STDC_VERSION__}.
 
-A fifth version of the C standard, known as @dfn{C23}, is
-expected to be published in 2024 as ISO/IEC 9899:2024.
+A fifth version of the C standard, known as @dfn{C23}, was published
+in 2024 as ISO/IEC 9899:2024.
 (While in development, drafts of this standard version were referred
 to as @dfn{C2X}.)  Support for this is
 enabled with @option{-std=c23} or @option{-std=iso9899:2024}.
@@ -136,11 +136,12 @@ Use of the
 they conflict with the C standard version selected.  You may also
 select an extended version of the C language explicitly with
 @option{-std=gnu90} (for C90 with GNU extensions), @option{-std=gnu99}
-(for C99 with GNU extensions) or @option{-std=gnu11} (for C11 with GNU
-extensions).  
+(for C99 with GNU extensions), @option{-std=gnu11} (for C11 with GNU
+extensions), @option{-std=gnu17} (for C17 with GNU extensions) or
+@option{-std=gnu23} (for C23 with GNU extensions).
 
 The default, if no C language dialect options are given,
-is @option{-std=gnu17}.
+is @option{-std=gnu23}.
 
 The ISO C standard defines (in clause 4) two classes of conforming
 implementation.  A @dfn{conforming hosted implementation} supports the