From patchwork Tue Mar 29 02:20:55 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Peter Bergner X-Patchwork-Id: 88709 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 1C789B6F7C for ; Tue, 29 Mar 2011 13:21:11 +1100 (EST) Received: (qmail 25151 invoked by alias); 29 Mar 2011 02:21:06 -0000 Received: (qmail 25143 invoked by uid 22791); 29 Mar 2011 02:21:06 -0000 X-SWARE-Spam-Status: No, hits=-1.4 required=5.0 tests=AWL, BAYES_00, SPF_SOFTFAIL, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from e36.co.us.ibm.com (HELO e36.co.us.ibm.com) (32.97.110.154) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 29 Mar 2011 02:20:58 +0000 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e36.co.us.ibm.com (8.14.4/8.13.1) with ESMTP id p2T2Fav8013813 for ; Mon, 28 Mar 2011 20:15:36 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id p2T2Kv6q117268 for ; Mon, 28 Mar 2011 20:20:57 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p2T2Kvew027305 for ; Mon, 28 Mar 2011 20:20:57 -0600 Received: from [192.168.1.101] (vorma.rchland.ibm.com [9.10.86.174]) by d03av02.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p2T2Kus7027242; Mon, 28 Mar 2011 20:20:56 -0600 Subject: Re: [PING][PATCH, testsuite] Update gcc.dg/stack-usage-1.c SIZE values for powerpc From: Peter Bergner To: Dominique Dhumieres Cc: gcc-patches@gcc.gnu.org, mikestump@comcast.net In-Reply-To: <20110328215020.9EDFA3BE18@mailhost.lps.ens.fr> References: <20110328215020.9EDFA3BE18@mailhost.lps.ens.fr> Date: Mon, 28 Mar 2011 21:20:55 -0500 Message-ID: <1301365255.3679.16.camel@otta> Mime-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org On Mon, 2011-03-28 at 23:50 +0200, Dominique Dhumieres wrote: > > Just guessing at the numbers, does the following patch fix the > > failures for you? > > As I am currently bootstrapping gcc, I cannot regtest right now, but running the > test manually I get 256 at -m32 (I guess this is right) while I get 272 at -m64 > (so the test will fail). Ok, slightly updated. How about this? Although it seems strange that darwin has such a large amount of inherent stack usage compare to linux. Peter Index: gcc/testsuite/gcc.dg/stack-usage-1.c =================================================================== --- gcc/testsuite/gcc.dg/stack-usage-1.c (revision 171620) +++ gcc/testsuite/gcc.dg/stack-usage-1.c (working copy) @@ -31,11 +31,19 @@ # define SIZE 248 # endif #elif defined (__powerpc64__) || defined (__PPC64__) -# define SIZE 180 +# if defined (__APPLE__) +# define SIZE 132 +# else +# define SIZE 180 +# endif #elif defined (__powerpc__) || defined (__PPC__) || defined (__ppc__) \ || defined (__POWERPC__) || defined (PPC) || defined (_IBMR2) # if defined (__ALTIVEC__) -# define SIZE 220 +# if defined (__APPLE__) +# define SIZE 204 +# else +# define SIZE 220 +# endif # else # define SIZE 240 # endif