[PATCH] x86-64: Use R10 and R11 for profiling large model with PIC

2021-01-08 Thread H.J. Lu via Gcc-patches
ratch register. We can use R10 and R11 to call mcount in large model with PIC. OK for master? Thanks. -- H.J. From b2e0bccbdba630a1f7f8b601e19b7302e375e240 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Fri, 8 Jan 2021 05:20:19 -0800 Subject: [PATCH] x86-64: Use R10 and R11 for prof

Re: [PATCH] x86-64: Use R10 and R11 for profiling large model with PIC

2021-01-08 Thread Uros Bizjak via Gcc-patches
On Fri, Jan 8, 2021 at 2:28 PM H.J. Lu wrote: > > On Fri, Jan 8, 2021 at 4:50 AM H.J. Lu wrote: > > > > On Fri, Jan 8, 2021 at 1:24 AM Uros Bizjak wrote: > > > > > > > Since R10 is preserved when calling mcount, R10 can be used a scratch > > > > register to call mcount in large model. > > > > >

Re: [PATCH] x86-64: Use R10 and R11 for profiling large model with PIC

2021-01-08 Thread H.J. Lu via Gcc-patches
*%%r10\n", > > > > + mcount_name); > > > > + break; > > > > > > This is the patch I am checking in. > > > > > > > For NO_PROFILE_COUNTERS targets, R11 is a scratch register. We can use > > R10 and R11 to ca