This is the mail archive of the newlib@sourceware.org mailing list for the newlib 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]

Re: [PATCH] Too large buffers in testsuite for SPUs


Patch checked in.

-- Jeff J.

Kazunori Asayama wrote:
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)


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