public inbox for
help / color / mirror / Atom feed
* gcc-wwwdocs branch master updated. caa5dc6995aac2c7dc1a139e1a021927faaf73eb
@ 2022-03-25 23:12 Joseph Myers
  0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2022-03-25 23:12 UTC (permalink / raw)
  To: gcc-cvs-wwwdocs

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gcc-wwwdocs".

The branch, master has been updated
       via  caa5dc6995aac2c7dc1a139e1a021927faaf73eb (commit)
      from  e870a90578545e04dea26cd9d9aa32dff2212834 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit caa5dc6995aac2c7dc1a139e1a021927faaf73eb
Author: Joseph Myers <>
Date:   Fri Mar 25 23:12:16 2022 +0000

    Add release notes for new C2X features in GCC 12

diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html
index 9cff81b9..689feeba 100644
--- a/htdocs/gcc-12/changes.html
+++ b/htdocs/gcc-12/changes.html
@@ -193,6 +193,27 @@ a work-in-progress.</p>
+<h3 id="c">C</h3>
+  <li>Some new features from the upcoming C2X revision of the ISO C
+  standard are supported with <code>-std=c2x</code>
+  and <code>-std=gnu2x</code>.  Some of these features are also
+  supported as extensions when compiling for older language versions.
+  In addition to the features listed, some features previously
+  supported as extensions and now added to the C standard are enabled
+  by default in C2X mode and not diagnosed with <code>-std=c2x
+  -Wpedantic</code>.
+  <ul>
+    <li>Digit separators (as in C++) are supported for C2X.</li>
+    <li>The <code>#elifdef</code> and <code>#elifndef</code>
+    preprocessing directives are now supported.</li>
+    <li>The <code>printf</code> and <code>scanf</code> format checking
+    with <code>-Wformat</code> now supports the <code>%b</code> format
+    specified by C2X for binary integers, and the <code>%B</code>
+    format recommended by C2X for <code>printf</code>.
+  </ul></li>
 <h3 id="cxx">C++</h3>
   <li>Several C++23 features have been implemented:


Summary of changes:
 htdocs/gcc-12/changes.html | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2022-03-25 23:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-25 23:12 gcc-wwwdocs branch master updated. caa5dc6995aac2c7dc1a139e1a021927faaf73eb Joseph Myers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).