summaryrefslogtreecommitdiff
path: root/libgomp/testsuite
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-06 14:32:54 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-12-06 14:32:54 +0000
commited235da6ce3bca2f622bdf52cb556e1706662660 (patch)
treeae0d80aedc9ccf8ec7c3aebe22062f58a1334a0a /libgomp/testsuite
parent47d76885bcda196021be3cc7807f06800d0c5684 (diff)
downloadgcc-ed235da6ce3bca2f622bdf52cb556e1706662660.tar.gz
PR libgomp/51132
* testsuite/libgomp.graphite/force-parallel-1.c: Move large arrays to file scope. * testsuite/libgomp.graphite/force-parallel-3.c: Likewise. * testsuite/libgomp.graphite/force-parallel-6.c: Likewise. * testsuite/libgomp.graphite/force-parallel-7.c: Likewise. * testsuite/libgomp.graphite/force-parallel-8.c: Likewise. * testsuite/libgomp.graphite/force-parallel-9.c: Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@182050 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgomp/testsuite')
-rw-r--r--libgomp/testsuite/libgomp.graphite/force-parallel-1.c3
-rw-r--r--libgomp/testsuite/libgomp.graphite/force-parallel-3.c4
-rw-r--r--libgomp/testsuite/libgomp.graphite/force-parallel-6.c5
-rw-r--r--libgomp/testsuite/libgomp.graphite/force-parallel-7.c3
-rw-r--r--libgomp/testsuite/libgomp.graphite/force-parallel-8.c3
-rw-r--r--libgomp/testsuite/libgomp.graphite/force-parallel-9.c4
6 files changed, 13 insertions, 9 deletions
diff --git a/libgomp/testsuite/libgomp.graphite/force-parallel-1.c b/libgomp/testsuite/libgomp.graphite/force-parallel-1.c
index 7f043d83d8b..d168b438823 100644
--- a/libgomp/testsuite/libgomp.graphite/force-parallel-1.c
+++ b/libgomp/testsuite/libgomp.graphite/force-parallel-1.c
@@ -1,9 +1,10 @@
void abort (void);
+int x[10000000];
+
void parloop (int N)
{
int i;
- int x[10000000];
for (i = 0; i < N; i++)
x[i] = i + 3;
diff --git a/libgomp/testsuite/libgomp.graphite/force-parallel-3.c b/libgomp/testsuite/libgomp.graphite/force-parallel-3.c
index 81b356d5c24..ff8680bf03c 100644
--- a/libgomp/testsuite/libgomp.graphite/force-parallel-3.c
+++ b/libgomp/testsuite/libgomp.graphite/force-parallel-3.c
@@ -2,12 +2,12 @@ void abort (void);
#define N 500
+int Z[2*N+2][2*N+2], B[2*N+2][2*N+2];
+
void foo(void)
{
int i,j;
- int Z[2*N+2][2*N+2], B[2*N+2][2*N+2];
-
for (i = 0; i < 2*N+2; i++)
for (j = 0; j < 2*N+2; j++)
B[i][j] = Z[i][j] = i + j;
diff --git a/libgomp/testsuite/libgomp.graphite/force-parallel-6.c b/libgomp/testsuite/libgomp.graphite/force-parallel-6.c
index dcaaf4814b7..995baa9c45b 100644
--- a/libgomp/testsuite/libgomp.graphite/force-parallel-6.c
+++ b/libgomp/testsuite/libgomp.graphite/force-parallel-6.c
@@ -1,10 +1,11 @@
#define N 500
+int X[2*N], Y[2*N], B[2*N];
+int A[2*N][2*N], C[2*N][2*N];
+
int foo(void)
{
int i, j, k;
- int X[2*N], Y[2*N], B[2*N];
- int A[2*N][2*N], C[2*N][2*N];
for (i = 1; i <= N; i++)
{
diff --git a/libgomp/testsuite/libgomp.graphite/force-parallel-7.c b/libgomp/testsuite/libgomp.graphite/force-parallel-7.c
index 9ba9007fe31..0191af085ea 100644
--- a/libgomp/testsuite/libgomp.graphite/force-parallel-7.c
+++ b/libgomp/testsuite/libgomp.graphite/force-parallel-7.c
@@ -1,9 +1,10 @@
#define N 500
+int A[N+5][N+5][N+5];
+
int foo(void)
{
int i, j, k;
- int A[N+5][N+5][N+5];
/* Loop i: carried no dependency. */
for (i = 0; i < N; i++)
diff --git a/libgomp/testsuite/libgomp.graphite/force-parallel-8.c b/libgomp/testsuite/libgomp.graphite/force-parallel-8.c
index 28b9a2a06b9..dc553f53f1d 100644
--- a/libgomp/testsuite/libgomp.graphite/force-parallel-8.c
+++ b/libgomp/testsuite/libgomp.graphite/force-parallel-8.c
@@ -1,9 +1,10 @@
#define N 1500
+int x[N][N], y[N];
+
int foo(void)
{
int i, j;
- int x[N][N], y[N];
for (i = 0; i < N; i++)
{
diff --git a/libgomp/testsuite/libgomp.graphite/force-parallel-9.c b/libgomp/testsuite/libgomp.graphite/force-parallel-9.c
index 36551905f0c..1de43c36740 100644
--- a/libgomp/testsuite/libgomp.graphite/force-parallel-9.c
+++ b/libgomp/testsuite/libgomp.graphite/force-parallel-9.c
@@ -2,12 +2,12 @@ void abort (void);
#define N 500
+int Z[2*N+2][2*N+2], B[2*N+2][2*N+2];
+
void foo(void)
{
int i,j;
- int Z[2*N+2][2*N+2], B[2*N+2][2*N+2];
-
for (i = 0; i < 2*N+2; i++)
for (j = 0; j < 2*N+2; j++)
B[i][j] = Z[i][j] = i + j;