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.
This commit is contained in:
parent
1befe47f64
commit
f2a060820c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue