From patchwork Wed Nov 20 01:36:06 2019
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Joseph Myers
X-Patchwork-Id: 1197718
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@bilbo.ozlabs.org
Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized)
smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131;
helo=sourceware.org;
envelope-from=gcc-patches-return-514092-incoming=patchwork.ozlabs.org@gcc.gnu.org;
receiver=)
Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none)
header.from=codesourcery.com
Authentication-Results: ozlabs.org; dkim=pass (1024-bit key;
unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org
header.b="DGjBNya2"; dkim-atps=neutral
Received: from sourceware.org (server1.sourceware.org [209.132.180.131])
(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256
bits)) (No client certificate requested)
by ozlabs.org (Postfix) with ESMTPS id 47Hlf068Yhz9sPW
for ;
Wed, 20 Nov 2019 12:36:22 +1100 (AEDT)
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id
:list-unsubscribe:list-archive:list-post:list-help:sender:date
:from:to:subject:message-id:mime-version:content-type; q=dns; s=
default; b=bxpr9cCQRI/CAY/msaCGq9nEvOQJBkyf3S1ylRr1bAhueA+ioClqy
F7FvLZAIM2bwjZuY3E0ir19N6WESTntdGYkRX8qPdOizQoo5X2R8tHlcXzQX5ggU
Q7zqohJDTvjCKQq0KP0rZRjvxmgAffScuQ+VvGpWR7g11D/eKtaR/E=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id
:list-unsubscribe:list-archive:list-post:list-help:sender:date
:from:to:subject:message-id:mime-version:content-type; s=
default; bh=sCL6AaC/rTbSXLHdZal/oaBSH5I=; b=DGjBNya2XwZKVa9wgqHz
BZeQyetx/BIOUiFUNtEwyGY6boOfB0Qw6K1ImEpUsQWo2O1C4xbnh/hr7i+ZvElj
cobJnhwmI44CBf6NVoSW5f7PjhDyxprwbKzChoQM/xp0de+tSYlMITW5Vos5bOg1
6jx8u+4v+2JPBkV1oGafPw8=
Received: (qmail 46785 invoked by alias); 20 Nov 2019 01:36:15 -0000
Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm
Precedence: bulk
List-Id:
List-Unsubscribe:
List-Archive:
List-Post:
List-Help:
Sender: gcc-patches-owner@gcc.gnu.org
Delivered-To: mailing list gcc-patches@gcc.gnu.org
Received: (qmail 46773 invoked by uid 89); 20 Nov 2019 01:36:14 -0000
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-14.9 required=5.0 tests=AWL, BAYES_00,
GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3,
KAM_NUMSUBJECT, SPF_PASS autolearn=ham version=3.3.1 spammy=
X-HELO: esa4.mentor.iphmx.com
Received: from esa4.mentor.iphmx.com (HELO esa4.mentor.iphmx.com)
(68.232.137.252) by sourceware.org
(qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP;
Wed, 20 Nov 2019 01:36:13 +0000
IronPort-SDR:
7M/Kmbva8jEBAWYlzcmnOY7Z+UwxVRnsF3Nzm0P/CX68xAytn+YB0Uy6BAhkqAI2kQTdkVasqu
XElWSqW0XDc0BnaKGSKk5EBwyQw8imL4eOznkHEMUiKjHKWLd+xJPazGgmGL5X18fKHUrh+OKW
Z4zM6RqkV0gI1Suu1ICPXL1ve2sLdfojrgLUVIvo/Z2L1eXujZZCLg6GU1nyyRrxzxfu2CvDfg
0CUmRWA9aqkwPqJ8c3taENlX57wiZn7S8IOhy2RX6GIiKjriPafqcuEgb9SlznLNCTaX8GpTWB
Y5M=
Received: from orw-gwy-01-in.mentorg.com ([192.94.38.165]) by
esa4.mentor.iphmx.com with ESMTP; 19 Nov 2019 17:36:11 -0800
IronPort-SDR:
h+byCT2xydq+ZAUWm+oviAAhYEGiPUrSQZxr9InVsCl1tVm6J816gNtVplYc07M9kx2P81Akw5
+TfBedZmQU+Hk5gS7uOYoB/b7JYKHhGN7a+EeCbVjU3/bU4+B3Nm/ZiEEs0G4IYJDTTJSsIMrF
St0BFew+iSk3pbKTfojdVjXY4TqIW6drT/+CKtveh4a5Wb48wBFtgG9RFcF5rwDVF5y1QIRgRH
Wp8KDtQYWmMwqXfYfMM3oAGxdKeGKtEQggSGd6NpoS12o/p+ePkFLhEu0rHq1ScqehAIFl+O4N
g2s=
Date: Wed, 20 Nov 2019 01:36:06 +0000
From: Joseph Myers
To:
Subject: Add release notes for new C2X features in GCC 10
Message-ID:
User-Agent: Alpine 2.21 (DEB 202 2017-01-01)
MIME-Version: 1.0
I've committed this patch to add release notes for new C2X features in GCC
10.
diff --git a/htdocs/gcc-10/changes.html b/htdocs/gcc-10/changes.html
index 1e9c3f8d..52eb303c 100644
--- a/htdocs/gcc-10/changes.html
+++ b/htdocs/gcc-10/changes.html
@@ -63,6 +63,44 @@ a work-in-progress.
+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
[[]]
attribute syntax is supported, as in
+ C++. Existing attributes can be used with this syntax in forms
+ such as [[gnu::const]]
. The standard
+ attributes [[deprecated]]
, [[fallthrough]]
+ and [[maybe_unused]]
are supported.
+ - UTF-8 character constants using the
u8''
syntax
+ are supported.
+ <float.h>
defines
+ macros FLT_NORM_MAX
, DBL_NORM_MAX
+ and LDBL_NORM_MAX
.
+ - When decimal floating-point arithmetic is
+ supported,
<float.h>
defines
+ macros DEC32_TRUE_MIN
, DEC64_TRUE_MIN
+ and DEC128_TRUE_MIN
, in addition to the macros that
+ were previously only defined if __STDC_WANT_DEC_FP__
+ was defined before including <float.h>
.
+ - In C2X mode, empty parentheses in a function definition give
+ that function a type with a prototype for subsequent calls; other
+ old-style function definitions are diagnosed by default in C2X
+ mode.
+ - The
strftime
format checking supports
+ the %OB
and %Ob
formats.
+ - In C2X mode,
-fno-fp-int-builtin-inexact
is
+ enabled by default.
+
+
+
C++
- Several C++20 features have been implemented: