Hello Everyone,
This patch will fix a FAIL in one of the test cases for array
notations. The reason for fail is that the array sizes were huge and thus it
was causing a stack overflow. This patch should fix the issue. I am committing
this patch as semi-obvious. I am willing to revert this change if anyone has
objections.
2013-06-25 Balaji V. Iyer <[email protected]>
* c-c++-common/cilk-plus/AN/gather_scatter.c: Fixed a bug of stack
overflow due to size of arrays.
Index: gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c
===================================================================
--- gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c (revision
200413)
+++ gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c (working copy)
@@ -1,16 +1,16 @@
/* { dg-do run } */
/* { dg-options "-fcilkplus" } */
-#define NUMBER 100
+#define NUMBER 20
#if HAVE_IO
#include <stdio.h>
#endif
+float array4[NUMBER][NUMBER][NUMBER][NUMBER];
int main(void)
{
int array[NUMBER][NUMBER], array2[NUMBER], array3[NUMBER], x = 0, y;
- int x_correct, y_correct, ii, jj = 0;
- float array4[NUMBER][NUMBER][NUMBER][NUMBER];
+ int x_correct, y_correct, ii, jj = 0, kk = 0, ll = 0;
for (ii = 0; ii < NUMBER; ii++)
{
for (jj = 0; jj < NUMBER; jj++)
Thanks,
Balaji V. Iyer.