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
> 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
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
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
with a pointer.
gcc/cp/ChangeLog:
2014-05