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]: Reduce array size in libgomp.graphite/force-parallel-2.c to fix PR42135


   The attached patch reduces the array size in the libgomp.graphite/force-parallel-2.c
testcase from 10000 to 500 so that it will fit into stacksize's as small as 2MB per
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42135#c2. This revised testcase now passes
on x86_64-apple-darwin10. Okay for gcc trunk?
                       Jack

2009-11-25  Jack Howarth <howarth@bromo.med.uc.edu>

	PR testsuite/42135
	* libgomp.graphite/force-parallel-2.c: Reduce array size.

Index: libgomp/testsuite/libgomp.graphite/force-parallel-2.c
===================================================================
--- libgomp/testsuite/libgomp.graphite/force-parallel-2.c	(revision 154653)
+++ libgomp/testsuite/libgomp.graphite/force-parallel-2.c	(working copy)
@@ -3,7 +3,7 @@
 void parloop (int N)
 {
   int i, j;
-  int x[10000][10000];
+  int x[500][500];
 
   for (i = 0; i < N; i++)
     for (j = 0; j < N; j++)
@@ -17,7 +17,7 @@
 
 int main(void)
 {
-  parloop(10000);
+  parloop(500);
 
   return 0;
 }


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