From patchwork Thu Apr 4 16:42:00 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88041
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 07875384475A
for ; Thu, 4 Apr 2024 16:42:50 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id BFF073858C98
for ; Thu, 4 Apr 2024 16:42:11 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org BFF073858C98
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org BFF073858C98
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248933; cv=none;
b=QGtwUVp9gzixSGs6JOFY66YksjGDYKpUpQyVWbdqlrG6FXfyEOiOvIDe4PK52hQaCiybutmvHUzP1MLIuGwc2j0A8/2m4qFiRzsm5COwtyAbC4qWwznP0TobQgyGxdpWjKxnSgd/iugY9XW59pV8Kn4tZwQjbjbBbsgK5WgXaAc=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248933; c=relaxed/simple;
bh=4ZubG3gYjOO2uvc5miWLJtnwzPl/0WiBkJw7TJEHrxM=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=ufyfklX+MTr4BUDHbzzPpvh35XNaUXA6mdR9zPNZf7k3gbPHISoEfbk6Lcd2QHWzrfnJYL8UFeFLhdwNW2ZhirCOXwpbAWpzu0AcRoxshr4IRiBrhfhE8PTsfXvpVS6ztLUfgrCX48ZvB0luMsSvKUl4aPPy8/r0Xo+3G35Q3rE=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248931;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=dN80FrQ6auI0Z4n7yQkQhnhTVepRrIwnj1FLnvvFUsQ=;
b=PThklQXlE7RQ+7iaC8s/Dlh4bIq0d8RDJowAj6vRg05eisk5nH9fCYrdu7gS8x4HRWmDeL
5RvyuutKs6iEYHcByiKHwK1sPbvo3roxdD37uEV2FUYMuAqHKjGvoJbt9GHiiH2x9cvXzM
EWpdEBpt8xe7b0mNhhI9AsOOZpYBOog=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-189-_4NRmwwhNw6sJA5zok1sWA-1; Thu, 04 Apr 2024 12:42:09 -0400
X-MC-Unique: _4NRmwwhNw6sJA5zok1sWA-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 9C25285A5BB
for ; Thu, 4 Apr 2024 16:42:09 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id 750D01C060CE;
Thu, 4 Apr 2024 16:42:09 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 1/9] wwwdocs: gcc-14: add caveat about not using analyzer on
C++
Date: Thu, 4 Apr 2024 12:42:00 -0400
Message-Id: <20240404164208.2437213-2-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-11.4 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_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 9fd224c1..5cc729c5 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -49,6 +49,10 @@ a work-in-progress.
unmaintained for quite a while has been declared obsolete in GCC 14.
The next release of GCC will have their sources permanently removed.
+ -fanalyzer
+ is still only suitable for analyzing C code.
+ In particular, using it on C++ is unlikely to give meaningful output.
+
From patchwork Thu Apr 4 16:42:01 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88042
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 9407038449C7
for ; Thu, 4 Apr 2024 16:42:53 +0000 (GMT)
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 EE34E3858C52
for ; Thu, 4 Apr 2024 16:42:11 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EE34E3858C52
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EE34E3858C52
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.133.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248934; cv=none;
b=fW+Jy0g4066L+lzkQq89akizSuERW7Md28i35omMIl1WTuDf5heZYVobJ7SUPhCpLM2ywRK6h6p6qSc2q66WxTb65G7LagkZAR2xqF8/z0fsSS0faIsuMvx/Xg71bJBuOXWpcWFYP0NaVauZbk//uH2jfuOQpBpBRSPVfNRU1mg=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248934; c=relaxed/simple;
bh=VcBW4MGA3P1B1JW6p0QPWocp10wiWEopWI3HdsD7kds=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=g/y1PPIcrPehfh/wPRy776BKYh2HTWg6upErEL+j0cueqtnzNPXYaS8FCsSifgCo8bYLiXxr9XKHuHZA8Sj/8LQKrf3+ZRwHG5tGZtO3VnxgYeEarOZB7xpROpQnsZFHjnnqj/JsW4b4vsr7UoDhB4PVz3qpUY/4JtvLmVlTPIw=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248931;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=kNagm3motzshRuc9M4owtzxvk7EEaj2d/LXC82yrlxc=;
b=UIRqxTQscqSvAwkgnALeij/BEhXsGN8LfoIwdcLtKlEAuajHe0NlBKKznGQms2Gp4uxWjW
gNK4gCgEWKGVkpDv1I2QbmEO3Juq2aFJfmbM725QUTFN1p5hnr43bfAlTMsD77ysdTcTv6
eYM9UA6piXGC9lhmSG3nhVFvA2oDnZ8=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-556-IEnoHP_pNoK8T1kqT9W50A-1; Thu, 04 Apr 2024 12:42:10 -0400
X-MC-Unique: IEnoHP_pNoK8T1kqT9W50A-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id D0779185A787
for ; Thu, 4 Apr 2024 16:42:09 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id AB9961C060D0;
Thu, 4 Apr 2024 16:42:09 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 2/9] wwwdocs: gcc-14: add URLs to some options
Date: Thu, 4 Apr 2024 12:42:01 -0400
Message-Id: <20240404164208.2437213-3-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-11.4 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_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 23 ++++++++++++++++-------
1 file changed, 16 insertions(+), 7 deletions(-)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 5cc729c5..397458d5 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -149,26 +149,33 @@ a work-in-progress.
to enable additional hardening.
- New option -fhardened
, an umbrella option that enables a set
- of hardening flags. The options it enables can be displayed using the
+ New option
+ -fhardened
,
+ an umbrella option that enables a set of hardening flags.
+ The options it enables can be displayed using the
--help=hardened
option.
- New option -fharden-control-flow-redundancy
, to
- verify, at the end of functions, that the visited basic blocks
+ New option
+ -fharden-control-flow-redundancy
,
+ to verify, at the end of functions, that the visited basic blocks
correspond to a legitimate execution path, so as to detect and
prevent attacks that transfer control into the middle of
functions.
- New type attribute hardbool
, for C and Ada. Hardened
+ New type attribute
+ hardbool
,
+ for C and Ada. Hardened
booleans take user-specified representations for true
and false
, presumably with higher hamming distance
than standard booleans, and get verified at every use, detecting
memory corruption and some malicious attacks.
- New type attribute strub
to control stack scrubbing
+ New type attribute
+ strub
+ to control stack scrubbing
properties of functions and variables. The stack frame used by
functions marked with the attribute gets zeroed-out upon returning
or exception escaping. Scalar variables marked with the attribute
@@ -176,7 +183,9 @@ a work-in-progress.
enabled implicitly.
- New option -finline-stringops
, to force inline
+ New option
+ -finline-stringops
,
+ to force inline
expansion of memcmp
, memcpy
,
memmove
and memset
, even when that is
not an optimization, to avoid relying on library
From patchwork Thu Apr 4 16:42:02 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88045
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 43FE83858294
for ; Thu, 4 Apr 2024 16:43:57 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id 3ADD93858C56
for ; Thu, 4 Apr 2024 16:42:12 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 3ADD93858C56
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 3ADD93858C56
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248934; cv=none;
b=OigDI4M5d+i4ecBdrrUqNJSxfnFDGWjRWjwWp0yuIqYpcn4DIpM+Z8AvsJPS6V6UJY1hPhlj2ETqUM8M6ZNj0HVxauU2LiC1eQ3DnZpMySz6aD9+rewRLqYMUr9BhZL4MFRNaSkaKBz1G+I5VCcBWpyhgOAJ9yr6QemWBTpUxt0=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248934; c=relaxed/simple;
bh=DBiVOk65lrn72c+mcrp9O2TstaaiYGGywxFe5VKPhD4=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=c+FbUsB/J7YuJx4Drd6W5MNjXos2oUYcly8hwgQJz2/Vcg23f/hGXIevE+ZH5KgrV2jjJSoS2ePIUNsDqLYGs4LmzO7+UoW9ddxW4L8sud8BucVwEzYTX2ZFPiYn5aCy5fAM/DeCa4NKZHpJbgoThfLnrJcHw1xUy2tJyoh1RIQ=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248931;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=o6681hzfgXmmoQe/Qfa8Uf/pk31LkDYdywz/wO5RGC4=;
b=jBPP3MQRTbyFXVAoesAk8fVaYPgmzGxHOisYGflZO9zeUUmBop2G90memmztdOMYTE4n3i
VChyAVoOoeMBHzK0g+ScXdWHj02oB8Ofh0OdAEjyHnQPwwKisg+hqC+SMG9MpIhZSsR670
pAfiaMjPjvII2P38/bTTlEKog4YhZDg=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-265-a2JWE1YMMuejcM-Pkt6XAw-1; Thu, 04 Apr 2024 12:42:10 -0400
X-MC-Unique: a2JWE1YMMuejcM-Pkt6XAw-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 0F379101A533
for ; Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id DEDD11C060A4;
Thu, 4 Apr 2024 16:42:09 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 3/9] wwwdocs: gcc-14: add null_terminated_string_arg attribute
Date: Thu, 4 Apr 2024 12:42:02 -0400
Message-Id: <20240404164208.2437213-4-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-11.4 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_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 397458d5..f9ce4fe5 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -191,6 +191,13 @@ a work-in-progress.
not an optimization, to avoid relying on library
implementations.
+
+
+ New function attribute
+ null_terminated_string_arg(PARAM_IDX)
+ for indicating parameters that are expected to be null-terminated
+ strings.
+
New Languages and Language specific improvements
From patchwork Thu Apr 4 16:42:03 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88047
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 EC6D2385840E
for ; Thu, 4 Apr 2024 16:44:17 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id 543CE3858C33
for ; Thu, 4 Apr 2024 16:42:13 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 543CE3858C33
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 543CE3858C33
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248936; cv=none;
b=gh6Fsw5JBidDbHdl8/EtaLnPoIdM6FZ/92XwMvSk27DzJDXzuN09nlYEDowMMOTw5mmbOvhutCI2VLzA0zlxEH+ppX2kgCxwLOznX+9KTk/r9wLuF9Q4el+OFgs3jVrnMETpIWRG9CJ3HrVUhP7t1i7OEEW97VhV/zc9g7bZWdI=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248936; c=relaxed/simple;
bh=/+OO4400LRT0wD0BeXv7GpOMXuO2awDJNHr0zRA+KSY=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=DFRpr3/z0SibbEoFJiQxelBPqxU+87usuclsFlT5oLLxrAZYOj2/Ra8LQX4CkFSsXxZZJv4KeelHG5QM7G3SeddpJbHod6Iep81O4uYg6uf6cM6XyO+2++Vs4ZMgWFAWrmF5OWp4r41burzjKay6kOPICge0VeAvvPNEiwD8xM8=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248933;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=Q/kvz8g45CiWmIT5qIfPibThUv8U3rQJoBrCpHfsAaM=;
b=UpU+VHsqOD+hN2XaNM9w5vx5i4Liy0Fw1Oy+FS+D+9b+JPvhqWxeiBRuRbA5y4WFhTGGrx
7IssYOP1ckhUQ7LWe4oxGrIuqWB+MCngZzp0c1GoPaM+9uyeRcFzqMO5DkM+51O7Yz5/HD
QHsVZTm29s9ri7Geqi7rI+i1kbXvRro=
Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])
by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,
cipher=TLS_AES_256_GCM_SHA384) id us-mta-303-vM4qRXw6PLeys3Y7jbUYJQ-1; Thu,
04 Apr 2024 12:42:10 -0400
X-MC-Unique: vM4qRXw6PLeys3Y7jbUYJQ-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 454233C11CC4
for ; Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id 1E7FD1C060CE;
Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 4/9] wwwdocs: gcc-14: c++: note changes to source quoting in
template errors
Date: Thu, 4 Apr 2024 12:42:03 -0400
Message-Id: <20240404164208.2437213-5-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
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,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index f9ce4fe5..95ed00c9 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -262,6 +262,13 @@ a work-in-progress.
constinit
and optimized dynamic initialization
+
+
+ When a diagnostic occurrs involving a C++ template,
+ GCC will now quote the source code of the context at which
+ the template is instantiated ("required from here
"),
+ rather than just print filename and line/column numbers.
+
Runtime Library (libstdc++)
From patchwork Thu Apr 4 16:42:04 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88044
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 0B134384403E
for ; Thu, 4 Apr 2024 16:43:05 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id A6A1F3858C62
for ; Thu, 4 Apr 2024 16:42:12 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A6A1F3858C62
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A6A1F3858C62
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248934; cv=none;
b=eq5mZRBr0RsgfhhU1322kHmQ0kzct0Pl6LWxEqIBEye4J7YfjctRQGmaE+0KcKdKIRR8GSBF9/m+I3v79C8h7rMqsvdXdWq7kNsDcTBweD1r/9t1PS+JENh5RpS9NDJ9kuXY42pJ/P1H9Ngi3Tzux7oWlhck9J/t+jZM1p5O750=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248934; c=relaxed/simple;
bh=Mvbk8jMVFY0b8YRtTSAIRwxauK/gREjqg1lrMO9GMv8=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=Mnq6dxb6RmjRd8guF8knEW5UdYRhwZ2diGng53gzDSSVGSTxc8cDXwXZB1CGd1B9atBGBu5SeGBQhqq95loHSz9E7wc+imkQ/AHtcqroW0p+UD+e75xJIXedn1HxM3vUAHdQEGPQsGPbaY+sXaL8Kp9qoNTAlq0QebjT99T/mqI=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248932;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=Zu/zV1jbSjlbJOCiJm/xRQEXUoA1JhEye0qcvFtmT3o=;
b=iKcfQ5iJjSiQYdZGLQDK0tQJiF5ipbw/JEOk8yIDB03o6SaPBevyWWExpgA0E7x5aMLy0J
epuZ/BHnh+UqPhDrKaD6im3VxiGrJxgTpauJ6aTCL3QfC2hO62mUpChW1IBZVXdfpq1QIe
f4wJbVOhKuCADohZMUjQU2cef9cwDxs=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-675-2n_YPSp9OpqEQNe1FTSRxQ-1; Thu, 04 Apr 2024 12:42:10 -0400
X-MC-Unique: 2n_YPSp9OpqEQNe1FTSRxQ-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 78E09101A521
for ; Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id 552461C060A4;
Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 5/9] wwwdocs: gcc-14: libgccjit changes
Date: Thu, 4 Apr 2024 12:42:04 -0400
Message-Id: <20240404164208.2437213-6-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-11.4 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_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 31 ++++++++++++++++++++++++++++++-
1 file changed, 30 insertions(+), 1 deletion(-)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 95ed00c9..2dc7e598 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -360,7 +360,36 @@ a work-in-progress.
-
+libgccjit
+
+ - The libgccjit API gained 6 new entry points:
+
+
+
New Targets and Target Specific Improvements
From patchwork Thu Apr 4 16:42:05 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88048
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 B49C43858431
for ; Thu, 4 Apr 2024 16:45:07 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id C3FD23858C32
for ; Thu, 4 Apr 2024 16:42:12 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C3FD23858C32
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C3FD23858C32
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248935; cv=none;
b=gVs9ZyOe6rPOXHeSCg95WCcEPNmIRxxrjJn9s4kdHkovygyIicJKkAFv5tSRbE7K2PpD5q96r75+narg600cLdbK87TiThe3hNP6dKh/rej7uLAp3F3TOl1gzPJswKoJLnovAeYt4i/BzEI+hKC7UXpjwBB/LizuS//rRa2+KnY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248935; c=relaxed/simple;
bh=/IPeLZ/jU3ZKCfDURfanVmTKYs9NyZ2Dkppx3jkL5Mw=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=QUeeBH7uDn/1iyW0jHwreiRHEDxXCrVYM4TsBZMUTe/9ILj9C2dqCsY5Gu9TfDljFpOgnb8N6FdG7LoyFmYL4xOFqMy24qzPfKPuK0tcDeBqZBBMoZ+QPO5iZ+1rptyxD4xFdzKZ9LLUJeZNFOzdd926gHBHKCJr1BdPKEWAH1I=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248932;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=FZwzv4zKHhv4VrETGrKvR/uh5pG8EgPrUBuqHJL4My4=;
b=TMCJwQp4secoXthE8W7PPXbIyb3Ug+KI3IvPH6T4I70PbJI5zYPxzo7ywJKNM2SBzwSZy+
XWWFOO7w2haJzTFywuK22yzG1xkq2GfEzS/vDT1uF3bE7JvmQad1XiP3Uc40dPRLVh5Eqt
FuVtv9wkjt/wB13PrpQ7YsmZ4Sl8XNU=
Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])
by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,
cipher=TLS_AES_256_GCM_SHA384) id us-mta-317-vwvQDgAVPfGu-qIZbneT0A-1; Thu,
04 Apr 2024 12:42:10 -0400
X-MC-Unique: vwvQDgAVPfGu-qIZbneT0A-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AB34229AB445
for ; Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id 86E2C1C060CE;
Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 6/9] wwwdocs: gcc-14: improvements to automatic doc URLs for
options
Date: Thu, 4 Apr 2024 12:42:05 -0400
Message-Id: <20240404164208.2437213-7-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
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,
RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 2dc7e598..0701dc29 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -745,7 +745,20 @@ __asm (".global __flmap_lock" "\n\t"
-
+Documentation improvements
+
+ -
+
+
+
+
+
+ GCC's ability to provide clickable hyperlinks to the documentation
+ has been extended, so that whenever GCC refers to a command-line
+ option in quotes in a diagnostic message, the option is a clickable
+ hyperlink (assuming a suitably capable terminal).
+
+
From patchwork Thu Apr 4 16:42:06 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88043
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 5DD0338449C7
for ; Thu, 4 Apr 2024 16:43:03 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id B12B33858C24
for ; Thu, 4 Apr 2024 16:42:12 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B12B33858C24
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B12B33858C24
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248935; cv=none;
b=iAGTcsbu9eSGgGTPfgEfTKaiWdR9tIC/FdhTPr4By1j5dC6STiJZe7T62/8RiBKMNEyWN854TkS6nP0aQDcvDw4Je4uFFMHQAVAR5HJtBTmZ6tywMoMfWDW9ZTLm7VwDvZ6YQ9I8YzFzkKao00V3CJT7vPA+axCOyFV4zFQZ3m4=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248935; c=relaxed/simple;
bh=HzsUonsTPgsEC+mmlTKMbQzpToBcBEIxytiOPnPg7WI=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=PpwfPz2DU3I8gJDtBXciZ3Xv6EzyURMMckfhEFHhseM9PiN9kfrhZ3dyF6y4ASFOoAnJNfIazqDvysD7QjeoN/feZzEv32qrO4jcEpW7IhPNdohODqv81TA0FK6C2VX+xXra/FfVO0DzehcVW3BsiDh4917usRx0HN2FyHvHwas=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248932;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=gBYkl8O9+zfdRAnWngPg0KO57qwIlVtXu7Oob6JDEBE=;
b=hFaH36qaTkB1YUdSxt/V988mIXbFUBL1rkn0GWyizz0m1B42vuqo49LORnp3u1Yy2freBK
jB0zFrMlp2Hylfm/y47fMH3IoVFcTnZ950p41g8pAybioOCiKy6wXW68f1kLOB+TAre7ZI
pZHXdluWwOjs9cHrK0058U84kJt+BF4=
Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73])
by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3,
cipher=TLS_AES_256_GCM_SHA384) id us-mta-355-PDDCd_jLO_m96zuB8luhCw-1; Thu,
04 Apr 2024 12:42:11 -0400
X-MC-Unique: PDDCd_jLO_m96zuB8luhCw-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id DFE8D3C11CE7
for ; Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id B99D11C060A4;
Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 7/9] wwwdocs: gcc-14: improvements for plugin authors
Date: Thu, 4 Apr 2024 12:42:06 -0400
Message-Id: <20240404164208.2437213-8-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
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_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 23 ++++++++++++++++++++++-
1 file changed, 22 insertions(+), 1 deletion(-)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 0701dc29..8b72bc20 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -761,7 +761,28 @@ __asm (".global __flmap_lock" "\n\t"
-
+Improvements for plugin authors
+
+ -
+
+ GCC diagnostics have been able to have execution paths associated
+ with them since GCC 10, but previously these were required to be
+ single-threaded.
+ As of GCC 14, these execution paths can have multipled named threads
+ associated with them, with each event being associated with one of the
+ threads.
+ No existing GCC diagnostics take advantage of this, but GCC plugins
+ may find this useful for their own diagnostics; an
+ example
+ is provided in the testsuite.
+
+ -
+
+ GCC's diagnostics can now optionally add per-diagnostic property
+ bags to the SARIF output, allowing plugins to capture custom data
+ as needed with their diagnostics.
+
+
Other significant improvements
From patchwork Thu Apr 4 16:42:07 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88049
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 B4B8D384640C
for ; Thu, 4 Apr 2024 16:45:22 +0000 (GMT)
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 54F463858402
for ; Thu, 4 Apr 2024 16:42:13 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 54F463858402
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 54F463858402
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.133.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248936; cv=none;
b=wPGTZm/eRWXI1MOefs6sHosi/A0xBfFGyad4t1mcGqxfmq5gp38Ab4Ajwi4mkb7VMIvWizSNS8xdoIN3kb/yIvuQT5z4/wM5HGty3VxCwvJCz1OczOvVXGo9pxiW3vDMvbK1R2LhGdp7maGYFVRaGMPboQaGMrwhB4UhZq7jAHs=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248936; c=relaxed/simple;
bh=XQVFlsgScQkhhkyxxBhLTioNnbZupPZhHkh/S+V8Z+E=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=a2EcG5FNnDVFcB5QNESjBjAwzjgda8art11Iaf8z7YwCrm/eZ44cK/x+jglLhlDT327UavcRgCF4bpQiJcLEE7mPgONzqmnucTyoQtSDoJnmF50isowDGfAb07YlzDaAWjNN9ygQZ4OOSL1ouofDhnNt52QplqWa0R7gRSih0Yg=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248933;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=sbI8K/Z2twiH6ACkuQ1zl0PPLYvu+wwvgN2OuEnqeQg=;
b=H8qRMkZRK4ZqwE+4eewKYTkIcVLiwZhIZ3MmXVCta8onMOjjmSX+idVwU4yCfEbppOT838
rgBMgX6RUGaT9DrRtsjlixNGczHJZtl1gwRm8bF+dP7Y1FKe93TdqaUQnoQmGVolO1jga0
ytfXL7fLDuZFvkDrBZYYmkgys5XmxII=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-504-4YqTZxu8NuKHY336r1btdw-1; Thu, 04 Apr 2024 12:42:11 -0400
X-MC-Unique: 4YqTZxu8NuKHY336r1btdw-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 1ED53185A787
for ; Thu, 4 Apr 2024 16:42:11 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id ED88A1C060CE;
Thu, 4 Apr 2024 16:42:10 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 8/9] wwwdocs: gcc-14: analyzer improvements
Date: Thu, 4 Apr 2024 12:42:07 -0400
Message-Id: <20240404164208.2437213-9-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, BODY_8BITS,
DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF,
GIT_PATCH_0, KAM_SHORT, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H4,
RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE,
TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 162 +++++++++++++++++++++++++++++++++++++
1 file changed, 162 insertions(+)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index 8b72bc20..d782c334 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -760,6 +760,168 @@ __asm (".global __flmap_lock" "\n\t"
+
+Improvements to Static Analyzer
+
+ -
+ New warnings:
+
+
+ -
+
+ Previously, the analyzer's "taint" tracking to be explicitly enabled via
+
-fanalyzer-checker=taint
+ (along with
+ -fanalyzer
).
+ This is now enabled by default when
+ -fanalyzer
+ is selected, thus also enabling the 6 taint-based warnings:
+
+
+ -
+
+ The analyzer will now simulate API calls that expect null-terminated
+ string arguments, and will warn about code paths in which such a call
+ is made with a buffer that isn't properly terminated, either due to
+ a read of an uninitialized byte or an out-of-range accesses seen
+ before any zero byte is seen.
+ This applies to functions that use the new
+
null_terminated_string_arg(PARAM_IDX)
+ attribute,
+ functions that use the
+ format
+ attribute,
+ and to the library functions
+ error
(parameter 3),
+ error_at_line
(parameter 5),
+ putenv
,
+ strchr
(parameter 1), and
+ strcpy
(parameter 2).
+
+ -
+
+ The analyzer now makes use of the function attribute
+ alloc_size
+ allowing
+
-fanalyzer
+ to emit
+ -Wanalyzer-allocation-size
,
+ -Wanalyzer-out-of-bounds
,
+ and
+ -Wanalyzer-tainted-allocation-size
+ on execution paths involving allocations using such functions.
+
+ -
+ The analyzer's knowledge about the behavior of the standard library has been extended to cover
+
fopen
,
+ strcat
,
+ strncpy
, and
+ strstr
.
+ The analyzer will also more precisely model the behavior of
+ memcpy
,
+ memmove
,
+ strcpy
,
+ strdup
,
+ strlen
,
+ and of various atomic
built-in functions.
+
+ -
+
+
The warning
+ -Wanalyzer-out-of-bounds
+ has been extended so that, where possible, it will emit a text-based
+ diagram visualizing the spatial relationship between
+
+ - the memory region that the analyzer predicts would be
+ accessed, versus
+ - the range of memory that is valid to access
+
+ whether they overlap, are touching, are close or far apart;
+ which one is before or after in memory, the relative sizes involved,
+ the direction of the access (read vs write), and, in some cases,
+ the values of data involved.
+ Such "text art" diagrams can be controlled (or suppressed) via a new
+ -fdiagnostics-text-art-charset= option.
+
For example, given the out-of-bounds write in strcat
in:
+
+
+void test (void)
+{
+ char buf[10];
+ strcpy (buf, "hello");
+ strcat (buf, " world!");
+}
+
+it emits:
+
+ ┌────┬────┬────┬────┬────┐┌─────┬─────┬─────┐
+ │[0] │[1] │[2] │[3] │[4] ││ [5] │ [6] │ [7] │
+ ├────┼────┼────┼────┼────┤├─────┼─────┼─────┤
+ │' ' │'w' │'o' │'r' │'l' ││ 'd' │ '!' │ NUL │
+ ├────┴────┴────┴────┴────┴┴─────┴─────┴─────┤
+ │ string literal (type: 'char[8]') │
+ └───────────────────────────────────────────┘
+ │ │ │ │ │ │ │ │
+ │ │ │ │ │ │ │ │
+ v v v v v v v v
+ ┌─────┬────────────────────┬────┬──────────────┬────┐┌─────────────────┐
+ │ [0] │ ... │[5] │ ... │[9] ││ │
+ ├─────┼────┬────┬────┬────┬┼────┼──────────────┴────┘│ │
+ │ 'h' │'e' │'l' │'l' │'o' ││NUL │ │after valid range│
+ ├─────┴────┴────┴────┴────┴┴────┴───────────────────┐│ │
+ │ 'buf' (type: 'char[10]') ││ │
+ └───────────────────────────────────────────────────┘└─────────────────┘
+ ├─────────────────────────┬─────────────────────────┤├────────┬────────┤
+ │ │
+ ╭─────────┴────────╮ ╭─────────┴─────────╮
+ │capacity: 10 bytes│ │overflow of 3 bytes│
+ ╰──────────────────╯ ╰───────────────────╯
+
+ showing that the overflow occurs partway through the second string
+ fragment.
+
+ -
+
+ The analyzer will now attempt to track execution paths involving
+ computed gotos, whereas previously it gave up on such paths.
+
+
+
Improvements for plugin authors
From patchwork Thu Apr 4 16:42:08 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: David Malcolm
X-Patchwork-Id: 88046
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 37544385842A
for ; Thu, 4 Apr 2024 16:44:14 +0000 (GMT)
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.129.124])
by sourceware.org (Postfix) with ESMTPS id A28893858404
for ; Thu, 4 Apr 2024 16:42:13 +0000 (GMT)
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A28893858404
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=redhat.com
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org A28893858404
Authentication-Results: server2.sourceware.org;
arc=none smtp.remote-ip=170.10.129.124
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1712248936; cv=none;
b=EBXmoH7BhU/NwXg2HBuq+E3984/L4ZRzDlUihnP52mykXU9Baj/hQlfYktbhkmaSQu0FH4QkhxgtvDZTH2b0gXC6F7rOVkCrL3JJFwHmDVTGsHGTAgZREckDhBvGXLp8ru8cMZHPf5pwAN3FsKhpB53I4BYEGNT04UD/4OQNbmY=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1712248936; c=relaxed/simple;
bh=kBXHR9BrgQytrxWCxWvNDTAN1OJ+i5F5oFtGsKQraww=;
h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version;
b=u/g/ksI7KPUYSNsKlwHbXLHV+w1rdrfvSFN1w45Q6j3Bx0ROJQhZzcDkq+a8iJjM5hiWCfY9Lwggl20bMjlqzgnUwzZCNLcNpi/bhHtVLEk+cVqU9PYYO4OZ4pYjyCYJ6bJqumgFX0eTWC1AwuqjJqDPLh86Nn408dxUkWOqAy4=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com;
s=mimecast20190719; t=1712248933;
h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
to:to:cc:cc:mime-version:mime-version:content-type:content-type:
content-transfer-encoding:content-transfer-encoding:
in-reply-to:in-reply-to:references:references;
bh=NYGvNKzr56ZIq5Uyzwb4OLNJpqKPC3vxuR9NQujSoeY=;
b=JBFwRMJhwBS3h+RQ2lvWiCchDLwERebhchA8I0xQvG9XKHdfz8Jhyy6Bs1aq9F61WF1E0/
UBx1wMKnrni0zH6I+DJUp0rNJYTm6g3SGZQjXp8shIOYRzSLUFZJny2B+ipn8ZfX3QSCrD
pm6TWwSZY70MnSYeF+XWdWyAYVn/JZY=
Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com
[66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS
(version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id
us-mta-421-yJ-RTLj7OEy4ic7vOEgXBA-1; Thu, 04 Apr 2024 12:42:11 -0400
X-MC-Unique: yJ-RTLj7OEy4ic7vOEgXBA-1
Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.rdu2.redhat.com
[10.11.54.7])
(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest
SHA256)
(No client certificate requested)
by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 55305185A78B
for ; Thu, 4 Apr 2024 16:42:11 +0000 (UTC)
Received: from t14s.localdomain.com (unknown [10.22.32.209])
by smtp.corp.redhat.com (Postfix) with ESMTP id 2E5141C060A4;
Thu, 4 Apr 2024 16:42:11 +0000 (UTC)
From: David Malcolm
To: gcc-patches@gcc.gnu.org
Cc: David Malcolm
Subject: [PATCH 9/9] wwwdocs: gcc-14: add 'Improvements to SARIF support'
section
Date: Thu, 4 Apr 2024 12:42:08 -0400
Message-Id: <20240404164208.2437213-10-dmalcolm@redhat.com>
In-Reply-To: <20240404164208.2437213-1-dmalcolm@redhat.com>
References: <20240404164208.2437213-1-dmalcolm@redhat.com>
MIME-Version: 1.0
X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.7
X-Mimecast-Spam-Score: 0
X-Mimecast-Originator: redhat.com
X-Spam-Status: No, score=-11.4 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_NONE, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE,
SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: gcc-patches@gcc.gnu.org
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: Gcc-patches mailing list
List-Unsubscribe: ,
List-Archive:
List-Post:
List-Help:
List-Subscribe: ,
Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org
Signed-off-by: David Malcolm
---
htdocs/gcc-14/changes.html | 22 ++++++++++++++++++++++
1 file changed, 22 insertions(+)
diff --git a/htdocs/gcc-14/changes.html b/htdocs/gcc-14/changes.html
index d782c334..934cd1ad 100644
--- a/htdocs/gcc-14/changes.html
+++ b/htdocs/gcc-14/changes.html
@@ -922,6 +922,28 @@ it emits:
+
+Improvements to SARIF support
+
+ -
+
+ The SARIF output from
+ -fdiagnostics-format=
+ now adds indentation and newlines to reflect the logical JSON structure of the data. The previous compact behavior can be restored via the new option
+ -fno-diagnostics-json-formatting.
+ This also applies to the older output format named "json".
+
+ -
+
+ If profiling information about the compiler itself is requested via
+ -ftime-report,
+ and a SARIF output format is requested via
+ -fdiagnostics-format=,
+ then the timing and memory usage data is now written in JSON form into
+ the SARIF output, rather than as plain text to stderr.
+
+
+
Improvements for plugin authors