diff mbox series

Update manual references for C17 having been published

Message ID alpine.DEB.2.21.1810172133280.27972@digraph.polyomino.org.uk
State New
Headers show
Series Update manual references for C17 having been published | expand

Commit Message

Joseph Myers Oct. 17, 2018, 9:33 p.m. UTC
This patch makes references in the manual to C17 reflect it having
been published in July 2018.  (For the reasons it took so long to get
to ballot and publication, see the WG14 convenor's report to the last
SC22 plenary - SC22 N5297 - where it references "A troubling new trend
where ISO CS has begun enforcing undocumented rules that are approved
neither by the TMB nor by the WG 14 editors, leading to a decrease in
the usefulness of standards documents.".)

Tested with "make info html pdf".  Applied to mainline.

2018-10-17  Joseph Myers  <joseph@codesourcery.com>

	* doc/invoke.texi (-std=c17), doc/standards.texi (C Language):
	Document C17 as published in 2018.

Comments

Jakub Jelinek Oct. 17, 2018, 9:42 p.m. UTC | #1
On Wed, Oct 17, 2018 at 09:33:44PM +0000, Joseph Myers wrote:
> This patch makes references in the manual to C17 reflect it having
> been published in July 2018.  (For the reasons it took so long to get
> to ballot and publication, see the WG14 convenor's report to the last
> SC22 plenary - SC22 N5297 - where it references "A troubling new trend
> where ISO CS has begun enforcing undocumented rules that are approved
> neither by the TMB nor by the WG 14 editors, leading to a decrease in
> the usefulness of standards documents.".)
> 
> Tested with "make info html pdf".  Applied to mainline.
> 
> 2018-10-17  Joseph Myers  <joseph@codesourcery.com>
> 
> 	* doc/invoke.texi (-std=c17), doc/standards.texi (C Language):
> 	Document C17 as published in 2018.

What about c-family/c.opt ?
std=c17
C ObjC
Conform to the ISO 2017 C standard (expected to be published in 2018).

std=c18
C ObjC Alias(std=c17)
Conform to the ISO 2017 C standard (expected to be published in 2018).

std=iso9899:2017
C ObjC Alias(std=c17)
Conform to the ISO 2017 C standard (expected to be published in 2018).

std=iso9899:2018
C ObjC Alias(std=c17)
Conform to the ISO 2017 C standard (expected to be published in 2018).

Shouldn't that be adjusted too?

	Jakub
Joseph Myers Oct. 17, 2018, 9:42 p.m. UTC | #2
Updates to c.opt now committed as well.

2018-10-17  Joseph Myers  <joseph@codesourcery.com>

	* c.opt (std=c17, std=c18, std=gnu17, std=gnu18, std=iso9899:2017)
	(std=iso9899:2018): Document C17 as published in 2018.

Index: c-family/c.opt
===================================================================
--- c-family/c.opt	(revision 265249)
+++ c-family/c.opt	(working copy)
@@ -1992,11 +1992,11 @@
 
 std=c17
 C ObjC
-Conform to the ISO 2017 C standard (expected to be published in 2018).
+Conform to the ISO 2017 C standard (published in 2018).
 
 std=c18
 C ObjC Alias(std=c17)
-Conform to the ISO 2017 C standard (expected to be published in 2018).
+Conform to the ISO 2017 C standard (published in 2018).
 
 std=c89
 C ObjC Alias(std=c90)
@@ -2062,11 +2062,11 @@
 
 std=gnu17
 C ObjC
-Conform to the ISO 2017 C standard (expected to be published in 2018) with GNU extensions.
+Conform to the ISO 2017 C standard (published in 2018) with GNU extensions.
 
 std=gnu18
 C ObjC Alias(std=gnu17)
-Conform to the ISO 2017 C standard (expected to be published in 2018) with GNU extensions.
+Conform to the ISO 2017 C standard (published in 2018) with GNU extensions.
 
 std=gnu89
 C ObjC Alias(std=gnu90)
@@ -2106,11 +2106,11 @@
 
 std=iso9899:2017
 C ObjC Alias(std=c17)
-Conform to the ISO 2017 C standard (expected to be published in 2018).
+Conform to the ISO 2017 C standard (published in 2018).
 
 std=iso9899:2018
 C ObjC Alias(std=c17)
-Conform to the ISO 2017 C standard (expected to be published in 2018).
+Conform to the ISO 2017 C standard (published in 2018).
 
 traditional
 Driver
diff mbox series

Patch

Index: gcc/doc/invoke.texi
===================================================================
--- gcc/doc/invoke.texi	(revision 265248)
+++ gcc/doc/invoke.texi	(working copy)
@@ -1927,8 +1927,8 @@ 
 @itemx c18
 @itemx iso9899:2017
 @itemx iso9899:2018
-ISO C17, the 2017 revision of the ISO C standard (expected to be
-published in 2018).  This standard is
+ISO C17, the 2017 revision of the ISO C standard
+(published in 2018).  This standard is
 same as C11 except for corrections of defects (all of which are also
 applied with @option{-std=c11}) and a new value of
 @code{__STDC_VERSION__}, and so is supported to the same extent as C11.
Index: gcc/doc/standards.texi
===================================================================
--- gcc/doc/standards.texi	(revision 265248)
+++ gcc/doc/standards.texi	(working copy)
@@ -102,7 +102,8 @@ 
 standard version were referred to as @dfn{C1X}.)
 GCC has substantially complete support
 for this standard, enabled with @option{-std=c11} or
-@option{-std=iso9899:2011}.  A version with corrections integrated is
+@option{-std=iso9899:2011}.  A version with corrections integrated was
+prepared in 2017 and published in 2018 as ISO/IEC 9899:2018; it is
 known as @dfn{C17} and is supported with @option{-std=c17} or
 @option{-std=iso9899:2017}; the corrections are also applied with
 @option{-std=c11}, and the only difference between the options is the