projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
65fed69
)
gcc: xtensa: use GP_RETURN_* instead of magic constant
author
Max Filippov
<jcmvbkbc@gmail.com>
Wed, 28 Dec 2022 19:27:21 +0000
(11:27 -0800)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Thu, 29 Dec 2022 15:04:59 +0000
(07:04 -0800)
gcc/
* config/xtensa/xtensa.cc (xtensa_return_in_memory): Use
GP_RETURN_* instead of magic constant.
gcc/config/xtensa/xtensa.cc
patch
|
blob
|
history
diff --git
a/gcc/config/xtensa/xtensa.cc
b/gcc/config/xtensa/xtensa.cc
index
e726a11
..
ae44199
100644
(file)
--- 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. */