This is the mail archive of the libffi-discuss@sourceware.org mailing list for the libffi 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]

[PATCH 00/13] Go closures for i686


A massive cleanup of the i686 backend, with all/most ABIs supported
for all targets, not just windows.  Which (nearly) eliminates conditional
compilation wrt ABIs, and allows massive code de-duplication.

Like the x86_64 patch set, this breaks Darwin.  What I think ought to
happen is that darwin.S should be deleted, and the very minor tweaks
that might be left vs sysv.S should be handled by the preprocessor.
However, I have no access to darwin with which to test.

Like the x86_64 patch set, the masm variant is removed.  Again, I have
no way that I could test this.  Though win32 support is of course still
working via gas.

With the final patch, building with clang mostly works.  For some reason
the unwind tests fail, despite the .eh_frame looking correct.  Freebsd
continues to work if you use gcc+gas from ports.

Tested on i686-{linux,cygwin,freebsd10}.


r~


Richard Henderson (13):
  x86: Tidy ffi_abi
  x86: Remove some conditional compilation
  x86: Force FFI_TYPE_LONGDOUBLE different from FFI_TYPE_DOUBLE
  x86: Convert to gas generated unwind info
  ffi_cif: Add cfa_escape
  x86: Rewrite ffi_call
  x86: Rewrite closures
  testsuite: Fix return_complex2 vs excessive precision
  x86: Add support for Complex
  x86: Add support for Go closures
  x86: Use win32 name mangling for fastcall functions
  testsuite: Add two dg-do run markers
  x86: Work around two clang assembler bugs

 Makefile.am                               |   13 +-
 include/ffi_cfi.h                         |    2 +
 src/x86/ffi.c                             | 1128 ++++++++++++------------
 src/x86/ffitarget.h                       |   64 +-
 src/x86/freebsd.S                         |  463 ----------
 src/x86/internal.h                        |   23 +
 src/x86/sysv.S                            | 1037 +++++++++++++---------
 src/x86/win32.S                           | 1351 -----------------------------
 testsuite/libffi.call/call.exp            |    3 +-
 testsuite/libffi.call/float2.c            |    1 +
 testsuite/libffi.call/return_complex2.inc |   10 +-
 testsuite/libffi.call/return_ldl.c        |    1 +
 12 files changed, 1238 insertions(+), 2858 deletions(-)
 delete mode 100644 src/x86/freebsd.S
 create mode 100644 src/x86/internal.h
 delete mode 100644 src/x86/win32.S

-- 
1.9.3


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