diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2021-01-08 05:20:19 -0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2021-01-08 06:46:04 -0800 |
commit | 76be18f442948d1a4bc49a7d670b07097f9e5983 (patch) | |
tree | d4d5c53ce81ccdec74ab8805cc9f6c5bf9f959d7 /gcc/function.c | |
parent | 77a375a3ebf822914c19835ac690c67694c70bd0 (diff) | |
download | gcc-76be18f442948d1a4bc49a7d670b07097f9e5983.zip gcc-76be18f442948d1a4bc49a7d670b07097f9e5983.tar.gz gcc-76be18f442948d1a4bc49a7d670b07097f9e5983.tar.bz2 |
x86-64: Use R10 and R11 for profiling large model with PIC
For NO_PROFILE_COUNTERS targets, R11 is a scratch register. We can use
R10 and R11 to call mcount in large model with PIC.
gcc/
PR target/98482
* config/i386/i386.c (x86_function_profiler): Use R10 and R11
to call mcount in large model with PIC for NO_PROFILE_COUNTERS
targets.
gcc/testsuite/
PR target/98482
* gcc.target/i386/pr98482-2.c: Updated.
Diffstat (limited to 'gcc/function.c')
0 files changed, 0 insertions, 0 deletions