public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-8831] x86-64: Return 10_REG if there is no scratch register
@ 2024-02-06 19:03 H.J. Lu
0 siblings, 0 replies; only message in thread
From: H.J. Lu @ 2024-02-06 19:03 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:f2a060820c24724bb48ee006d257c449e4d94b72
commit r14-8831-gf2a060820c24724bb48ee006d257c449e4d94b72
Author: H.J. Lu <hjl.tools@gmail.com>
Date: Tue Feb 6 10:57:24 2024 -0800
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.
Diff:
---
gcc/config/i386/i386.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/i386/i386.cc b/gcc/config/i386/i386.cc
index f02c6c02ac62..10bd5347dcff 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-06 19:03 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-06 19:03 [gcc r14-8831] x86-64: Return 10_REG if there is no scratch register H.J. Lu
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).