summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128-part2.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128-part2.patch')
-rw-r--r--meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128-part2.patch34
1 files changed, 0 insertions, 34 deletions
diff --git a/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128-part2.patch b/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128-part2.patch
deleted file mode 100644
index 6b5b7d4747..0000000000
--- a/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128-part2.patch
+++ /dev/null
@@ -1,34 +0,0 @@
1Address platforms with no __int128.
2
3Fixes remaining pieces from
4https://github.com/libffi/libffi/commit/6663047f56c2932a6b10a790f4ac6666dd181326
5
6Upstream-Status: Pending
7Signed-off-by: Khem Raj <raj.khem@gmail.com>
8
9--- a/src/powerpc/ffi_linux64.c.org 2019-12-05 14:48:33.140579431 -0800
10+++ a/src/powerpc/ffi_linux64.c 2019-12-05 14:53:58.827244495 -0800
11@@ -680,9 +680,9 @@ ffi_prep_args64 (extended_cif *ecif, uns
12 {
13 if (vecarg_count < NUM_VEC_ARG_REGISTERS64
14 && i < nfixedargs)
15- *vec_base.f128++ = *arg.f128++;
16+ memcpy (vec_base.f128++, arg.f128, sizeof (float128));
17 else
18- *next_arg.f128 = *arg.f128++;
19+ memcpy (next_arg.f128, arg.f128++, sizeof (float128));
20 if (++next_arg.f128 == gpr_end.f128)
21 next_arg.f128 = rest.f128;
22 vecarg_count++;
23@@ -986,9 +986,9 @@ ffi_closure_helper_LINUX64 (ffi_cif *cif
24 do
25 {
26 if (pvec < end_pvec && i < nfixedargs)
27- *to.f128 = *pvec++;
28+ memcpy (to.f128, pvec++, sizeof (float128));
29 else
30- *to.f128 = *from.f128;
31+ memcpy (to.f128, from.f128, sizeof (float128));
32 to.f128++;
33 from.f128++;
34 }