This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [Patch] Fix the test libgomp.graphite/force-parallel-6.c
- From: Mike Stump <mikestump at comcast dot net>
- To: Dominique Dhumieres <dominiq at lps dot ens dot fr>
- Cc: gcc-patches at gcc dot gnu dot org, rguenth at gcc dot gnu dot org
- Date: Tue, 23 Oct 2012 15:20:31 -0700
- Subject: Re: [Patch] Fix the test libgomp.graphite/force-parallel-6.c
- References: <20121023133311.72B463BABA@mailhost.lps.ens.fr>
On Oct 23, 2012, at 6:33 AM, Dominique Dhumieres <dominiq@lps.ens.fr> wrote:
> The test libgomp.graphite/force-parallel-6.c is not valid as it tries
> to write Y[2*N] for Y defined as
Ok. [ Could someone check it in for Dominique? ]
> 2012-10-23 Dominique d'Humieres <dominiq@lps.ens.fr>
>
> * testsuite/libgomp.graphite/force-parallel-6.c: Adjust the loops.
>
> --- ../_clean/libgomp/testsuite/libgomp.graphite/force-parallel-6.c 2011-12-06 15:36:08.000000000 +0100
> +++ libgomp/testsuite/libgomp.graphite/force-parallel-6.c 2012-10-23 14:55:12.000000000 +0200
> @@ -7,13 +7,13 @@ int foo(void)
> {
> int i, j, k;
>
> - for (i = 1; i <= N; i++)
> + for (i = 0; i < N; i++)
> {
> X[i] = Y[i] + 10;
> - for (j = 1; j <= N; j++)
> + for (j = 0; j < N; j++)
> {
> B[j] = A[j][N];
> - for (k = 1; k <= N; k++)
> + for (k = 0; k < N; k++)
> {
> A[j+1][k] = B[j] + C[j][k];
> }