scop-0.c: Fix out-of-bound array accesses.

2010-08-26  Richard Guenther  <rguenther@suse.de>

	* gcc.dg/graphite/scop-0.c: Fix out-of-bound array accesses.
	* gcc.dg/graphite/scop-21.c: Likewise.

From-SVN: r163564
This commit is contained in:
Richard Guenther 2010-08-26 13:10:15 +00:00 committed by Richard Biener
parent 880f987ea7
commit 5423ab77ff
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-08-26 Richard Guenther <rguenther@suse.de>
* gcc.dg/graphite/scop-0.c: Fix out-of-bound array accesses.
* gcc.dg/graphite/scop-21.c: Likewise.
2010-08-26 Richard Guenther <rguenther@suse.de>
* gcc.dg/vect/vect-64.c: Fix out-of-bound array accesses.

View File

@ -5,7 +5,7 @@ int toto()
{
/* Scop 1. */
int i, j, k;
int a[100][100];
int a[201][100];
int b[100];
int N = foo ();

View File

@ -2,7 +2,7 @@
void foo (int);
int test ()
{
int a[N];
int a[N+6];
unsigned i;
for (i = 0; i < N; i++)