Skip to content

Commit a616b7e

Browse files
scylaacchenglulu326
authored andcommitted
libffi: LoongArch: Fix soft-float builds of libffi
This patch correspond to the upstream PR: libffi/libffi#817 And has been merged. libffi/ChangeLog: * src/loongarch64/ffi.c: Avoid defining floats in struct call_context if the ABI is soft-float.
1 parent 8df549f commit a616b7e

File tree

1 file changed

+2
-0
lines changed
  • libffi/src/loongarch64

1 file changed

+2
-0
lines changed

libffi/src/loongarch64/ffi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,9 @@
5858
*/
5959
typedef struct call_context
6060
{
61+
#if !defined(__loongarch_soft_float)
6162
ABI_FLOAT fa[8];
63+
#endif
6264
size_t a[10];
6365
} call_context;
6466

0 commit comments

Comments
 (0)