public inbox for gcc-cvs-wwwdocs@sourceware.org
help / color / mirror / Atom feed
* gcc-wwwdocs branch master updated. acd58a986d9d28bc0d9b78caf7317840ee286b73
@ 2023-01-13 19:47 Qing Zhao
  0 siblings, 0 replies; only message in thread
From: Qing Zhao @ 2023-01-13 19:47 UTC (permalink / raw)
  To: gcc-cvs-wwwdocs

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 <qing.zhao@oracle.com>
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.</p>
     <li>Legacy debug info compression option <code>-gz=zlib-gnu</code> was removed
       and the option is ignored right now.</li>
     <li>New debug info compression option value <code>-gz=zstd</code> has been added.</li>
+    <li><code>-Warray-bounds=2</code> 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
+      <code>-fstrict-flex-arrays</code>. </li>
 </ul>
 
 
@@ -434,6 +438,17 @@ a work-in-progress.</p>
 <h2>Other significant improvements</h2>
 
 <!-- <h3 id="uninitialized">Eliminating uninitialized variables</h3> -->
+<h3 id="flexible array">Treating trailing arrays as flexible array members</h3>
+
+<ul>
+ <li>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
+     <code>-fstrict-flex-arrays</code> to control which array members are
+     treated as flexible arrays.
+ </li>
+</ul>
 
 <!-- .................................................................. -->
 <!-- <h2 id="13.1">GCC 13.1</h2> -->

-----------------------------------------------------------------------

Summary of changes:
 htdocs/gcc-13/changes.html | 15 +++++++++++++++
 1 file changed, 15 insertions(+)


hooks/post-receive
-- 
gcc-wwwdocs

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-01-13 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-13 19:47 gcc-wwwdocs branch master updated. acd58a986d9d28bc0d9b78caf7317840ee286b73 Qing Zhao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).