+2013-06-25 Balaji V. Iyer <balaji.v.iyer@intel.com>
authorbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jun 2013 02:31:27 +0000 (02:31 +0000)
committerbviyer <bviyer@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 26 Jun 2013 02:31:27 +0000 (02:31 +0000)
+
+       * c-c++-common/cilk-plus/AN/gather_scatter.c: Fixed a bug of stack
+       overflow due to size of arrays.
+

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@200414 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/testsuite/ChangeLog
gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c

index 72826b6..911648b 100644 (file)
@@ -1,3 +1,9 @@
+2013-06-25  Balaji V. Iyer  <balaji.v.iyer@intel.com>
+
+       PR c/57692
+       * c-c++-common/cilk-plus/AN/gather_scatter.c: Fixed a bug of stack
+       overflow due to size of arrays.
+
 2013-06-25  Jakub Jelinek  <jakub@redhat.com>
 
        PR tree-optimization/57705
index 9cb16e1..faee3fc 100644 (file)
@@ -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++)