diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2019-12-02 18:54:52 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-12-04 12:30:58 +0000 |
commit | 991e2b5879c43ffb384530fe01639004df872206 (patch) | |
tree | 2afcdd1f79e5bf722c196c96b76316a3d7805977 /meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128.patch | |
parent | c96f31006da285fa016cfdb05390cb50b09fe077 (diff) | |
download | poky-991e2b5879c43ffb384530fe01639004df872206.tar.gz |
libffi: update to 3.3 final
Add a couple patches to address ppc(64) build failures.
License-Update: copyright years
(From OE-Core rev: 9aab37ac40c8da5121a931f5979fcc88489021d2)
Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128.patch')
-rw-r--r-- | meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128.patch | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128.patch b/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128.patch new file mode 100644 index 0000000000..2e32a50296 --- /dev/null +++ b/meta/recipes-support/libffi/libffi/0001-Address-platforms-with-no-__int128.patch | |||
@@ -0,0 +1,27 @@ | |||
1 | From 68f45b9049dffb54f5a29a3a495ab3dfcf010634 Mon Sep 17 00:00:00 2001 | ||
2 | From: Anthony Green <green@moxielogic.com> | ||
3 | Date: Fri, 29 Nov 2019 07:00:35 -0500 | ||
4 | Subject: [PATCH] Address platforms with no __int128. | ||
5 | |||
6 | Upstream-Status: Backport [https://github.com/libffi/libffi/commit/6663047f56c2932a6b10a790f4ac6666dd181326] | ||
7 | Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com> | ||
8 | --- | ||
9 | src/powerpc/ffi_linux64.c | 4 ++-- | ||
10 | 1 file changed, 2 insertions(+), 2 deletions(-) | ||
11 | |||
12 | diff --git a/src/powerpc/ffi_linux64.c b/src/powerpc/ffi_linux64.c | ||
13 | index de0d033..7364770 100644 | ||
14 | --- a/src/powerpc/ffi_linux64.c | ||
15 | +++ b/src/powerpc/ffi_linux64.c | ||
16 | @@ -547,9 +547,9 @@ ffi_prep_args64 (extended_cif *ecif, unsigned long *const stack) | ||
17 | if (next_arg.ul == gpr_end.ul) | ||
18 | next_arg.ul = rest.ul; | ||
19 | if (vecarg_count < NUM_VEC_ARG_REGISTERS64 && i < nfixedargs) | ||
20 | - *vec_base.f128++ = **p_argv.f128; | ||
21 | + memcpy (vec_base.f128++, *p_argv.f128, sizeof (float128)); | ||
22 | else | ||
23 | - *next_arg.f128 = **p_argv.f128; | ||
24 | + memcpy (next_arg.f128, *p_argv.f128, sizeof (float128)); | ||
25 | if (++next_arg.f128 == gpr_end.f128) | ||
26 | next_arg.f128 = rest.f128; | ||
27 | vecarg_count++; | ||