Re: [RFC] how to handle the combination of -fstrict-flex-arrays + -Warray-bounds

2022-10-24 Thread Qing Zhao via Gcc-patches
> On Oct 24, 2022, at 3:30 AM, Richard Biener wrote: > > On Sat, 22 Oct 2022, Martin Sebor wrote: > >> On 10/21/22 09:29, Qing Zhao wrote: >>> Hi, >>> >>> (FAM below refers to Flexible Array Members): >>> >>> I need inputs on how to handle the combination of -fstrict-flex-arrays + >>> -Warr

Re: [RFC] how to handle the combination of -fstrict-flex-arrays + -Warray-bounds

2022-10-24 Thread Qing Zhao via Gcc-patches
> On Oct 22, 2022, at 12:54 PM, Martin Sebor wrote: > > On 10/21/22 09:29, Qing Zhao wrote: >> Hi, >> (FAM below refers to Flexible Array Members): >> I need inputs on how to handle the combination of -fstrict-flex-arrays + >> -Warray-bounds. >> Our initial goal is to update -Warray-bounds wi

Re: [RFC] how to handle the combination of -fstrict-flex-arrays + -Warray-bounds

2022-10-24 Thread Richard Biener via Gcc-patches
On Sat, 22 Oct 2022, Martin Sebor wrote: > On 10/21/22 09:29, Qing Zhao wrote: > > Hi, > > > > (FAM below refers to Flexible Array Members): > > > > I need inputs on how to handle the combination of -fstrict-flex-arrays + > > -Warray-bounds. > > > > Our initial goal is to update -Warray-bounds

Re: [RFC] how to handle the combination of -fstrict-flex-arrays + -Warray-bounds

2022-10-22 Thread Martin Sebor via Gcc-patches
On 10/21/22 09:29, Qing Zhao wrote: Hi, (FAM below refers to Flexible Array Members): I need inputs on how to handle the combination of -fstrict-flex-arrays + -Warray-bounds. Our initial goal is to update -Warray-bounds with multiple levels of -fstrict-flex-arrays=N to issue warnings accord

[RFC] how to handle the combination of -fstrict-flex-arrays + -Warray-bounds

2022-10-21 Thread Qing Zhao via Gcc-patches
Hi, (FAM below refers to Flexible Array Members): I need inputs on how to handle the combination of -fstrict-flex-arrays + -Warray-bounds. Our initial goal is to update -Warray-bounds with multiple levels of -fstrict-flex-arrays=N to issue warnings according to the different levels of ā€œNā€.