From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6714 invoked by alias); 11 Sep 2008 16:26:52 -0000 Received: (qmail 6704 invoked by uid 22791); 11 Sep 2008 16:26:51 -0000 X-Spam-Check-By: sourceware.org Received: from mtagate8.de.ibm.com (HELO mtagate8.de.ibm.com) (195.212.29.157) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 11 Sep 2008 16:26:08 +0000 Received: from d12nrmr1607.megacenter.de.ibm.com (d12nrmr1607.megacenter.de.ibm.com [9.149.167.49]) by mtagate8.de.ibm.com (8.13.8/8.13.8) with ESMTP id m8BGQ5i2523352 for ; Thu, 11 Sep 2008 16:26:05 GMT Received: from d12av02.megacenter.de.ibm.com (d12av02.megacenter.de.ibm.com [9.149.165.228]) by d12nrmr1607.megacenter.de.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m8BGQ5xL2576608 for ; Thu, 11 Sep 2008 18:26:05 +0200 Received: from d12av02.megacenter.de.ibm.com (loopback [127.0.0.1]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m8BGQ4BG020179 for ; Thu, 11 Sep 2008 18:26:05 +0200 Received: from tuxmaker.boeblingen.de.ibm.com (tuxmaker.boeblingen.de.ibm.com [9.152.85.9]) by d12av02.megacenter.de.ibm.com (8.12.11.20060308/8.12.11) with SMTP id m8BGQ4Mw020176; Thu, 11 Sep 2008 18:26:04 +0200 Message-Id: <200809111626.m8BGQ4Mw020176@d12av02.megacenter.de.ibm.com> Received: by tuxmaker.boeblingen.de.ibm.com (sSMTP sendmail emulation); Thu, 11 Sep 2008 18:26:04 +0200 Subject: [commit] Fix testcase for SPU (Re: [RFA/testsuite] stack check) To: guitton@adacore.com (Jerome Guitton) Date: Thu, 11 Sep 2008 16:26:00 -0000 From: "Ulrich Weigand" Cc: gdb-patches@sourceware.org In-Reply-To: <20080901170203.GB226@adacore.com> from "Jerome Guitton" at Sep 01, 2008 07:02:03 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-09/txt/msg00235.txt.bz2 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