aboutsummaryrefslogtreecommitdiff
path: root/gcc/gcc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2015-10-01 06:59:00 +0930
committerAlan Modra <amodra@gcc.gnu.org>2015-10-01 06:59:00 +0930
commitc57173b69a617edf59ed2e73edda183e7aebf05e (patch)
treeb1481d30acc84a559f73b046251009c89d487ef3 /gcc/gcc.c
parentd64f8dd280e6d2d70aec5b133e913b1af51832d9 (diff)
downloadgcc-c57173b69a617edf59ed2e73edda183e7aebf05e.zip
gcc-c57173b69a617edf59ed2e73edda183e7aebf05e.tar.gz
gcc-c57173b69a617edf59ed2e73edda183e7aebf05e.tar.bz2
[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
Diffstat (limited to 'gcc/gcc.c')
0 files changed, 0 insertions, 0 deletions