From patchwork Wed Jun 20 07:40:17 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kaz Kojima X-Patchwork-Id: 165908 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 CDFDAB6EE6 for ; Wed, 20 Jun 2012 17:41:15 +1000 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1340782877; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:Message-Id:To:Cc:Subject:From:In-Reply-To:References: Mime-Version:Content-Type:Content-Transfer-Encoding:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=wReCoqrOGDPsAu4ohVArwuwTNU8=; b=PXUJdx3yU4WKm/GlIU7EBLA5Jnc99FEcBwvZj3rZZfGeDL424fxYVEXy0St08s eoNvnMwgWmffbJ4H9IOsiEmVt/FuLjqNlS6uywhaWZaVOnRnSwausMT+GHcRrImT xg9lXra/2eW3PUC4B8TWeRfjA+Ncc8HwCAgO8wuOBxpgU= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:Message-Id:To:Cc:Subject:From:In-Reply-To:References:Mime-Version:Content-Type:Content-Transfer-Encoding:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=aCVV+FqMFZvXGUxrmVxUfjD5WGlxQog+NieRZv/d6hOVlY3Ks0adwmpcFADtD/ T+qQ2+bdec1L5HldxsicCWZIaxK/uA3NvLle24F82pAGlmj1p0qNZrwZLYfqd0vS f15Zv2Z2DOjD6QHKe7IX38pWEbB+74JorS43cmLyO/8UY=; Received: (qmail 19700 invoked by alias); 20 Jun 2012 07:41:11 -0000 Received: (qmail 19503 invoked by uid 22791); 20 Jun 2012 07:41:09 -0000 X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL, BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_THREADED, RCVD_VIA_APNIC, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mo11.iij4u.or.jp (HELO mo.iij4u.or.jp) (210.138.174.79) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 20 Jun 2012 07:40:42 +0000 Received: by mo.iij4u.or.jp (mo11) id q5K7eJpH013377; Wed, 20 Jun 2012 16:40:19 +0900 Received: from localhost (238.152.138.210.bn.2iij.net [210.138.152.238]) by mbox.iij4u.or.jp (mbox11) id q5K7eIVN011759; Wed, 20 Jun 2012 16:40:18 +0900 Date: Wed, 20 Jun 2012 16:40:17 +0900 (JST) Message-Id: <20120620.164017.124728594.kkojima@rr.iij4u.or.jp> To: ebotcazou@adacore.com Cc: gcc-patches@gcc.gnu.org Subject: Re: [patch committed testsuite] Tweak gcc.dg/stack-usage-1.c on SH From: Kaz Kojima In-Reply-To: <20120620.162622.344913152.kkojima@rr.iij4u.or.jp> References: <20120620.073107.280138156.kkojima@rr.iij4u.or.jp> <201206200906.13284.ebotcazou@adacore.com> <20120620.162622.344913152.kkojima@rr.iij4u.or.jp> 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 >> This is wrong, please remove the dg-options line and do like the other targets. > > I'll revert that line and use my patch in the trail #11 of > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=53621. I've applied the patch below. I'll backport it release branches. Regards, kaz --- 2012-06-19 Kaz Kojima * gcc.dg/stack-usage-1.c: Remove dg-options line for sh targets and add __sh__ case. --- ORIG/trunk/gcc/testsuite/gcc.dg/stack-usage-1.c 2012-06-20 10:01:51.000000000 +0900 +++ trunk/gcc/testsuite/gcc.dg/stack-usage-1.c 2012-06-20 16:28:31.000000000 +0900 @@ -1,6 +1,5 @@ /* { dg-do compile } */ /* { dg-options "-fstack-usage" } */ -/* { dg-options "-fstack-usage -fomit-frame-pointer" { target { sh*-*-* } } } */ /* This is aimed at testing basic support for -fstack-usage in the back-ends. See the SPARC back-end for example (grep flag_stack_usage_info in sparc.c). @@ -61,6 +60,8 @@ # define SIZE (256 - __EPIPHANY_STACK_OFFSET__) #elif defined (__RL78__) # define SIZE 254 +#elif defined (__sh__) +# define SIZE 252 #else # define SIZE 256 #endif