]> gcc.gnu.org Git - gcc.git/commit
libffi: Fix 32-bit SPARC structure passing [PR115681]
authorRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 1 Jul 2024 09:20:15 +0000 (11:20 +0200)
committerRainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
Mon, 1 Jul 2024 09:20:15 +0000 (11:20 +0200)
commit61aa380bad45fb070379f259f7abc5e5f50c9009
tree0bb3de0021929dafbc31605d1c5a0d7d3dc3db7d
parent286cda3461d6f5ce7d911d3f26bd4975ea7ea11d
libffi: Fix 32-bit SPARC structure passing [PR115681]

The libffi.closures/single_entry_structs2.c test FAILs on 32-bit SPARC:

FAIL: libffi.closures/single_entry_structs2.c -W -Wall -Wno-psabi -O0
execution test

The issue has been reported, analyzed and fixed upstream:

Several tests FAIL on 32-bit Solaris/SPARC
https://github.com/libffi/libffi/issues/841

Therefore this patch imports the fix into the GCC tree.

Tested on sparc-sun-solaris2.11.

2024-07-01  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>

libffi:
PR libffi/115681
* src/sparc/ffi.c (ffi_call_int): Copy structure arguments to
maintain call-by-value semantics.
libffi/src/sparc/ffi.c
This page took 0.05514 seconds and 5 git commands to generate.