Re: [PATCH] Don't fold zero-sized elements (PR c/58346)

2014-01-17 Thread Richard Biener
On Fri, Jan 17, 2014 at 2:37 PM, Marek Polacek wrote: > This is the real fix for PR58346. I'd say the easiest solution is > just not fold the zero-sized elements. > > Bootstrapped/regtested on x86_64-linux, ok for trunk? Ok. Thanks, Richard. > 2014-01-17 Marek Polacek > > PR c/58346

[PATCH] Don't fold zero-sized elements (PR c/58346)

2014-01-17 Thread Marek Polacek
This is the real fix for PR58346. I'd say the easiest solution is just not fold the zero-sized elements. Bootstrapped/regtested on x86_64-linux, ok for trunk? 2014-01-17 Marek Polacek PR c/58346 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element size i