Commit Graph
984 Commits
Author SHA1 Message Date
Richard Henderson 40e4063ab4 Merge pull request #261 from tromey/fix-260
Don't dereference "ecif" before NULL check
2016-07-07 23:11:38 -07:00
Tom Tromey cf4b2a5041 Don't dereference "ecif" before NULL check
Fixes #260
2016-06-17 10:09:44 +01:00
Richard Henderson c0829e6284 Merge pull request #259 from rth7680/master
Mark win64.S with GNU-stack note
2016-06-05 15:05:21 -07:00
Richard Henderson 794a54d4a6 Mark win64.S with GNU-stack note 2016-06-05 14:57:00 -07:00
Richard Henderson 96d9bf4b55 Merge pull request #253 from iains/darwin-build
Some Darwin build fixes
2016-06-03 23:04:56 -07:00
Iain Sandoe 52fbd12dca [Darwin-ppc, build] Fixes for clang build.
clang is experimental on powerpc-darwin, but the changes are appropriate to cctools as as well.

Use the 'official' simplified cmpwi insn, rather than the implied one accepted by cctools.
Do not re-use a set value.
2016-05-26 09:06:35 +01:00
Iain Sandoe 92810b4bc1 [Darwin-x86, build] Fix up label prefixes, remove .purgem
Darwin uses a label prefix of _.
cctools assembler will not accept .purgem as a directive.
2016-05-26 09:06:35 +01:00
Iain Sandoe 30b3440cfd [Darwin, configure] Allow configure to work for <arch>-*-darwin.
The exec configury is appropriate for all current targets (including using older tools on them).
2016-05-26 08:55:04 +01:00
Tom Tromey 02089a1b5c Merge pull request #237 from tschwinge/libffi_feature_test
Simplify/fix libffi_feature_test
2016-05-23 09:58:51 -06:00
Richard Henderson 5d0365c605 Merge pull request #251 from berkerpeksag/delete-test-define
Remove unused FFI_CLOSURE_TEST
2016-05-19 09:35:38 -07:00
Berker Peksag 74b3f52014 Remove unused FFI_CLOSURE_TEST
It was here since the first commit c6dddbd (warning: huge diff) and
it wasn't defined by the configure script. It was probably used
manually during development.
2016-05-19 18:05:36 +03:00
Tom Tromey 584a140e75 Merge pull request #248 from berkerpeksag/patch-1
Delete empty env in .travis.yml
2016-05-19 06:36:38 -06:00
Berker Peksag b3496dedbb Delete empty env in .travis.yml 2016-05-19 10:53:07 +03:00
Richard Henderson c61775497e Merge pull request #247 from rth7680/symver
Add parent to symbol version LIBFFI_BASE_7.1
2016-05-18 11:10:33 -07:00
Richard Henderson 33d9a31d34 Add parent to symbol version LIBFFI_BASE_7.1 2016-05-18 11:01:55 -07:00
Richard Henderson 9edaa695c5 Merge pull request #230 from rth7680/symver
Use ELF symbol versioning
2016-05-18 10:56:19 -07:00
Tom Tromey 0969a1c1b3 Merge pull request #232 from berkerpeksag/signcompare
Fix -Wsign-compare warnings in x86/ffi64.c
2016-05-18 10:09:28 -06:00
Tom Tromey 571b1ca627 Merge pull request #233 from berkerpeksag/mremap
Define _GNU_SOURCE on Linux for mremap()
2016-05-18 10:08:59 -06:00
Tom Tromey 069d2e4e16 Merge pull request #246 from berkerpeksag/update-github-links
Update project URLs to use libffi/libffi
2016-05-18 10:07:31 -06:00
Berker Peksag 1b4f5ee6a4 Update project URLs to use libffi/libffi 2016-05-18 11:12:58 +03:00
Berker Peksag 1e82e1cda4 Define _GNU_SOURCE on Linux for mremap()
This was committed to CPython's libffi copy in
https://bugs.python.org/issue10309

mremap() documentation says _GNU_SOURCE needs to
be defined in order to use mremap(): see the
synopsis section at http://linux.die.net/man/2/mremap

Original commit: https://hg.python.org/cpython/rev/9986fff720a2

Original patch was written by Hallvard B Furuseth.
2016-05-18 10:42:38 +03:00
Berker Peksag 4a677a425c Fix -Wsign-compare warnings in x86/ffi64.c
This was originally reported on the Python tracker:

  httpa://bugs.python.org/issue23958

The original patch was written by Steve R. Hastings.

