public inbox for gcc-cvs-wwwdocs@sourceware.org
help / color / mirror / Atom feed
* gcc-wwwdocs branch master updated. 78c88ff346945a6ed643ccf589b55068edcace0e
@ 2021-02-05 21:57 Joseph Myers
  0 siblings, 0 replies; only message in thread
From: Joseph Myers @ 2021-02-05 21:57 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  78c88ff346945a6ed643ccf589b55068edcace0e (commit)
      from  bfc68f3f88406a07757d111a0f894426a6bc4522 (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 78c88ff346945a6ed643ccf589b55068edcace0e
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Fri Feb 5 21:55:11 2021 +0000

    Add release notes for new C2X features in GCC 11.
    
    Binary constants aren't mentioned individually in this list because
    they are covered by the general wording about features previously
    supported as extensions.  Allowing duplicate standard attributes isn't
    mentioned as it's considered a minor change of details of a feature
    supported in GCC 10, rather than a new feature.

diff --git a/htdocs/gcc-11/changes.html b/htdocs/gcc-11/changes.html
index a8b036c3..ba8180e8 100644
--- a/htdocs/gcc-11/changes.html
+++ b/htdocs/gcc-11/changes.html
@@ -232,6 +232,47 @@ a work-in-progress.</p>
       and <code>-j</code> to <code>-H</code>.</li>
 </ul>
 
+<h3 id="c">C</h3>
+<ul>
+  <li>Several 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>The <code>BOOL_MAX</code> and <code>BOOL_WIDTH</code> macros
+    are provided in <code>&lt;limits.h&gt;</code>.</li>
+    <li>As in C++, function definitions no longer need to give names
+    for unused function parameters.</li>
+    <li>The expansions of the <code>true</code> and <code>false</code>
+    macros in <code>&lt;stdbool.h&gt;</code> have changed so that they
+    have type <code>bool</code>.</li>
+    <li>The <code>[[nodiscard]]</code> standard attribute is now
+    supported.</li>
+    <li>The <code>__has_c_attribute</code> preprocessor operator is
+    now supported.</li>
+    <li>Macros <code>INFINITY</code>, <code>NAN</code>, <code>FLT_SNAN</code>,
+    <code>DBL_SNAN</code>, <code>LDBL_SNAN</code>, <code>DEC_INFINITY</code>,
+    <code>DEC_NAN</code>, and corresponding signaling NaN macros for
+    <code>_Float<i>N</i></code>, <code>_Float<i>N</i>x</code>
+    and <code>_Decimal<i>N</i></code> types, are provided
+    in <code>&lt;float.h&gt;</code>.  There are also corresponding
+    built-in functions <code>__builtin_nansd<i>N</i></code> for
+    decimal signaling NaNs.</li>
+    <li>Macros <code>FLT_IS_IEC_60559</code>, <code>DBL_IS_IEC_60559</code>
+    and <code>LDBL_IS_IEC_60559</code> are provided
+    in <code>&lt;float.h&gt;</code>.</li>
+    <li>The feature test
+    macro <code>__STDC_WANT_IEC_60559_EXT__</code> is supported
+    by <code>&lt;float.h&gt;</code>.</li>
+    <li>Labels may appear before declarations and at the end of a
+    compound statement.</li>
+  </ul></li>
+</ul>
+
 <h3 id="cxx">C++</h3>
 <ul>
   <li>The default mode has been changed to <code>-std=gnu++17</code>.</li>

-----------------------------------------------------------------------

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


hooks/post-receive
-- 
gcc-wwwdocs


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

only message in thread, other threads:[~2021-02-05 21:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-02-05 21:57 gcc-wwwdocs branch master updated. 78c88ff346945a6ed643ccf589b55068edcace0e 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).