diff options
author | Yang Yujie <yangyujie@loongson.cn> | 2024-01-27 15:09:46 +0800 |
---|---|---|
committer | Lulu Cheng <chenglulu@loongson.cn> | 2024-10-24 12:00:50 +0800 |
commit | a616b7e1db7319c587b9c65fe9548c59c67d1234 (patch) | |
tree | 3ae81088ca11efe77473cd96b29fe0eaad021da6 | |
parent | 8df549fc2c0297970cb3bcadba7929088af96522 (diff) | |
download | gcc-a616b7e1db7319c587b9c65fe9548c59c67d1234.zip gcc-a616b7e1db7319c587b9c65fe9548c59c67d1234.tar.gz gcc-a616b7e1db7319c587b9c65fe9548c59c67d1234.tar.bz2 |
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.
-rw-r--r-- | libffi/src/loongarch64/ffi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libffi/src/loongarch64/ffi.c b/libffi/src/loongarch64/ffi.c index 140be3b..01c2e18 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; |