I've updated it to current master of libffi.
2016-05-18 10:35:20 +03:00
Tom Tromey a44a5b863a Merge pull request #234 from berkerpeksag/disable-docs
Add a note about the --disable-docs switch
2016-05-17 17:07:27 -06:00
Tom Tromey 9443eaeda8 Merge pull request #242 from somasis/master
Fix usage on musl libc
2016-05-17 17:04:50 -06:00
Richard Henderson 8a0a4e25ef Update symbol versioning for ffi_get_struct_offsets
Given that the original symbol versioning patch has shipped
with gcc-6, it would be kind to keep that as a valid base ABI
and make subsequent changes to version 7.1.
2016-05-04 07:33:41 -10:00
Richard Henderson c02c341444 Use ELF symbol versioning
At the same time, we must bump the (major) ABI version.  This needed to be
done anyway due to ABI breakage in the AArch64 port (see 12cf89ee and the
corresponding GCC PR70024).
2016-05-04 06:49:50 -10:00
Richard Henderson 14be9a1d07 Merge pull request #245 from rth7680/tromey-ffi-prep-cif-core-is-private
A rebase of #219
2016-05-04 06:45:05 -10:00
Tom Tromey b50eabf489 minor comment cleanup
This patch minor cleans up ffi.h.in comments in a minor way.  It fixes
some typos and capitalizations, adds some periods, and reformats some
comments to a more GNU-ish style.  It also fixes up some stale
documentation.
2016-05-04 06:39:21 -10:00
Tom Tromey 6c07077a61 Change ffi.h.in so that braces match
This is a tiny refactoring to make it so brace-matching works in
Emacs.
2016-05-04 06:38:34 -10:00
Tom Tromey 2fbc0369b8 move ffi_prep_cif_core to ffi_common.h 2016-05-04 06:38:34 -10:00
Tom Tromey 1cea273758 Merge pull request #231 from berkerpeksag/simplfy-oserror
Simplify error handling in mkdir_p()
2016-05-03 08:23:51 -06:00
Richard Henderson 48bfae1f37 Merge pull request #236 from andreas-schwab/master
Define FFI_SIZEOF_JAVA_RAW for aarch64 ILP32
2016-05-02 20:58:57 -10:00
Richard Henderson 6d8711057b Merge pull request #241 from rth7680/fix-win64
Fix win64 abi calling from unix64
2016-05-01 11:02:40 -10:00
Kylie McClain e169ba2b83 Fix usage on musl libc
A gcc compiled on musl does not define __gnu_linux__, it defines __linux__.
Only on glibc does __gnu_linux__ get defined, but both define __linux__, so
we should check for that instead.

With this patch, libffi works perfectly, and passes its testsuite entirely
on musl libc systems.
2016-04-29 21:31:59 -04:00
Richard Henderson e5843a3a09 x86: Fix calling convention for ffi_closure_win64_inner
Also enable testing for the cross-abi calls.
2016-04-29 14:17:36 -07:00
Richard Henderson d06751979b x86: Copy fix for clang .org from unix64.S
Clang doesn't understand .org with symbolic operands.
2016-04-15 16:10:28 -07:00
Thomas Schwinge c884551781 Simplify/fix libffi_feature_test
As detailed in
<http://news.gmane.org/find-root.php?message_id=%3C87wppswqqt.fsf%40kepler.schwinge.homeip.net%3E>,
the original code (originally added in commit
f1301a54bb as part of pull request #145) does not
work (at least not for me, in the GCC environment).
2016-03-16 17:37:07 +01:00
Andreas Schwab d76975dbd2 Define FFI_SIZEOF_JAVA_RAW for aarch64 ILP32
Like x32, aarch64 ILP32 needs to define FFI_SIZEOF_JAVA_RAW.  This fixes
the java interpreter.
2016-03-16 12:23:07 +01:00
Anthony Green 9de24a3ff3 Merge pull request #212 from tromey/struct-layout
add ffi_get_struct_offsets
2016-03-14 13:54:53 -04:00
Berker Peksag 2627fc98e8 Add a note about the --disable-docs switch
Closes #204
2016-03-07 18:43:03 +02:00
Berker Peksag 6aafb5654d Simplify error handling in mkdir_p() 2016-03-05 08:30:31 +02:00
Anthony Green ee718066f7 Merge pull request #227 from tromey/fix-documentation-build
Fix documentation build
2016-02-22 20:15:40 -05:00
Tom Tromey 38a4d72c95 add ffi_get_struct_offsets 2016-02-22 16:07:55 -07:00
Tom Tromey e59fb55e09 remove and ignore texinfo.tex
This file is provided by Automake
2016-02-22 15:51:27 -07:00
Tom Tromey 6dd5fd5a64 fix documentation building
An earlier patch added --disable-docs, but went too far, making it
impossible to build the docs.

It turns out that Automake seemingly has a bug preventing the
conditional build of an info file.  So, this patch works around the
bug by putting the info_TEXINFOS rule into a new doc/Makefile.am.

Tested by building with and without --disable-docs and looking for the
existence of doc/libffi.info.
2016-02-22 15:49:43 -07:00
Anthony Green f2f234aef2 Merge pull request #190 from havardgraff/master
Add configure-option to disable building docs
2016-02-20 06:50:29 -05:00
Anthony Green 49b95edafd Merge pull request #194 from amodra/master
Correct powerpc sysv stack argument accounting
2016-02-20 06:49:40 -05:00
Anthony Green 415723b40b Merge pull request #104 from joshtriplett/efi64
Support the Windows/EFI calling convention on all x86-64 targets
2016-02-20 06:49:19 -05:00
Anthony Green 7c27fcbe09 Merge pull request #199 from Pan7/master
Fix configuring msvc compiler
2016-02-20 06:45:00 -05:00
Anthony Green 69143d06c6 Merge pull request #197 from foxsen/mips_go_closure
Mips go closure support
2016-02-20 06:44:28 -05:00