From 7dc41f3d1a34510ab7061dc86c585d2b7fbe6a40 Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 17 Oct 2018 22:33:30 +0100 Subject: [PATCH] Update manual references for C17 having been published. 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". * doc/invoke.texi (-std=c17), doc/standards.texi (C Language): Document C17 as published in 2018. From-SVN: r265249 --- gcc/ChangeLog | 5 +++++ gcc/doc/invoke.texi | 4 ++-- gcc/doc/standards.texi | 3 ++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d26780eb171..85bfe7f07b0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2018-10-17 Joseph Myers + + * doc/invoke.texi (-std=c17), doc/standards.texi (C Language): + Document C17 as published in 2018. + 2018-10-17 Eric Botcazou PR middle-end/87623 diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index 06a00a29de7..7b080767692 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -1927,8 +1927,8 @@ interfaces) and L (Analyzability). The name @samp{c1x} is deprecated. @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. diff --git a/gcc/doc/standards.texi b/gcc/doc/standards.texi index bde233ecdaa..bd9ff6bf822 100644 --- a/gcc/doc/standards.texi +++ b/gcc/doc/standards.texi @@ -102,7 +102,8 @@ in 2011 as ISO/IEC 9899:2011. (While in development, drafts of this 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 -- 2.30.2