Re: [PATCH] x86-64: Use R10 for profiling large model

2021-01-08 Thread H.J. Lu via Gcc-patches
checking in. Thanks. -- H.J. From 6ddaec60b84ccdfb11224440bfffa86112244d88 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Thu, 7 Jan 2021 14:27:49 -0800 Subject: [PATCH] x86-64: Use R10 for profiling large model R10 is caller-saved. Although it can be used as a static chain registe

Re: [PATCH] x86-64: Use R10 for profiling large model

2021-01-08 Thread Uros Bizjak via Gcc-patches
> Since R10 is preserved when calling mcount, R10 can be used a scratch > register to call mcount in large model. Please mention that R10 can be used as a static chain registers and is preserved when calling mcount for nested functions. > gcc/ > > PR target/98482 > * config/i386/i386.c (x86_funct

[PATCH] x86-64: Use R10 for profiling large model

2021-01-07 Thread H.J. Lu via Gcc-patches
Since R10 is preserved when calling mcount, R10 can be used a scratch register to call mcount in large model. gcc/ PR target/98482 * config/i386/i386.c (x86_function_profiler): Use R10 to call mcount in large model. Sorry for large model with PIC. gcc/testsuite/