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 igor.zamya...@intel.com
PR c/58942
* c-array-notation.c
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