From patchwork Mon Aug 6 09:48:47 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nick Clifton X-Patchwork-Id: 175306 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 190912C00A0 for ; Mon, 6 Aug 2012 19:54:44 +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=1344851685; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=qb1y8CUZ/xcLabsJ3M5i k4YLxyw=; b=wl0RzwgCoa289Psnp1NoUU/Kf83bKbfFnzGNwz9PHKiWKSy/4U5+ QT+O2zsQ3me5PWCBdgAfaBqlPqR90CBYyCcCmJZ2Ku8KhXRUNsbVti8haNsKDRsv Muq5UR4d8YSIMytspavRMdF9iRvUtgTA81qjF53NeCqpuakcKTcgJf4= 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:From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=oyrvSnLz+iEybcZEyoiGNlGhB9xq1hab4ODepXbg4buJnurFFVOlfez3qayESX htXQXloMjj4+tFS9n10hQpOMWS4hSL0wk3TB8w8/esZN7ggySkQ9vEKQMgbYAdcu E/HBcszPImuIGw3kyOWXgJVY3POst54tlrzLB4O2uc+7k=; Received: (qmail 31868 invoked by alias); 6 Aug 2012 09:54:41 -0000 Received: (qmail 31859 invoked by uid 22791); 6 Aug 2012 09:54:40 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 06 Aug 2012 09:54:23 +0000 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q769sMBO014151 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 6 Aug 2012 05:54:23 -0400 Received: from Cadeux.redhat.com (vpn1-7-128.ams2.redhat.com [10.36.7.128]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q769sJc2021852 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Mon, 6 Aug 2012 05:54:21 -0400 From: Nick Clifton To: law@redhat.com, aoliva@redhat.com Cc: gcc-patches@gcc.gnu.org Subject: RFA: MN10300: Add support for -fstack-usage Date: Mon, 06 Aug 2012 10:48:47 +0100 Message-ID: <873940bbb4.fsf@redhat.com> 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 Hi Jeff, Hi Alex, Please may I apply the small patch below to add support for reporting stack usage to the MN10300 port ? Cheers Nick gcc/ChangeLog 2012-08-06 Nick Clifton * config/mn10300/mn10300.c (mn10300_expand_prologue): Report stack usage if requested. Index: gcc/config/mn10300/mn10300.c =================================================================== --- gcc/config/mn10300/mn10300.c (revision 190157) +++ gcc/config/mn10300/mn10300.c (working copy) @@ -744,6 +744,9 @@ { HOST_WIDE_INT size = mn10300_frame_size (); + if (flag_stack_usage_info) + current_function_static_stack_size = size; + /* If we use any of the callee-saved registers, save them now. */ mn10300_gen_multiple_store (mn10300_get_live_callee_saved_regs (NULL));