From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17139 invoked by alias); 3 Jun 2016 01:21:46 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 17128 invoked by uid 89); 3 Jun 2016 01:21:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.3 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=HTo:D*com.cn, HTo:D*cn, D*cn X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 03 Jun 2016 01:21:35 +0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 61E8080500; Fri, 3 Jun 2016 01:21:31 +0000 (UTC) Received: from bigtime.twiddle.net (ovpn-116-38.phx2.redhat.com [10.3.116.38]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u531LScf013192; Thu, 2 Jun 2016 21:21:28 -0400 Subject: Re: [PATCH v2] gcc/config/tilegx/tilegx.c (tilegx_function_profiler): Save r10 to stack before call mcount To: chengang@emindsoft.com.cn, law@redhat.com References: <1464906189-3453-1-git-send-email-chengang@emindsoft.com.cn> Cc: mikestump@comcast.net, gcc-patches@gcc.gnu.org, cmetcalf@ezchip.com, walt@tilera.com, peter.maydell@linaro.org From: Richard Henderson Message-ID: <7d7216cc-352e-e365-eae8-1abd3f26dda0@redhat.com> Date: Fri, 03 Jun 2016 01:21:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.0 MIME-Version: 1.0 In-Reply-To: <1464906189-3453-1-git-send-email-chengang@emindsoft.com.cn> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2016-06/txt/msg00238.txt.bz2 On 06/02/2016 03:23 PM, chengang@emindsoft.com.cn wrote: > fprintf (file, > + "\t{\n" > + "\taddi\tsp, sp, -8\n" > + "\tst\tsp, r10\n" > + "\t}\n" > "\t{\n" You need only do this if cfun->static_chain_decl is set. r~