[commit] Fix testcase for SPU (Re: [RFA/testsuite] stack check)

Ulrich Weigand uweigand@de.ibm.com
Thu Sep 11 16:26:00 GMT 2008


Jerome Guitton wrote:

> void big_frame ()
> {
>   char S [524188];
>   small_frame ();
> }

This breaks on the SPU where we only have 256 KB local store.

I've committed the following patch to reduce stack consumption
on the SPU.

Bye,
Ulrich


ChangeLog:

	* gdb.base/stack-checking.c (big_frame): Reduce stack consumption
	on SPU.

Index: gdb/testsuite/gdb.base/stack-checking.c
===================================================================
RCS file: /cvs/src/src/gdb/testsuite/gdb.base/stack-checking.c,v
retrieving revision 1.1
diff -c -p -r1.1 stack-checking.c
*** gdb/testsuite/gdb.base/stack-checking.c	8 Sep 2008 15:54:29 -0000	1.1
--- gdb/testsuite/gdb.base/stack-checking.c	11 Sep 2008 16:20:29 -0000
*************** void medium_frame ()
*** 36,42 ****
--- 36,46 ----
  
  void big_frame ()
  {
+ #ifdef __SPU__
+   char S [131072];
+ #else
    char S [524188];
+ #endif
    small_frame ();
  }
  


-- 
  Dr. Ulrich Weigand
  GNU Toolchain for Linux on System z and Cell BE
  Ulrich.Weigand@de.ibm.com



More information about the Gdb-patches mailing list