This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
[PATCH] Too large buffers in testsuite for SPUs
- From: Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- To: newlib at sources dot redhat dot com
- Date: Mon, 04 Dec 2006 14:53:07 +0900 (LMT)
- Subject: [PATCH] Too large buffers in testsuite for SPUs
Attached is a patch to fix the following problem:
- Too large buffers in tstring.c cause stack overflow on SPUs.
2006-12-04 Kazunori Asayama <asayama@sm.sony.co.jp>
* testsuite/newlib.string/tstring.c:
Index: newlib/newlib/testsuite/newlib.string/tstring.c
===================================================================
--- newlib.orig/newlib/testsuite/newlib.string/tstring.c
+++ newlib/newlib/testsuite/newlib.string/tstring.c
@@ -10,8 +10,12 @@
#include <stdlib.h>
#ifndef MAX_1
+#ifdef __SPU__
+#define MAX_1 11000
+#else
#define MAX_1 33000
#endif
+#endif
#define MAX_2 (2 * MAX_1 + MAX_1 / 10)