public inbox for libffi-discuss@sourceware.org
 help / color / mirror / Atom feed
* [PATCH 00/13] Go closures for i686
@ 2014-11-07 15:30 Richard Henderson
  2014-11-07 15:30 ` [PATCH 02/13] x86: Remove some conditional compilation Richard Henderson
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: Richard Henderson @ 2014-11-07 15:30 UTC (permalink / raw)
  To: libffi-discuss

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

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2014-11-07 16:09 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-11-07 15:30 [PATCH 00/13] Go closures for i686 Richard Henderson
2014-11-07 15:30 ` [PATCH 02/13] x86: Remove some conditional compilation Richard Henderson
2014-11-07 15:31 ` [PATCH 13/13] x86: Work around two clang assembler bugs Richard Henderson
2014-11-07 15:31 ` [PATCH 03/13] x86: Force FFI_TYPE_LONGDOUBLE different from FFI_TYPE_DOUBLE Richard Henderson
2014-11-07 15:31 ` [PATCH 06/13] x86: Rewrite ffi_call Richard Henderson
2014-11-07 15:31 ` [PATCH 01/13] x86: Tidy ffi_abi Richard Henderson
2014-11-07 15:31 ` [PATCH 08/13] testsuite: Fix return_complex2 vs excessive precision Richard Henderson
2014-11-07 15:31 ` [PATCH 04/13] x86: Convert to gas generated unwind info Richard Henderson
2014-11-07 15:31 ` [PATCH 09/13] x86: Add support for Complex Richard Henderson
2014-11-07 15:31 ` [PATCH 11/13] x86: Use win32 name mangling for fastcall functions Richard Henderson
2014-11-07 15:31 ` [PATCH 05/13] ffi_cif: Add cfa_escape Richard Henderson
2014-11-07 15:31 ` [PATCH 10/13] x86: Add support for Go closures Richard Henderson
2014-11-07 15:31 ` [PATCH 12/13] testsuite: Add two dg-do run markers Richard Henderson
2014-11-07 15:31 ` [PATCH 07/13] x86: Rewrite closures Richard Henderson
2014-11-07 16:09 ` [PATCH 00/13] Go closures for i686 Richard Henderson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).