[V9,0/2] Accept and Handle the case when a structure including a FAM nested in another structure

Message ID 20230530183029.1156862-1-qing.zhao@oracle.com
State Repeat Merge
Headers

Checks

Context Check Description
snail/gcc-patch-check warning Git am fail log

Commit Message

Qing Zhao May 30, 2023, 6:30 p.m. UTC
  Hi,

This is the 8th version of the patch, which rebased on the latest trunk.
This is an important patch needed by Linux Kernel security project. 

compared to the 8th version, the Only change is in PATCH 2/2 (per
Joseph's comment):



bootstrapped and regresson tested on aarch64 and x86.

Okay for commit?

thanks a lot.

Qing
  

Patch

diff --git a/gcc/doc/extend.texi b/gcc/doc/extend.texi
index 17ef80e75cc..e8a8be93ff1 100644
--- a/gcc/doc/extend.texi
+++ b/gcc/doc/extend.texi
@@ -1792,8 +1792,8 @@  consistently.  Any code relying on this case should be modified to ensure
that flexible array members only end up at the ends of structures.

Please use the warning option @option{-Wflex-array-member-not-at-end} to
-identify all such cases in the source code and modify them.  This warning
-will be on by default starting from GCC 15.
+identify all such cases in the source code and modify them.  This extension
+is now deprecated.
@end itemize 

all others keep the same as 8th version.