* [PATCH] LoongArch: Fix soft-float builds of libffi
@ 2024-01-27 7:09 Yang Yujie
2024-01-31 11:44 ` Xi Ruoyao
2024-10-24 4:02 ` Lulu Cheng
0 siblings, 2 replies; 3+ 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] 3+ messages in thread
* Re: [PATCH] LoongArch: Fix soft-float builds of libffi
2024-01-27 7:09 [PATCH] LoongArch: Fix soft-float builds of libffi Yang Yujie
@ 2024-01-31 11:44 ` Xi Ruoyao
2024-10-24 4:02 ` Lulu Cheng
1 sibling, 0 replies; 3+ messages in thread
From: Xi Ruoyao @ 2024-01-31 11:44 UTC (permalink / raw)
To: Yang Yujie, gcc-patches; +Cc: chenglulu
On Sat, 2024-01-27 at 15:09 +0800, Yang Yujie wrote:
> 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.
You need to wait until the PR is accepted by the libffi maintainers.
Frankly I don't know what libffi maintainers are busy on and I'm
frustrated as well (having a MIPS patch unreviewed there for a month)
but this is the procedure :(.
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re:[pushed] [PATCH] LoongArch: Fix soft-float builds of libffi
2024-01-27 7:09 [PATCH] LoongArch: Fix soft-float builds of libffi Yang Yujie
2024-01-31 11:44 ` Xi Ruoyao
@ 2024-10-24 4:02 ` Lulu Cheng
1 sibling, 0 replies; 3+ messages in thread
From: Lulu Cheng @ 2024-10-24 4:02 UTC (permalink / raw)
To: Yang Yujie, gcc-patches
Pushed to r15-4588
在 2024/1/27 下午3:09, 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;
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-10-24 4:02 UTC | newest]
Thread overview: 3+ 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
2024-10-24 4:02 ` Lulu Cheng
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).