From mboxrd@z Thu Jan 1 00:00:00 1970
Return-Path:
Received: by sourceware.org (Postfix, from userid 2028)
id 9B8E43858C39; Fri, 13 Jan 2023 19:47:45 +0000 (GMT)
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B8E43858C39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org;
s=default; t=1673639265;
bh=wGDZFZgATW3k8UPoUfGBWZPjyCMdYefj4mMk6K32LzU=;
h=To:Subject:Date:From:From;
b=GKA6EYqJV/bUrdsBpT1rk0zn0CyUTiMzRp1Jh4TS8/hw6YgvpNpZUo5Qpe6V/SfrG
Fmmr5hAswiH2ae2TGaJwoSaTnhYPx1AT7Lp/7GZ6psBd1nJKC8++kFXggbFudeVDGz
7N2jPRJ8MoGZXyOdsUCZUH/ZtaYOuBBceQIxO4ps=
To: gcc-cvs-wwwdocs@gcc.gnu.org
Subject: gcc-wwwdocs branch master updated. acd58a986d9d28bc0d9b78caf7317840ee286b73
X-Git-Refname: refs/heads/master
X-Git-Reftype: branch
X-Git-Oldrev: e848ac5c5df1c9446bcc8b314c279396533bf0fa
X-Git-Newrev: acd58a986d9d28bc0d9b78caf7317840ee286b73
Message-Id: <20230113194745.9B8E43858C39@sourceware.org>
Date: Fri, 13 Jan 2023 19:47:45 +0000 (GMT)
From: Qing Zhao
List-Id:
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 acd58a986d9d28bc0d9b78caf7317840ee286b73 (commit)
from e848ac5c5df1c9446bcc8b314c279396533bf0fa (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 acd58a986d9d28bc0d9b78caf7317840ee286b73
Author: Qing Zhao
Date: Fri Jan 13 19:47:01 2023 +0000
gcc-13/changes: Mention -fstrict-flex-arrays and its impact.
diff --git a/htdocs/gcc-13/changes.html b/htdocs/gcc-13/changes.html
index 41a117b4..96d47903 100644
--- a/htdocs/gcc-13/changes.html
+++ b/htdocs/gcc-13/changes.html
@@ -39,6 +39,10 @@ a work-in-progress.
Legacy debug info compression option -gz=zlib-gnu
was removed
and the option is ignored right now.
New debug info compression option value -gz=zstd
has been added.
+ -Warray-bounds=2
will no longer issue warnings for out of
+ bounds accesses to trailing struct members of one-element array type
+ anymore. Instead it diagnoses accesses to trailing arrays according to
+ -fstrict-flex-arrays
.
@@ -434,6 +438,17 @@ a work-in-progress.
Other significant improvements
+Treating trailing arrays as flexible array members
+
+
+ - GCC can now control when to treat the trailing array of a structure as a
+ flexible array member for the purpose of accessing the elements of such
+ an array. By default, all trailing arrays in aggregates are treated as
+ flexible array members. Use the new command-line option
+
-fstrict-flex-arrays
to control which array members are
+ treated as flexible arrays.
+
+
-----------------------------------------------------------------------
Summary of changes:
htdocs/gcc-13/changes.html | 15 +++++++++++++++
1 file changed, 15 insertions(+)
hooks/post-receive
--
gcc-wwwdocs