diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-02-06 10:57:24 -0800 |
---|---|---|
committer | H.J. Lu <(no_default)> | 2024-02-06 11:02:44 -0800 |
commit | f2a060820c24724bb48ee006d257c449e4d94b72 (patch) | |
tree | 130d11c9cfd516befdaa69192f81801862e6fe58 /gcc | |
parent | 1befe47f64bf0b964be90730e2cbef550cb6d2b7 (diff) | |
download | gcc-f2a060820c24724bb48ee006d257c449e4d94b72.zip gcc-f2a060820c24724bb48ee006d257c449e4d94b72.tar.gz gcc-f2a060820c24724bb48ee006d257c449e4d94b72.tar.bz2 |
x86-64: Return 10_REG if there is no scratch register
If we can't find a scratch register for large model profiling, return
R10_REG.
PR target/113689
* config/i386/i386.cc (x86_64_select_profile_regnum): Return
R10_REG after sorry.
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/config/i386/i386.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc index f02c6c0..10bd534 100644 --- a/gcc/config/i386/i386.cc +++ b/gcc/config/i386/i386.cc @@ -22788,7 +22788,7 @@ x86_64_select_profile_regnum (bool r11_ok ATTRIBUTE_UNUSED) sorry ("no register available for profiling %<-mcmodel=large%s%>", ix86_cmodel == CM_LARGE_PIC ? " -fPIC" : ""); - return INVALID_REGNUM; + return R10_REG; } /* Output assembler code to FILE to increment profiler label # LABELNO |