gcc/libffi/src
Alan Modra c57173b69a [RS6000] Correct powerpc sysv stack argument accounting
ppc32 starts using the stack for integer arg passing when we run out
of integer arg passing registers.  Similarly, we start using the stack
for floating point args when we run out of floating point registers.
The decision on where an integer arg goes does not depend on number of
floating point args, nor does the decision on where a floating point
arg goes depend on number of integer args.  Alignment of stack args
also simply depends on number of stack args.

This patch untangles the horrible mess we had, with intarg_count being
wrongly used to count both integer args and stack words.

	* src/powerpc/ffi_sysv.c (ffi_prep_cif_sysv_core): Count fprs,
	gprs, and stack words separately.
	(ffi_prep_args_SYSV): Similarly.

From-SVN: r228307
2015-10-01 06:59:00 +09:30
..
aarch64
alpha
arc
arm
avr32
bfin
cris
frv
ia64
m32r
m68k
m88k
metag
microblaze
mips
moxie
nios2
or1k
pa
powerpc [RS6000] Correct powerpc sysv stack argument accounting 2015-10-01 06:59:00 +09:30
s390
sh
sh64
sparc
tile
vax
x86
xtensa
closures.c
debug.c
dlmalloc.c
java_raw_api.c
prep_cif.c
raw_api.c
types.c