Hi,
SH's ffi_call_SYSV wrongly assumes that the double arguments were
aligned on stack by ffi_prep_args. This bug causes a few failures
of libjava tests with gij on SH. The appended patch fixes it and
adds a new test for it because this bug couldn't be caught with
the existing libffi tests. The result of make check is:
=== libffi Summary ===
# of expected passes 216
# of unsupported tests 2
I've checked that the new test passes also on i686-pc-linux-gnu.
OK for mainline?
FYI, with this and SH custom java-signal.h patch waiting for review
http://gcc.gnu.org/ml/gcc-patches/2004-10/msg01327.html
there are no failures in libjava test on sh4-unknown-linux-gnu.