Commit Graph

956 Commits

Author SHA1 Message Date
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
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
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
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
Anthony Green
755f1e642d Merge pull request #193 from rth7680/fix-70
Test case from issue #70
2016-02-20 06:43:48 -05:00
Anthony Green
183ee6a672 Merge pull request #206 from edolnx/master
Add configure flag to disable multi-os-directory support
2016-02-20 06:43:28 -05:00
Anthony Green
0bb71b52f5 Merge pull request #211 from tromey/move-prep-types-out-of-ffi.h
ffi_prep_types is internal-only
2016-02-20 06:41:10 -05:00
Anthony Green
296a283a46 Merge pull request #213 from tromey/remove-FFI_TYPE
remove FFI_TYPE typedef
2016-02-20 06:40:21 -05:00
Anthony Green
e7c713a0b6 Merge pull request #214 from tromey/document-enum-support
document (lack of) enum handling in libffi
2016-02-20 06:40:03 -05:00
Anthony Green
79666abca8 Merge pull request #205 from filbranden/tool_opts
Fix dejagnu test support for --tool_opts
2016-02-20 06:38:40 -05:00
Anthony Green
20c7c31ca0 Merge pull request #225 from ehsan/safeseh
Don't clobber safeseh for msvcc.sh -clang-cl in 32-bit mode
2016-02-20 06:38:01 -05:00
Filipe Brandenburger
89b760503e Fix dejagnu test support for --tool_opts
Right now it concatenates it with the existing options and then appends
it to that list, fix it to simply append it as is, same as it is done
with the other variables.

Tested by running the following command which includes gcc options:
  $ make check RUNTESTFLAGS="--tool_opts '-Werror'"

Without this patch, all the tests fail. With it, the test succeed.
Inspecting the logs shows that -Werror was indeed used when compiling
the test sources.
2016-02-03 13:37:39 -08:00
Ehsan Akhgari
9c14cbfc7f Don't clobber safeseh for msvcc.sh -clang-cl in 32-bit mode
The commit fb25cd0 went a bit too far and removed safeseh
when -clang-cl was passed, but that's only needed in x86-64
which is already handled by the -m64 flag.

I discovered this when building Firefox x86 with clang-cl.
2016-01-28 16:57:18 -05:00
Anthony Green
6ba2a49e22 Merge pull request #222 from freakboy3742/t181
Fixed #181 -- Corrected problems with ARMv7 build under iOS.
2016-01-02 20:03:41 -05:00
Anthony Green
8005600a92 Merge pull request #224 from plicease/travis
update apt-get in travis
2016-01-02 16:44:29 -05:00
Graham Ollis
5e2b18a65d update apt-get in travis 2016-01-02 07:56:05 -05:00
Russell Keith-Magee
6a3a6acd9f Merge branch 'master' into t181 2015-12-21 00:37:37 +08:00
Russell Keith-Magee
bc4fc07aa5 Fixed #181 -- Corrected problems with ARMv7 build under iOS.
Based on a patch from @fealebenpae, with input from @SolaWing and @rth7680,
and testing from @superdump.
2015-12-21 00:37:06 +08:00
Anthony Green
70594f7f8d Merge pull request #221 from tromey/document-closure-ffi_arg
Document closure ffi arg
2015-12-18 10:24:38 -05:00
Tom Tromey
6affad7911 correctly document closure return promotion 2015-12-17 16:59:11 -07:00
Tom Tromey
8a7cdeb041 fix formatting of ffi_prep_closure_loc arguments 2015-12-17 16:58:23 -07:00
Tom Tromey
f45e9e3570 document (lack of) enum handling in libffi 2015-11-19 15:21:14 -07:00
Tom Tromey
4805bf9ccd remove FFI_TYPE typedef 2015-11-19 14:17:42 -07:00
Tom Tromey
8bec5ca26a ffi_prep_types is internal-only 2015-11-15 10:51:14 -07:00
Anthony Green
88deacdd42 speling fix 2015-11-15 08:39:17 -05:00
Anthony Green
5973dca595 Merge pull request #209 from tromey/documentation-updates
documentation fixes
2015-11-15 08:36:48 -05:00
Anthony Green
2a988c4455 Merge pull request #207 from tromey/deprecate-ffi-prep-closure
mark ffi_prep_closure as deprecated
2015-11-15 08:33:46 -05:00
Tom Tromey
473bcbcad3 documentation fixes
Fixes #78.  Documentation for #33 and #35, but no fix.
2015-11-10 16:14:02 -07:00
Tom Tromey
ff33ddd1ab mark ffi_prep_closure as deprecated 2015-11-07 12:04:24 -07:00
Carl Perry
877ea9bf9a Add configure flag to disable multi-os-directory support
In some environments, installing the library to GCC's
multi-os-directory is not perferable. This patch adds a switch
to configure "--disable-multi-os-directory" which will disable
that check, typically falling back to ${libdir} unless
cross-compiling.

Original patch was written by Stewart Brodie, and was found at
https://sourceware.org/ml/libffi-discuss/2013/msg00144.html

I've just updated it to work with the current version.
2015-10-29 22:50:42 -05:00
Richard Henderson
4cdedc279f Tidy call.exp test collection
Commit c952a92e20 moved all of
the complex tests to libffi.complex, but failed to remove the
anti-globbing from libffi.call.
2015-10-20 07:16:10 -10:00
Richard Henderson
609db2fbe4 Test case from Issue #70 2015-10-20 07:16:10 -10:00