Commit 5423ab77 by Richard Guenther Committed by Richard Biener

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
parent 880f987e
2010-08-26 Richard Guenther <rguenther@suse.de> 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. * gcc.dg/vect/vect-64.c: Fix out-of-bound array accesses.
* gcc.dg/vect/fast-math-slp-27.c: Likewise. * gcc.dg/vect/fast-math-slp-27.c: Likewise.
* gcc.dg/vect/no-section-anchors-vect-64.c: Likewise. * gcc.dg/vect/no-section-anchors-vect-64.c: Likewise.
......
...@@ -5,7 +5,7 @@ int toto() ...@@ -5,7 +5,7 @@ int toto()
{ {
/* Scop 1. */ /* Scop 1. */
int i, j, k; int i, j, k;
int a[100][100]; int a[201][100];
int b[100]; int b[100];
int N = foo (); int N = foo ();
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
void foo (int); void foo (int);
int test () int test ()
{ {
int a[N]; int a[N+6];
unsigned i; unsigned i;
for (i = 0; i < N; i++) for (i = 0; i < N; i++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment