This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: [PATCH] Too large buffers in testsuite for SPUs
- From: Jeff Johnston <jjohnstn at redhat dot com>
- To: Kazunori Asayama <asayama at sm dot sony dot co dot jp>
- Cc: newlib at sources dot redhat dot com
- Date: Mon, 04 Dec 2006 12:27:04 -0500
- Subject: Re: [PATCH] Too large buffers in testsuite for SPUs
- References: <20061204.145307.71783312.asayama@echo.sm.sony.co.jp>
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)