From af4c64a70ea1a5db2ec71ee0b99bc7353bd5bc3d Mon Sep 17 00:00:00 2001 From: "Balaji V. Iyer" Date: Wed, 26 Jun 2013 02:31:27 +0000 Subject: [PATCH] +2013-06-25 Balaji V. +2013-06-25 Balaji V. Iyer + + * c-c++-common/cilk-plus/AN/gather_scatter.c: Fixed a bug of stack + overflow due to size of arrays. + From-SVN: r200414 --- gcc/testsuite/ChangeLog | 6 ++++++ gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c | 6 +++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index 72826b60a37..911648bcf1c 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,3 +1,9 @@ +2013-06-25 Balaji V. Iyer + + 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 PR tree-optimization/57705 diff --git a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c b/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c index 9cb16e147fe..faee3fcebf6 100644 --- a/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c +++ b/gcc/testsuite/c-c++-common/cilk-plus/AN/gather_scatter.c @@ -1,16 +1,16 @@ /* { dg-do run } */ /* { dg-options "-fcilkplus" } */ -#define NUMBER 100 +#define NUMBER 20 #if HAVE_IO #include #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++)