Re: [PATCH] mips: Fix an ICE caused by r12-7962

2022-04-02 Thread Jakub Jelinek via Gcc-patches
On Sat, Apr 02, 2022 at 06:53:55PM +0800, Xi Ruoyao wrote: > I made a mistake in r12-7962 and it causes an ICE running g++.dg-struct- > layout-1 tests. The fix and a reduced test are included in this patch. > Ok for trunk? > > > > DECL_SIZE(x) is NULL if x is a flexible arra

[PATCH] mips: Fix an ICE caused by r12-7962

2022-04-02 Thread Xi Ruoyao via Gcc-patches
I made a mistake in r12-7962 and it causes an ICE running g++.dg-struct- layout-1 tests. The fix and a reduced test are included in this patch. Ok for trunk? DECL_SIZE(x) is NULL if x is a flexible array member, but I forgot to check it in r12-7962. Then if we increase the