Re: [PATCH] Fix compute_objsize ICE on VLA ARRAY_REF (PR tree-optimization/91945)

2019-11-05 Thread Richard Biener
On Tue, 5 Nov 2019, Jakub Jelinek wrote: > Hi! > > As the testcase shows, ARRAY_REF on an array with variable length element > doesn't have INTEGER_CST TYPE_SIZE_UNIT which the code was assuming. > The following patch punts in that case. > > Bootstrapped/regtested on x86_64-linux and i686-linux,

[PATCH] Fix compute_objsize ICE on VLA ARRAY_REF (PR tree-optimization/91945)

2019-11-04 Thread Jakub Jelinek
Hi! As the testcase shows, ARRAY_REF on an array with variable length element doesn't have INTEGER_CST TYPE_SIZE_UNIT which the code was assuming. The following patch punts in that case. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2019-11-05 Jakub Jelinek PR