diff options
author | Balaji V. Iyer <balaji.v.iyer@intel.com> | 2013-06-26 02:31:27 +0000 |
---|---|---|
committer | Balaji V. Iyer <bviyer@gcc.gnu.org> | 2013-06-25 19:31:27 -0700 |
commit | af4c64a70ea1a5db2ec71ee0b99bc7353bd5bc3d (patch) | |
tree | 86a072c2919eeed420188e551d13a0eb12b0e162 | |
parent | 3ed8a9cd212fe7570da715dac3c63c4c5667bd88 (diff) | |
download | gcc-af4c64a70ea1a5db2ec71ee0b99bc7353bd5bc3d.zip gcc-af4c64a70ea1a5db2ec71ee0b99bc7353bd5bc3d.tar.gz gcc-af4c64a70ea1a5db2ec71ee0b99bc7353bd5bc3d.tar.bz2 |
+2013-06-25 Balaji V.
+2013-06-25 Balaji V. Iyer <balaji.v.iyer@intel.com>
+
+ * c-c++-common/cilk-plus/AN/gather_scatter.c: Fixed a bug of stack
+ overflow due to size of arrays.
+
From-SVN: r200414
-rw-r--r-- | gcc/testsuite/ChangeLog | 6 | ||||
-rw-r--r-- | 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 72826b6..911648b 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -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 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 9cb16e1..faee3fc 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 <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++) |