testsuite: fix vect.exp ASAN errors
Commit Message
The patch fixes a few ASAN errors (global variable access out of bounds).
Patch can bootstrap on x86_64-linux-gnu and survives regression tests.
Ready to be installed?
Thanks,
Martin
gcc/testsuite/ChangeLog:
* gcc.dg/vect/vect-simd-18.c: Fix ASAN error.
* gcc.dg/vect/vect-simd-19.c: Likewise.
* gcc.dg/vect/vect-simd-20.c: Likewise.
---
gcc/testsuite/gcc.dg/vect/vect-simd-18.c | 2 +-
gcc/testsuite/gcc.dg/vect/vect-simd-19.c | 2 +-
gcc/testsuite/gcc.dg/vect/vect-simd-20.c | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
Comments
On 12/15/21 14:24, Martin Liška wrote:
> Ready to be installed?
I'm going to install this as it's quite obvious.
Martin
@@ -17,7 +17,7 @@ foo (int s, int *p)
return r;
}
-int p[10000 / 78];
+int p[10000 / 78 + 1];
int
main ()
@@ -17,7 +17,7 @@ foo (int s, int m, int n, int *p)
return r;
}
-int p[10000 / 78];
+int p[10000 / 78 + 1];
int
main ()
@@ -18,7 +18,7 @@ foo (int s, int m, int n, int *p)
return r;
}
-int p[10000 / 78 * 7];
+int p[(10000 / 78 + 1) * 7];
int
main ()