From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1105) id 4B98B3857C68; Fri, 5 Feb 2021 21:57:05 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B98B3857C68 To: gcc-cvs-wwwdocs@gcc.gnu.org Subject: gcc-wwwdocs branch master updated. 78c88ff346945a6ed643ccf589b55068edcace0e X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: bfc68f3f88406a07757d111a0f894426a6bc4522 X-Git-Newrev: 78c88ff346945a6ed643ccf589b55068edcace0e Message-Id: <20210205215705.4B98B3857C68@sourceware.org> Date: Fri, 5 Feb 2021 21:57:05 +0000 (GMT) From: Joseph Myers X-BeenThere: gcc-cvs-wwwdocs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-cvs-wwwdocs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Feb 2021 21:57:05 -0000 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 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.

and -j to -H. +

C

+
    +
  • Several new features from the upcoming C2X revision of the ISO C + standard are supported with -std=c2x + and -std=gnu2x. 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 -std=c2x + -Wpedantic. +
      +
    • The BOOL_MAX and BOOL_WIDTH macros + are provided in <limits.h>.
    • +
    • As in C++, function definitions no longer need to give names + for unused function parameters.
    • +
    • The expansions of the true and false + macros in <stdbool.h> have changed so that they + have type bool.
    • +
    • The [[nodiscard]] standard attribute is now + supported.
    • +
    • The __has_c_attribute preprocessor operator is + now supported.
    • +
    • Macros INFINITY, NAN, FLT_SNAN, + DBL_SNAN, LDBL_SNAN, DEC_INFINITY, + DEC_NAN, and corresponding signaling NaN macros for + _FloatN, _FloatNx + and _DecimalN types, are provided + in <float.h>. There are also corresponding + built-in functions __builtin_nansdN for + decimal signaling NaNs.
    • +
    • Macros FLT_IS_IEC_60559, DBL_IS_IEC_60559 + and LDBL_IS_IEC_60559 are provided + in <float.h>.
    • +
    • The feature test + macro __STDC_WANT_IEC_60559_EXT__ is supported + by <float.h>.
    • +
    • Labels may appear before declarations and at the end of a + compound statement.
    • +
  • +
+

C++

  • The default mode has been changed to -std=gnu++17.
  • ----------------------------------------------------------------------- Summary of changes: htdocs/gcc-11/changes.html | 41 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) hooks/post-receive -- gcc-wwwdocs