The powerpc64 support opted to pass floating point values both in the
authorAlan Modra <amodra@gmail.com>
Sat, 16 Nov 2013 11:38:55 +0000 (06:38 -0500)
committerAnthony Green <green@moxielogic.com>
Sat, 16 Nov 2013 11:38:55 +0000 (06:38 -0500)
commit164283f4ac5972ce2ab5e015cc2ab1014c23276c
treee968a1edbdaa647a62faca51cf59df455b52285b
parent31257b3189f81a199bc2902c22bc5f2d7c54ccde
The powerpc64 support opted to pass floating point values both in the
fpr area and the parameter save area, necessary when the backend
doesn't know if a function argument corresponds to the ellipsis
arguments of a variadic function.  This patch adds powerpc support for
variadic functions, and changes the code to only pass fp in the ABI
mandated area.  ELFv2 needs this change since the parameter save area
may not exist there.

This also fixes two faulty tests that used a non-variadic function
cast to call a variadic function, and spuriously reasoned that this is
somehow necessary for static functions..
ChangeLog
src/powerpc/ffi.c
src/powerpc/ffitarget.h
testsuite/libffi.call/cls_double_va.c
testsuite/libffi.call/cls_longdouble_va.c