ffi_darwin.c (ffi_prep_args): Increment next_arg and fparg_count twice for long double.

* src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
        fparg_count twice for long double.

From-SVN: r154967
This commit is contained in:
David Edelsohn 2009-12-04 03:43:40 +00:00 committed by David Edelsohn
parent b83f1f569d
commit afb5e62297
2 changed files with 7 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2009-12-03 David Edelsohn <edelsohn@gnu.org>
* src/powerpc/ffi_darwin.c (ffi_prep_args): Increment next_arg and
fparg_count twice for long double.
2009-12-03 David Edelsohn <edelsohn@gnu.org> 2009-12-03 David Edelsohn <edelsohn@gnu.org>
PR libffi/42243 PR libffi/42243

View File

@ -167,6 +167,8 @@ void ffi_prep_args(extended_cif *ecif, unsigned long *const stack)
*fpr_base++ = double_tmp; *fpr_base++ = double_tmp;
else else
*(double *) next_arg = double_tmp; *(double *) next_arg = double_tmp;
next_arg += 2;
fparg_count++;
double_tmp = ((double *) *p_argv)[1]; double_tmp = ((double *) *p_argv)[1];
if (fparg_count < NUM_FPR_ARG_REGISTERS) if (fparg_count < NUM_FPR_ARG_REGISTERS)