diff mbox series

Mention -std=c2x in GCC 9 release notes

Message ID alpine.DEB.2.21.1905022022100.17753@digraph.polyomino.org.uk
State New
Headers show
Series Mention -std=c2x in GCC 9 release notes | expand

Commit Message

Joseph Myers May 2, 2019, 8:22 p.m. UTC
This patch adds a mention of -std=c2x and associated options, and the
single new C2X feature supported (given the early stage of C2X
development when we left development stage 1), to the GCC 9 release
notes.

Committed.

Comments

Gerald Pfeifer May 3, 2019, 10:28 p.m. UTC | #1
On Thu, 2 May 2019, Joseph Myers wrote:
> This patch adds a mention of -std=c2x and associated options, and the
> single new C2X feature supported (given the early stage of C2X
> development when we left development stage 1), to the GCC 9 release
> notes.

Nice!  Thanks for doing this in time for the release.

Gerald
diff mbox series

Patch

Index: gcc-9/changes.html
===================================================================
RCS file: /cvs/gcc/wwwdocs/htdocs/gcc-9/changes.html,v
retrieving revision 1.61
diff -u -r1.61 changes.html
--- gcc-9/changes.html	2 May 2019 12:19:27 -0000	1.61
+++ gcc-9/changes.html	2 May 2019 20:18:44 -0000
@@ -402,6 +402,17 @@ 
 
 <h3 id="c">C</h3>
 <ul>
+  <li>There is now experimental support for <code>-std=c2x</code>, to
+  select support for the upcoming C2X revision of the ISO C
+  standard.  This standard is in the early stages of development and
+  the only feature supported in GCC 9 is <code>_Static_assert</code>
+  with a single argument (support for <code>_Static_assert</code> with two
+  arguments was added in C11 and GCC 4.6).  There are also new
+  options <code>-std=gnu2x</code>, for C2X with GNU extensions,
+  and <code>-Wc11-c2x-compat</code>, to warn for uses of features
+  added in C2X (such warnings are also enabled by use
+  of <code>-Wpedantic</code> if not using <code>-std=c2x</code>
+  or <code>-std=gnu2x</code>).</li>
   <li>New warnings:
   <ul>
     <li><a href="https://gcc.gnu.org/onlinedocs/gcc/Warning-Options.html#index-Wabsolute-value"><code>-Wabsolute-value</code></a>