Re: [PATCH, PR58942, Cilk+] Fix ICE when pointer is used in array notation

2014-05-30 Thread Jeff Law
On 05/25/14 03:31, Zamyatin, Igor wrote: Hi! Following patch handles the case of pointers in Cilk+ builtins. Regtested in x86_64. Ok for trunk and 4.9? Thanks, Igor gcc/c/ChangeLog: 2014-05-23 Igor Zamyatin PR c/58942 * c-array-notation.c (fix_builtin_array_notation_fn): Handle the case

RE: [PATCH, PR58942, Cilk+] Fix ICE when pointer is used in array notation

2014-05-26 Thread Zamyatin, Igor
> BTW, similar testcase seems to segfault too: > > int foo (int*p, int *i) > { > return __sec_reduce_max_ind(p[1:i]); > } > This one should be fixed by r210930 Thanks, Igor

Re: [PATCH, PR58942, Cilk+] Fix ICE when pointer is used in array notation

2014-05-25 Thread Marek Polacek
On Sun, May 25, 2014 at 09:31:50AM +, Zamyatin, Igor wrote: > +/* { dg-do compile } */ > +/* { dg-options "-fcilkplus" } */ > + > +int foo (int*p, int i) > +{ > + return __sec_reduce_max_ind(p[1:i]); > +} BTW, similar testcase seems to segfault too: int foo (int*p, int *i) { return __sec_r