* [committed] wwwdocs: Add release notes for new C2X features in GCC 12
@ 2022-03-25 23:13 Joseph Myers
0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2022-03-25 23:13 UTC (permalink / raw)
To: gcc-patches
Committed.
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>
</li>
</ul>
+<h3 id="c">C</h3>
+<ul>
+ <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>
+</ul>
+
<h3 id="cxx">C++</h3>
<ul>
<li>Several C++23 features have been implemented:
--
Joseph S. Myers
joseph@codesourcery.com
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-25 23:13 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:13 [committed] wwwdocs: Add release notes for new C2X features in GCC 12 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).