* [PATCH] LoongArch: Fix soft-float builds of libffi
@ 2024-01-27 7:09 Yang Yujie
2024-01-31 11:44 ` Xi Ruoyao
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yujie @ 2024-01-27 7:09 UTC (permalink / raw)
To: gcc-patches; +Cc: chenglulu, Yang Yujie
This patch correspond to the upstream PR:
https://github.com/libffi/libffi/pull/817
libffi/ChangeLog:
* src/loongarch64/ffi.c: Avoid defining floats
in struct call_context if the ABI is soft-float.
---
libffi/src/loongarch64/ffi.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/libffi/src/loongarch64/ffi.c b/libffi/src/loongarch64/ffi.c
index 140be3bc3dc..01c2e18a395 100644
--- a/libffi/src/loongarch64/ffi.c
+++ b/libffi/src/loongarch64/ffi.c
@@ -58,7 +58,9 @@
*/
typedef struct call_context
{
+#if !defined(__loongarch_soft_float)
ABI_FLOAT fa[8];
+#endif
size_t a[10];
} call_context;
--
2.43.0
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2024-01-31 11:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-27 7:09 [PATCH] LoongArch: Fix soft-float builds of libffi Yang Yujie
2024-01-31 11:44 ` Xi Ruoyao
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).