Re: [PATCH 1/1] Replace flag_strict_flex_arrays with DECL_NOT_FLEXARRAY in middle-end

2023-01-12 Thread Richard Biener via Gcc-patches
On Thu, 12 Jan 2023, Qing Zhao wrote: > We should not directly check flag_strict_flex_arrays in the middle end. > Instead, check DECL_NOT_FLEXARRAY(array_field_decl) which is set by > C/C++ FEs according to -fstrict-flex-arrays and the corresponding attribute > attached to the array_field. > > As

[PATCH 1/1] Replace flag_strict_flex_arrays with DECL_NOT_FLEXARRAY in middle-end

2023-01-12 Thread Qing Zhao via Gcc-patches
We should not directly check flag_strict_flex_arrays in the middle end. Instead, check DECL_NOT_FLEXARRAY(array_field_decl) which is set by C/C++ FEs according to -fstrict-flex-arrays and the corresponding attribute attached to the array_field. As a result, We will lose the LEVEL information of -f