Re: [V3][PATCH 1/2] Update -Warray-bounds with -fstrict-flex-arrays.

2022-12-06 Thread Richard Biener via Gcc-patches
On Tue, 6 Dec 2022, Qing Zhao wrote: > A. add the following to clarify the relationship between -Warray-bounds > and the LEVEL of -fstrict-flex-array: > > By default, the trailing array of a structure will be treated as a > flexible array member by '-Warray-bounds' or '-War

[V3][PATCH 1/2] Update -Warray-bounds with -fstrict-flex-arrays.

2022-12-06 Thread Qing Zhao via Gcc-patches
A. add the following to clarify the relationship between -Warray-bounds and the LEVEL of -fstrict-flex-array: By default, the trailing array of a structure will be treated as a flexible array member by '-Warray-bounds' or '-Warray-bounds=N' if it is declared as either a