Re: [PATCH] c: Handle MEM_REF in c_fully_fold* [PR94179]

2020-03-16 Thread Jeff Law via Gcc-patches
On Mon, 2020-03-16 at 09:23 +0100, Jakub Jelinek via Gcc-patches wrote: > Hi! > > The recent match.pd changes can generate a MEM_REF which can be seen by the > C FE folding routines. Unlike the C++ FE, they weren't expected in the C FE > yet. MEM_REF should be handled like INDIRECT_REF, except t

[PATCH] c: Handle MEM_REF in c_fully_fold* [PR94179]

2020-03-16 Thread Jakub Jelinek via Gcc-patches
Hi! The recent match.pd changes can generate a MEM_REF which can be seen by the C FE folding routines. Unlike the C++ FE, they weren't expected in the C FE yet. MEM_REF should be handled like INDIRECT_REF, except that it has two operands rather than just one and that we should preserve the type