Re: [PATCH] C: Flex array in the middle via type alias is not reported [PR120353]

2025-05-30 Thread Qing Zhao
Thanks. Pushed to trunk. And will pushed to GCC14 after 2-3 weeks. Is that okay? Qing > On May 29, 2025, at 17:04, Joseph Myers wrote: > > On Thu, 29 May 2025, Qing Zhao wrote: > >> The root cause of the bug is: the TYPE_INCLUDES_FLEXARRAY marking of the >> structure type is not copied to its

Re: [PATCH] C: Flex array in the middle via type alias is not reported [PR120353]

2025-05-30 Thread Qing Zhao
> On May 30, 2025, at 12:52, Joseph Myers wrote: > > On Fri, 30 May 2025, Qing Zhao wrote: > >> Thanks. >> Pushed to trunk. >> And will pushed to GCC14 after 2-3 weeks. Is that okay? > > Subject to applying to GCC 15 before GCC 14 (and testing on each release > branch before applying it th

Re: [PATCH] C: Flex array in the middle via type alias is not reported [PR120353]

2025-05-30 Thread Joseph Myers
On Fri, 30 May 2025, Qing Zhao wrote: > Thanks. > Pushed to trunk. > And will pushed to GCC14 after 2-3 weeks. Is that okay? Subject to applying to GCC 15 before GCC 14 (and testing on each release branch before applying it there), yes unless other release managers express concerns. (There is

Re: [PATCH] C: Flex array in the middle via type alias is not reported [PR120353]

2025-05-29 Thread Joseph Myers
On Thu, 29 May 2025, Qing Zhao wrote: > The root cause of the bug is: the TYPE_INCLUDES_FLEXARRAY marking of the > structure type is not copied to its aliased type. > The fix is to copy this marking to all the variant types of the current > structure type. > > The patch has been bootstrapped and

[PATCH] C: Flex array in the middle via type alias is not reported [PR120353]

2025-05-29 Thread Qing Zhao
The root cause of the bug is: the TYPE_INCLUDES_FLEXARRAY marking of the structure type is not copied to its aliased type. The fix is to copy this marking to all the variant types of the current structure type. The patch has been bootstrapped and regression tested on both x86 and aarch64. Okay for