This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Fix for pr40829, unpredictable segv in gcc.dg/vect/no-scevccp-noreassoc-outer-2.c
- From: simonb at google dot com (Simon Baldwin)
- To: gcc-patches at gcc dot gnu dot org
- Date: Mon, 27 Jul 2009 12:36:08 +0100 (BST)
- Subject: [PATCH] Fix for pr40829, unpredictable segv in gcc.dg/vect/no-scevccp-noreassoc-outer-2.c
This patch fixes an unpredictable segmentation violation in the testsuite
test no-scevccp-noreassoc-outer-2.c.
Tested and confirmed with i686 and x86_64. Okay for mainline?
gcc/testsuite/ChangeLog:
2009-07-27 Simon Baldwin <simonb@google.com>
* gcc.dg/vect/no-scevccp-noreassoc-outer-2.c: Extended array 'a'
so that indexing no longer runs off array end.
Index: gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-outer-2.c
===================================================================
--- gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-outer-2.c (revision 150108)
+++ gcc/testsuite/gcc.dg/vect/no-scevccp-noreassoc-outer-2.c (working copy)
@@ -4,7 +4,7 @@
#include "tree-vect.h"
#define N 40
-int a[200*N];
+int a[200*N+N];
__attribute__ ((noinline)) void
foo (){