Andreas Krebbel - Re: [PATCH] libffi: S/390: Add long double support (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Hi Ulrich,

here is the revised version.

Re-bootstrapped on s390 and s390x with gcc 4.2.

OK for mainline and 4.2 branch?

-Andreas-

2007-02-07 Andreas Krebbel krebbel1@de.ibm.com

* src/s390/ffi.c (ffi_prep_args, ffi_prep_cif_machdep,
ffi_closure_helper_SYSV): Add long double handling.

Index: libffi/src/s390/ffi.c

*** libffi/src/s390/ffi.c.orig 2007-02-05 14:42:39.000000000 +0100 --- libffi/src/s390/ffi.c 2007-02-07 09:55:37.000000000 +0100 *************** ffi_prep_args (unsigned char *stack, ext *** 207,212 **** --- 207,218 ---- void *arg = *p_argv; int type = (*ptr)->type;

*************** ffi_prep_cif_machdep(ffi_cif *cif) *** 364,369 **** --- 370,381 ---- cif->flags = FFI390_RET_DOUBLE; break;

*************** ffi_prep_cif_machdep(ffi_cif *cif) *** 400,405 **** --- 412,423 ---- { int type = (*ptr)->type;

*************** ffi_closure_helper_SYSV (ffi_closure *cl *** 562,567 **** --- 580,591 ---- int deref_struct_pointer = 0; int type = (*ptr)->type;

*************** ffi_closure_helper_SYSV (ffi_closure cl *** 662,667 **** --- 686,694 ---- / Void is easy, and so is struct. */ case FFI_TYPE_VOID: case FFI_TYPE_STRUCT:


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]