This separates the 32-bit sysv/linux/bsd code from the 64-bit linux
authorAlan Modra <amodra@gmail.com>
Thu, 21 Nov 2013 11:12:35 +0000 (06:12 -0500)
committerAnthony Green <green@moxielogic.com>
Fri, 22 Nov 2013 02:24:56 +0000 (21:24 -0500)
commitab79d6e21992dd86139ba07530ff888833b78a04
tree3ed261655ba53cd2269dba583d6f3bf561adb34d
parent69df91cfb4fa6bcb644350a80bff970f27478a6a
This separates the 32-bit sysv/linux/bsd code from the 64-bit linux
code, and makes it possible to link code compiled with different
options to those used to compile libffi.  For example, a
-mlong-double-128 libffi can be used with -mlong-double-64 code.

Using the return value area as a place to pass parameters wasn't such
a good idea, causing a failure of cls_ulonglong.c.  I didn't see this
when running the mainline gcc libffi testsuite because that version of
the test is inferior to the upstreamm libffi test.

Using NUM_FPR_ARG_REGISTERS rather than NUM_FPR_ARG_REGISTERS64 meant
that a parameter save area could be allocated before it was strictly
necessary.  Wrong but harmless.  Found when splitting apart ffi.c
into 32-bit and 64-bit support.
21 files changed:
ChangeLog
Makefile.am
Makefile.in
configure
configure.ac
fficonfig.h.in
include/Makefile.in
include/ffi.h.in
man/Makefile.in
src/powerpc/ffi.c
src/powerpc/ffi_linux64.c [new file with mode: 0644]
src/powerpc/ffi_powerpc.h [new file with mode: 0644]
src/powerpc/ffi_sysv.c [new file with mode: 0644]
src/powerpc/ffitarget.h
src/powerpc/linux64.S
src/powerpc/linux64_closure.S
src/powerpc/ppc_closure.S
src/powerpc/sysv.S
src/prep_cif.c
src/types.c
testsuite/Makefile.in