From: Yang Yujie Date: Sat, 27 Jan 2024 07:09:46 +0000 (+0800) Subject: libffi: LoongArch: Fix soft-float builds of libffi X-Git-Tag: basepoints/gcc-16~4965 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a616b7e1db7319c587b9c65fe9548c59c67d1234;p=thirdparty%2Fgcc.git libffi: LoongArch: Fix soft-float builds of libffi This patch correspond to the upstream PR: https://github.com/libffi/libffi/pull/817 And has been merged. libffi/ChangeLog: * src/loongarch64/ffi.c: Avoid defining floats in struct call_context if the ABI is soft-float. --- diff --git a/libffi/src/loongarch64/ffi.c b/libffi/src/loongarch64/ffi.c index 140be3bc3dc4..01c2e18a395f 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;