This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH v2] gcc/config/tilegx/tilegx.c (tilegx_function_profiler): Save r10 to stack before call mcount
- From: Chen Gang <chengang at emindsoft dot com dot cn>
- To: Richard Henderson <rth at redhat dot com>, law at redhat dot com
- Cc: mikestump at comcast dot net, gcc-patches at gcc dot gnu dot org, cmetcalf at ezchip dot com, walt at tilera dot com, peter dot maydell at linaro dot org
- Date: Sat, 04 Jun 2016 21:10:14 +0800
- Subject: Re: [PATCH v2] gcc/config/tilegx/tilegx.c (tilegx_function_profiler): Save r10 to stack before call mcount
- Authentication-results: sourceware.org; auth=none
- References: <1464906189-3453-1-git-send-email-chengang at emindsoft dot com dot cn> <7d7216cc-352e-e365-eae8-1abd3f26dda0 at redhat dot com>
On 6/3/16 09:21, Richard Henderson wrote:
> 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.
>
OK, thanks, I shall send patch v3 for it, within this week end.
Thanks.
--
Chen Gang (éå)
Managing Natural Environments is the Duty of Human Beings.