From patchwork Fri Apr 1 14:33:15 2022
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 52576
Return-Path:
X-Original-To: patchwork@sourceware.org
Delivered-To: patchwork@sourceware.org
Received: from server2.sourceware.org (localhost [IPv6:::1])
by sourceware.org (Postfix) with ESMTP id A2E6D3858427
for ; Fri, 1 Apr 2022 14:34:49 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A2E6D3858427
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org;
s=default; t=1648823689;
bh=zwnT1864F3DrEfTLQLdm3S5KrdzuJLTspdS5UXELc0c=;
h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post:
List-Help:List-Subscribe:From:Reply-To:From;
b=HeOQMyWt6Mtcpu+OW2uwYpZtg7JyEyLkB663Af55G2nhh9rD8YhnWsSEEMjb78lgS
ESbwzsc/rKPVn8YqluLnhF9qRiKlZkwUZ+rWfyvira08YyqA9uGi0hAHS+C02BVs/S
iuVNoqpXlkW3CexzbzhOsfrVQROI2JBWNBL9BNCk=
X-Original-To: gcc-patches@gcc.gnu.org
Delivered-To: gcc-patches@gcc.gnu.org
Received: from us-smtp-delivery-124.mimecast.com
(us-smtp-delivery-124.mimecast.com [170.10.133.124])
by sourceware.org (Postfix) with ESMTPS id 0981A3858D28
for ; Fri, 1 Apr 2022 14:33:21 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 0981A3858D28
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id
us-mta-182-AWm2nuF5NXayQAIKxBFEFw-1; Fri, 01 Apr 2022 10:33:19 -0400
X-MC-Unique: AWm2nuF5NXayQAIKxBFEFw-1
Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com
[10.11.54.9])
(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AC8EF803FF1
for ; Fri, 1 Apr 2022 14:33:18 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.2.17.28])
by smtp.corp.redhat.com (Postfix) with ESMTP id 3DFB45E320B;
Fri, 1 Apr 2022 14:33:17 +0000 (UTC)
To: gcc-patches@gcc.gnu.org
Subject: [wwwdocs] gcc-12: linkify various options
Date: Fri, 1 Apr 2022 10:33:15 -0400
Message-Id: <20220401143315.240513-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 2.85 on 10.11.54.9
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-11.6 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH,
DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0,
KAM_SHORT,
RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
X-Patchwork-Original-From: David Malcolm via Gcc-patches
From: David Malcolm
Reply-To: David Malcolm
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Sender: "Gcc-patches"
I've committed the following patch to the GCC 12 release notes.
---
htdocs/gcc-12/changes.html | 47 ++++++++++++++++++++++++--------------
1 file changed, 30 insertions(+), 17 deletions(-)
diff --git a/htdocs/gcc-12/changes.html b/htdocs/gcc-12/changes.html
index f1c36258..5619acff 100644
--- a/htdocs/gcc-12/changes.html
+++ b/htdocs/gcc-12/changes.html
@@ -172,17 +172,20 @@ a work-in-progress.
the clang language extension was added.
New warnings:
- -Wbidi-chars
warns about potentially misleading UTF-8
+ -Wbidi-chars
+ warns about potentially misleading UTF-8
bidirectional control characters. The default is
-Wbidi-chars=unpaired
(PR103026)
- -Warray-compare
warns about comparisons between two operands of
- array type (PR97573)
+ -Warray-compare
+ warns about comparisons between two operands of
+ array type (PR97573)
Enhancements to existing warnings:
- -Wattributes
has been extended so that it's
+ -Wattributes
+ has been extended so that it's
possible to use -Wno-attributes=ns::attr
or
-Wno-attributes=ns::
to suppress warnings about unknown scoped
attributes (in C++11 and C2X). Similarly,
@@ -208,7 +211,8 @@ a work-in-progress.
- The
#elifdef
and #elifndef
preprocessing directives are now supported.
- The
printf
and scanf
format checking
- with -Wformat
now supports the %b
format
+ with -Wformat
+ now supports the %b
format
specified by C2X for binary integers, and the %B
format recommended by C2X for printf
.
@@ -263,10 +267,12 @@ a work-in-progress.
(git)
Deduction guides can be declared at class scope
(PR79501)
- -Wuninitialized
warns about using uninitialized variables in
+ -Wuninitialized
+ warns about using uninitialized variables in
member initializer lists (PR19808)
- -Wint-in-bool-context
is now disabled when instantiating
+ -Wint-in-bool-context
+ is now disabled when instantiating
a template (git)
Stricter checking of attributes on friend declarations: if a friend
declaration has an attribute, that declaration must be a definition.
@@ -279,13 +285,15 @@ a work-in-progress.
and -Wc++23-extensions
. They are enabled by default
and can be used to control existing pedwarns about occurences of
new C++ constructs in code using an old C++ standard dialect.
- New warning -Wmissing-requires
warns about missing
- requires
+ New warning
+ -Wmissing-requires
+ warns about missing requires
(git)
The existing std::is_constant_evaluated
in if
warning was extended to warn in more cases
(PR100995)
- -Waddress
has been enhanced so that it now warns about, for
+ -Waddress
+ has been enhanced so that it now warns about, for
instance, comparing the address of a nonstatic member function to null
(PR102103)
Errors about narrowing are no longer hidden if they occur in system
@@ -307,7 +315,9 @@ a work-in-progress.
constinit thread_local
variables are optimized better
(PR101786)
Support for C++17 std::hardware_destructive_interference_size
- was added, along with the -Winterference-size
warning
+ was added, along with the
+ -Winterference-size
+ warning
(git)
Many bugs in the CTAD handling have been fixed
(PR101344,
@@ -618,16 +628,19 @@ a work-in-progress.
Eliminating uninitialized variables
- - GCC can now initialize all stack variables implicitly, including
+
- GCC can now initialize all stack variables implicitly, including
padding. This is intended to eliminate all classes of uninitialized
stack variable flaws. Lack of explicit initialization will still
- warn when
-Wuninitialized
is active. For best
- debugging, use of the new command-line option
- -ftrivial-auto-var-init=pattern
can be used to fill
- variables with a repeated 0xFE
pattern, which tends to
+ warn when
+ -Wuninitialized
+ is active. For best debugging, use of the new command-line option
+ -ftrivial-auto-var-init=pattern
+ can be used to fill variables with a repeated 0xFE
pattern, which tends to
illuminate many bugs (e.g. pointers receive invalid addresses, sizes
and indices are very large). For best production results, the new
- command-line option -ftrivial-auto-var-init=zero
can be
+ command-line option
+ -ftrivial-auto-var-init=zero
+ can be
used to fill variables with 0x00
, which tends to provide
a safer state for bugs (e.g. pointers are NULL
, strings
are NUL
filled, and sizes and indices are 0
).