[PATCH] Too large buffers in testsuite for SPUs
Kazunori Asayama
asayama@sm.sony.co.jp
Mon Dec 4 12:21:00 GMT 2006
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)
More information about the Newlib
mailing list