aboutsummaryrefslogtreecommitdiff
path: root/gcc/config
diff options
context:
space:
mode:
authorMax Filippov <jcmvbkbc@gmail.com>2022-12-28 11:27:21 -0800
committerMax Filippov <jcmvbkbc@gmail.com>2022-12-29 07:04:59 -0800
commitda086e472b61245dedcb2463c53f84072773d1f5 (patch)
treeb40b98afe4cecf6560555fc1557d35a410085795 /gcc/config
parent65fed695f7b2eb99dfd679fbdfcf510104de2fb8 (diff)
downloadgcc-da086e472b61245dedcb2463c53f84072773d1f5.zip
gcc-da086e472b61245dedcb2463c53f84072773d1f5.tar.gz
gcc-da086e472b61245dedcb2463c53f84072773d1f5.tar.bz2
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.
Diffstat (limited to 'gcc/config')
-rw-r--r--gcc/config/xtensa/xtensa.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/xtensa/xtensa.cc b/gcc/config/xtensa/xtensa.cc
index e726a11..ae44199 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. */