From: Richard Henderson <rth@twiddle.net>
To: libffi-discuss@sourceware.org
Subject: [PATCH 00/13] Go closures for i686
Date: Fri, 07 Nov 2014 15:30:00 -0000 [thread overview]
Message-ID: <1415374240-1792-1-git-send-email-rth@twiddle.net> (raw)
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
next reply other threads:[~2014-11-07 15:30 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-07 15:30 Richard Henderson [this message]
2014-11-07 15:30 ` [PATCH 02/13] x86: Remove some conditional compilation 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 10/13] x86: Add support for Go closures Richard Henderson
2014-11-07 15:31 ` [PATCH 05/13] ffi_cif: Add cfa_escape Richard Henderson
2014-11-07 15:31 ` [PATCH 07/13] x86: Rewrite closures 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 04/13] x86: Convert to gas generated unwind info 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 16:09 ` [PATCH 00/13] Go closures for i686 Richard Henderson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1415374240-1792-1-git-send-email-rth@twiddle.net \
--to=rth@twiddle.net \
--cc=libffi-discuss@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).