Sorry, Please ignore this email.
Qing
> On Dec 6, 2022, at 11:14 AM, Qing Zhao wrote:
>
> '-Wstrict-flex-arrays'
> Warn about inproper usages of flexible array members according to
> the LEVEL of the 'strict_flex_array (LEVEL)' attribute attached to
> the trailing array field of a s
'-Wstrict-flex-arrays'
Warn about inproper usages of flexible array members according to
the LEVEL of the 'strict_flex_array (LEVEL)' attribute attached to
the trailing array field of a structure if it's available,
otherwise according to the LEVEL of the option
'-fstrict-fl
> On Dec 5, 2022, at 10:16 AM, Richard Biener wrote:
>
> On Fri, 2 Dec 2022, Qing Zhao wrote:
>
>>
>>
>>> On Dec 2, 2022, at 2:20 AM, Richard Biener wrote:
>>>
>>> On Fri, 2 Dec 2022, Richard Biener wrote:
>>>
On Thu, 1 Dec 2022, Siddhesh Poyarekar wrote:
> On 2022-12-01 1
On Fri, 2 Dec 2022, Qing Zhao wrote:
>
>
> > On Dec 2, 2022, at 2:20 AM, Richard Biener wrote:
> >
> > On Fri, 2 Dec 2022, Richard Biener wrote:
> >
> >> On Thu, 1 Dec 2022, Siddhesh Poyarekar wrote:
> >>
> >>> On 2022-12-01 11:42, Kees Cook wrote:
> On Wed, Nov 30, 2022 at 02:25:56PM +
> On Dec 2, 2022, at 2:20 AM, Richard Biener wrote:
>
> On Fri, 2 Dec 2022, Richard Biener wrote:
>
>> On Thu, 1 Dec 2022, Siddhesh Poyarekar wrote:
>>
>>> On 2022-12-01 11:42, Kees Cook wrote:
On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
> '-Wstrict-flex-arrays'
>
> On Dec 2, 2022, at 2:16 AM, Richard Biener wrote:
>
> On Thu, 1 Dec 2022, Siddhesh Poyarekar wrote:
>
>> On 2022-12-01 11:42, Kees Cook wrote:
>>> On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
'-Wstrict-flex-arrays'
Warn about inproper usages of flexible array me
On Fri, 2 Dec 2022, Richard Biener wrote:
> On Thu, 1 Dec 2022, Siddhesh Poyarekar wrote:
>
> > On 2022-12-01 11:42, Kees Cook wrote:
> > > On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
> > >> '-Wstrict-flex-arrays'
> > >> Warn about inproper usages of flexible array members ac
On Thu, 1 Dec 2022, Siddhesh Poyarekar wrote:
> On 2022-12-01 11:42, Kees Cook wrote:
> > On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
> >> '-Wstrict-flex-arrays'
> >> Warn about inproper usages of flexible array members according to
> >> the LEVEL of the 'strict_flex_arr
On 2022-12-01 18:19, Kees Cook wrote:
On Thu, Dec 01, 2022 at 10:27:41PM +, Qing Zhao wrote:
Hi, Sid,
Thanks a lot for the input.
After more thinking based on your and Kees’ comments, I have the following
thought:
1. -fstrict-flex-arrays=level should control both GCC code gen and warning
On Thu, Dec 01, 2022 at 10:27:41PM +, Qing Zhao wrote:
> Hi, Sid,
>
> Thanks a lot for the input.
>
> After more thinking based on your and Kees’ comments, I have the following
> thought:
>
> 1. -fstrict-flex-arrays=level should control both GCC code gen and warnings
> consistently;
> 2. W
Hi, Sid,
Thanks a lot for the input.
After more thinking based on your and Kees’ comments, I have the following
thought:
1. -fstrict-flex-arrays=level should control both GCC code gen and warnings
consistently;
2. We need warnings specifically for -fstrict-flex-arrays=level to report any
misu
On 2022-12-01 11:42, Kees Cook wrote:
On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
'-Wstrict-flex-arrays'
Warn about inproper usages of flexible array members according to
the LEVEL of the 'strict_flex_array (LEVEL)' attribute attached to
the trailing array field
Richard,
What’s your opinion on this?
Do we need one separate warning option to report the misuse of flexible array
member only?
Or we just combine such warnings into -Warray-bounds when it combines with
-fstrict-flex-arrays?
Thanks.
Qing
> On Dec 1, 2022, at 12:18 PM, Kees Cook wrote:
>
>
On Thu, Dec 01, 2022 at 05:04:02PM +, Qing Zhao wrote:
>
>
> > On Dec 1, 2022, at 11:42 AM, Kees Cook wrote:
> >
> > On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
> >> '-Wstrict-flex-arrays'
> >> Warn about inproper usages of flexible array members according to
> >> the
> On Dec 1, 2022, at 11:42 AM, Kees Cook wrote:
>
> On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
>> '-Wstrict-flex-arrays'
>> Warn about inproper usages of flexible array members according to
>> the LEVEL of the 'strict_flex_array (LEVEL)' attribute attached to
>> the
On Wed, Nov 30, 2022 at 02:25:56PM +, Qing Zhao wrote:
> '-Wstrict-flex-arrays'
> Warn about inproper usages of flexible array members according to
> the LEVEL of the 'strict_flex_array (LEVEL)' attribute attached to
> the trailing array field of a structure if it's available,
>
'-Wstrict-flex-arrays'
Warn about inproper usages of flexible array members according to
the LEVEL of the 'strict_flex_array (LEVEL)' attribute attached to
the trailing array field of a structure if it's available,
otherwise according to the LEVEL of the option
'-fstrict-fl
17 matches
Mail list logo