Commit Graph

129 Commits

Author SHA1 Message Date
Richard Henderson
b0e9796344 configure: Run HAVE_AS_X86_PCREL for all X86 targets 2015-01-27 22:10:12 -08:00
Yavor Georgiev
536366349c aarch64: implement the trampoline table workaround for ffi closures on Apple systems
This is a direct copy/paste port of the ARM code, with changes because of Aarch64 pc-relative addressing restrictions.
2015-01-16 15:31:55 +02:00
Mișu Moldovan
e1a5ddb306 Fix expr error in Solaris 10 when using gcc. 2015-01-07 17:51:07 +02:00
Richard Henderson
f69ec6f35d s390: Use pc-relative insns in 31-bit mode
It's silly to stick to esa/390 features when the compiler won't.
Detect when brasl and larl are used by the compiler and then use
them in the assembly.
2014-12-18 16:21:07 -05:00
Richard Henderson
5d69d57a05 configure: Move target source selection into configure.host
This eliminates the AM_CONDITIONAL ugliness, which eliminates
just a bit of extra boilerplate for a new target.

At the same time, properly categorize the EXTRA_DIST files
into SOURCES and HEADERS, for the generation of ctags.
2014-11-14 13:06:12 +01:00
Richard Henderson
57f5248457 configure: Split out configure.host
Split out the host case statement to a separate file, so that
we don't have to regenerate configure.in for changes therein.
2014-11-13 12:42:54 +01:00
Anthony Green
8d5debc790 Update in preparation for next release 2014-11-12 08:04:51 -05:00
Anthony Green
20562ac042 Fix for AArch64. Release as 3.2.1. 2014-11-12 07:00:59 -05:00
Sebastian Macke
0f316ab7c1 Add OpenRISC support
This patch adds support for the OpenRISC architecture.
(http://opencores.org/or1k/Main_Page)

This patch has been tested under Linux with QEMU-user emulation support.
- 32 Bit
- big endian
- delayed instructions
This is the only available configuration under Linux.

The description of the ABI can be found on the official website.

Is passes the testsuite except of the unwindtest_ffi_call.cc
testcase, which seems to be a problem of gcc and not libffi.
Some testcases of the gcc testsuite still fail.

Signed-off-by: Sebastian Macke <sebastian@macke.de>
2014-09-27 00:56:56 +00:00
Anthony Green
ae8d2554c5 Update version to 3.2 2014-09-20 07:08:37 -04:00
Samuli Suominen
ad0d1d239a Fix paths in libffi.pc.in 2014-06-12 06:30:21 -04:00
Anthony Green
69289c10b0 Prepare for libffi 3.1.1 2014-05-31 08:54:08 -04:00
Mickaël Salaün
c1166d4f65 closures: Check for mkostemp(3) 2014-05-19 23:11:33 +02:00
Anthony Green
57465744b6 Update to version 3.1 2014-05-11 10:30:22 -04:00
Dominik Vogt
7ba4c5d72a Use to get correct dir 2014-05-11 09:52:47 -04:00
Josh Triplett
7d698125b1 Use the proper C++ compiler to run C++ tests
Running the C compiler with -shared-libgcc -lstdc++ does not work on
non-GCC compilers.
2014-03-27 00:40:27 -07:00
Josh Triplett
0c3824702d Always set CC_FOR_TARGET for dejagnu, to make the testsuite respect $CC
This fixes cross-compilation and compilation with CC="gcc -m32".
2014-03-26 23:31:02 -07:00
Anthony Green
c860a992fe Upgrade version to 3.1-rc1 2014-03-25 17:02:51 -04:00
Josh Triplett
b2d610e028 Compile win32.S on 32-bit Darwin as well 2014-03-24 21:45:47 -07:00
Josh Triplett
be50b87a49 Always use configure to detect whether global symbols need underscores
64-bit Windows already used this check; make it universal, and use it in
place of an ifdef on X86_WIN32, to handle non-Windows platforms that use
the underscore, such as Darwin.
2014-03-24 21:45:47 -07:00
Anthony Green
d948d0a729 Merge pull request #98 from joshtriplett/unconfigure.host
Merge configure.host into configure.ac
2014-03-16 10:53:48 -04:00
Josh Triplett
a86bd318e2 Merge configure.host into configure.ac
configure.host only has a single entry, and shows no signs of needing
more added.
2014-03-16 07:05:28 -07:00
Anthony Green
b61b472bd0 Update version to 3.1-rc0. Clean up README. 2014-03-16 09:45:55 -04:00
Anthony Green
76d19d004e Ensure the linker supports @unwind sections in libffi. 2014-03-14 16:54:31 -04:00
Ryan VanderMeulen
a1a6f71bfe Remove stray hunk that shouldn't have been included in this patch. 2014-03-10 15:12:47 -04:00
Ryan VanderMeulen
dfa3738732 Ensure the linker supports @unwind sections in libffi. From Mozilla bug 756740.
https://bugzilla.mozilla.org/show_bug.cgi?id=778414

Also tracked as issue #42.
https://github.com/atgreen/libffi/issues/42
2014-03-10 14:53:48 -04:00
Ryan VanderMeulen
18eb81d032 Allow building for mipsel with Android NDK r8. From Mozilla bug 756740.
https://bugzilla.mozilla.org/show_bug.cgi?id=756740
2014-03-10 14:43:37 -04:00
Anthony Green
5a88c85fde Fix spelling errors 2014-02-28 00:26:09 -05:00
Alan Modra
ab79d6e219 This separates the 32-bit sysv/linux/bsd code from the 64-bit linux
code, and makes it possible to link code compiled with different
options to those used to compile libffi.  For example, a
-mlong-double-128 libffi can be used with -mlong-double-64 code.

Using the return value area as a place to pass parameters wasn't such
a good idea, causing a failure of cls_ulonglong.c.  I didn't see this
when running the mainline gcc libffi testsuite because that version of
the test is inferior to the upstreamm libffi test.

Using NUM_FPR_ARG_REGISTERS rather than NUM_FPR_ARG_REGISTERS64 meant
that a parameter save area could be allocated before it was strictly
necessary.  Wrong but harmless.  Found when splitting apart ffi.c
into 32-bit and 64-bit support.
2013-11-21 21:24:56 -05:00
Sandra Loosemore
16b93a211b Add nios2 port. 2013-10-15 15:33:59 -04:00
Anthony Green
d2fcbcdfbe Add m88k and VAX support. Update some configury bits. 2013-10-08 06:27:46 -04:00
Anthony Green
f88118b345 Revert "Merge pull request #36 from abergmeier/emscripten_fix"
This reverts commit 6a4d901dde, reversing
changes made to b50a13b9c0.
2013-07-02 15:51:27 -04:00
Anthony Green
6a4d901dde Merge pull request #36 from abergmeier/emscripten_fix
Fixes for building with Emscripten
2013-07-02 12:12:34 -07:00
Mischa Jonker
b082e15091 Add ARC support
This adds support for the ARC architecture to libffi. DesignWare ARC
is a family of processors from Synopsys, Inc.

This patch has been tested on a little-endian system and passes
the testsuite.

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
2013-06-14 10:06:30 +02:00
Andreas Bergmeier
587002c092 Enable disabling of libtool on platforms where it does not work (e.g. LLVM).
Build libraries normally then.
2013-04-19 17:12:24 +02:00
Anthony Green
f22ab3c687 Merge branch 'master' of github.com:/atgreen/libffi 2013-03-17 18:37:50 -04:00
Anthony Green
cb32c812d0 Fix lib install dir 2013-03-17 09:27:55 -04:00
Anthony Green
efd7866a36 2.0.13rc1 2013-03-16 08:35:57 -04:00
Anthony Green
215763d012 Update configury. 2013-03-16 07:57:35 -04:00
Anthony Green
2fb527a017 Add Meta processor support 2013-03-16 07:46:38 -04:00
Anthony Green
f308faf1ea Add moxie support. Release 3.0.12. 2013-02-11 14:25:13 -05:00
Anthony Green
cb03ea8f4e sparc v9 fixes for sun tools 2013-02-08 12:25:18 -05:00
Anthony Green
9db7e1a958 Fix botched sparc patch. Update version. 2013-02-07 21:06:08 -05:00
Anthony Green
ce0138e614 Update bug report address. rc2. 2013-02-07 18:04:01 -05:00
Anthony Green
ed6ae9501b Add libtool-ldflags. Define toolexeclibdir for non-GCC builds. 2013-02-07 16:43:36 -05:00
Anthony Green
ffef2e046a x32 and libtool fixes 2013-02-07 15:47:01 -05:00
Anthony Green
176aa9d2e2 Fix GCC usage test and update README 2013-02-07 15:29:22 -05:00
Anthony Green
f62bd63fe6 Release candidate 1 2013-02-06 17:38:32 -05:00
John Ralls
bcc0c28001 Reorder x86_64 tests
So that darwin and cygwin/mingw are tested before the generic check --
which allows them to actually be set.
2013-01-26 15:26:01 -08:00
Anthony Green
aeb8719a34 New microblaze support 2013-01-21 07:55:37 -05:00