861ac185a6
```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
28 lines
1.3 KiB
Diff
28 lines
1.3 KiB
Diff
diff --git a/src/powerpc/ffi_linux64.c b/src/powerpc/ffi_linux64.c
|
|
index 7364770..4d50878 100644
|
|
--- a/src/powerpc/ffi_linux64.c
|
|
+++ b/src/powerpc/ffi_linux64.c
|
|
@@ -680,9 +680,9 @@ ffi_prep_args64 (extended_cif *ecif, unsigned long *const stack)
|
|
{
|
|
if (vecarg_count < NUM_VEC_ARG_REGISTERS64
|
|
&& i < nfixedargs)
|
|
- *vec_base.f128++ = *arg.f128++;
|
|
+ memcpy (vec_base.f128++, arg.f128, sizeof (float128));
|
|
else
|
|
- *next_arg.f128 = *arg.f128++;
|
|
+ memcpy (next_arg.f128, arg.f128++, sizeof (float128));
|
|
if (++next_arg.f128 == gpr_end.f128)
|
|
next_arg.f128 = rest.f128;
|
|
vecarg_count++;
|
|
@@ -986,9 +986,9 @@ ffi_closure_helper_LINUX64 (ffi_cif *cif,
|
|
do
|
|
{
|
|
if (pvec < end_pvec && i < nfixedargs)
|
|
- *to.f128 = *pvec++;
|
|
+ memcpy (to.f128, pvec++, sizeof (float128));
|
|
else
|
|
- *to.f128 = *from.f128;
|
|
+ memcpy (to.f128, from.f128, sizeof (float128));
|
|
to.f128++;
|
|
from.f128++;
|
|
}
|