This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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 (){


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]