]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libffi: LoongArch: Fix soft-float builds of libffi
authorYang Yujie <yangyujie@loongson.cn>
Sat, 27 Jan 2024 07:09:46 +0000 (15:09 +0800)
committerLulu Cheng <chenglulu@loongson.cn>
Thu, 24 Oct 2024 04:00:50 +0000 (12:00 +0800)
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.

libffi/src/loongarch64/ffi.c

index 140be3bc3dc49d9b795e555e68f9b86e98f9692a..01c2e18a395faf6caafad9da149bf24864e03a1d 100644 (file)
@@ -58,7 +58,9 @@
 */
 typedef struct call_context
 {
+#if !defined(__loongarch_soft_float)
   ABI_FLOAT fa[8];
+#endif
   size_t a[10];
 } call_context;