public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r13-4917] gcc: xtensa: use GP_RETURN_* instead of magic constant
@ 2022-12-29 17:12 Max Filippov
0 siblings, 0 replies; only message in thread
From: Max Filippov @ 2022-12-29 17:12 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:da086e472b61245dedcb2463c53f84072773d1f5
commit r13-4917-gda086e472b61245dedcb2463c53f84072773d1f5
Author: Max Filippov <jcmvbkbc@gmail.com>
Date: Wed Dec 28 11:27:21 2022 -0800
gcc: xtensa: use GP_RETURN_* instead of magic constant
gcc/
* config/xtensa/xtensa.cc (xtensa_return_in_memory): Use
GP_RETURN_* instead of magic constant.
Diff:
---
gcc/config/xtensa/xtensa.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index e726a115029..ae44199bc98 100644
--- a/gcc/config/xtensa/xtensa.cc
+++ b/gcc/config/xtensa/xtensa.cc
@@ -4516,7 +4516,7 @@ static bool
xtensa_return_in_memory (const_tree type, const_tree fntype ATTRIBUTE_UNUSED)
{
return ((unsigned HOST_WIDE_INT) int_size_in_bytes (type)
- > 4 * UNITS_PER_WORD);
+ > (unsigned) (GP_RETURN_LAST - GP_RETURN_FIRST + 1) * UNITS_PER_WORD);
}
/* Worker function for TARGET_FUNCTION_VALUE. */
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-29 17:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-29 17:12 [gcc r13-4917] gcc: xtensa: use GP_RETURN_* instead of magic constant Max Filippov
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).