platform/upstream/libffi.git
9 years agoMerge pull request #129 from frida/fix/darwin-aarch64-cif-prep
Anthony Green [Thu, 18 Sep 2014 23:05:35 +0000 (19:05 -0400)]
Merge pull request #129 from frida/fix/darwin-aarch64-cif-prep

Fix non-variadic CIF initialization for Apple/ARM64

9 years agoMerge pull request #124 from knuesel/master
Anthony Green [Thu, 18 Sep 2014 22:28:05 +0000 (18:28 -0400)]
Merge pull request #124 from knuesel/master

Fix issue with builddir when calling configure with absolute path

9 years agoMerge pull request #123 from ehsan/clang-cl
Anthony Green [Thu, 18 Sep 2014 22:27:15 +0000 (18:27 -0400)]
Merge pull request #123 from ehsan/clang-cl

Add support for building with clang-cl

10 years agoEnable forcing the usage of the static CRT in libffi's msvc wrapper
Ehsan Akhgari [Fri, 1 Aug 2014 00:33:33 +0000 (20:33 -0400)]
Enable forcing the usage of the static CRT in libffi's msvc wrapper

This is required for AddressSanitizer builds with clang-cl.

10 years agoFix non-variadic CIF initialization for Apple/ARM64
Ole André Vadla Ravnås [Fri, 25 Jul 2014 22:11:06 +0000 (00:11 +0200)]
Fix non-variadic CIF initialization for Apple/ARM64

Turns out `aarch64_nfixedargs` wasn't initialized in the non-variadic
case, resulting in undefined behavior when allocating arguments.

10 years agoFix issue with builddir when calling configure with absolute path
Jeremie Knuesel [Wed, 25 Jun 2014 10:28:17 +0000 (12:28 +0200)]
Fix issue with builddir when calling configure with absolute path

10 years agoAdd support for building with clang-cl
Ehsan Akhgari [Wed, 11 Jun 2014 16:07:24 +0000 (12:07 -0400)]
Add support for building with clang-cl

10 years agoRemove compiler warning
Anthony Green [Thu, 12 Jun 2014 10:30:59 +0000 (06:30 -0400)]
Remove compiler warning

10 years agoFix paths in libffi.pc.in
Samuli Suominen [Thu, 12 Jun 2014 10:30:21 +0000 (06:30 -0400)]
Fix paths in libffi.pc.in

10 years agoMerge pull request #122 from rvandermeulen/1014976
Anthony Green [Fri, 6 Jun 2014 12:24:35 +0000 (08:24 -0400)]
Merge pull request #122 from rvandermeulen/1014976

Don't make --enable-debug imply using the debug CRT in libffi

10 years agoBug 1014976 - Don't make --enable-debug imply using the debug CRT in libffi.
Mike Hommey [Mon, 2 Jun 2014 13:21:10 +0000 (09:21 -0400)]
Bug 1014976 - Don't make --enable-debug imply using the debug CRT in libffi.

10 years agoPrepare for libffi 3.1.1
Anthony Green [Sat, 31 May 2014 12:54:08 +0000 (08:54 -0400)]
Prepare for libffi 3.1.1

10 years agoAdd missing GNU stack markings in win32.S
Samuli Suominen [Sat, 31 May 2014 12:53:10 +0000 (08:53 -0400)]
Add missing GNU stack markings in win32.S

10 years agoFix typo
Ryan Hill [Sat, 31 May 2014 12:26:34 +0000 (08:26 -0400)]
Fix typo

10 years agoUpdate current version.
Anthony Green [Sun, 25 May 2014 03:28:42 +0000 (23:28 -0400)]
Update current version.

10 years agoIncrement libtool version number
Anthony Green [Mon, 19 May 2014 22:05:33 +0000 (18:05 -0400)]
Increment libtool version number

10 years agoMerge pull request #120 from l0kod/tmpfile
Anthony Green [Mon, 19 May 2014 22:04:28 +0000 (18:04 -0400)]
Merge pull request #120 from l0kod/tmpfile

Create temporary file with O_TMPFILE and O_CLOEXEC when available

10 years agoclosures: Check for mkostemp(3)
Mickaël Salaün [Mon, 12 May 2014 17:44:08 +0000 (19:44 +0200)]
closures: Check for mkostemp(3)

10 years agoclosures: Create temporary file with O_TMPFILE and O_CLOEXEC when available
Mickaël Salaün [Sun, 11 May 2014 20:54:58 +0000 (22:54 +0200)]
closures: Create temporary file with O_TMPFILE and O_CLOEXEC when available

The open_temp_exec_file_dir function can create a temporary file without
file system accessible link. If the O_TMPFILE flag is not defined (old
Linux kernel or libc) the behavior is unchanged.

The open_temp_exec_file_name function now need a new argument "flags"
(like O_CLOEXEC) used for temporary file creation.

The O_TMPFILE flag allow temporary file creation without race condition.
This feature/fix prevent another process to access the (future)
executable file from the file system.

The O_CLOEXEC flag automatically close the temporary file for any
execve. This avoid transmitting (executable) file descriptor to a child
process.

10 years agoUpdate date. Annoucing 3.1 today. upstream_3.1 v3.1
Anthony Green [Mon, 19 May 2014 13:41:32 +0000 (09:41 -0400)]
Update date. Annoucing 3.1 today.

10 years agoIncrement libtool library revision number
Anthony Green [Mon, 19 May 2014 13:37:21 +0000 (09:37 -0400)]
Increment libtool library revision number

10 years agoUpdate to version 3.1
Anthony Green [Sun, 11 May 2014 14:30:22 +0000 (10:30 -0400)]
Update to version 3.1

10 years agoSupport versions of git older than 1.8.5
Anthony Green [Sun, 11 May 2014 14:22:30 +0000 (10:22 -0400)]
Support versions of git older than 1.8.5

10 years agoFix testsuite for GCC 4.9.0
Anthony Green [Sun, 11 May 2014 13:56:40 +0000 (09:56 -0400)]
Fix testsuite for GCC 4.9.0

10 years agoCheck /proc/self/status for PaX status.
Magnus Granberg [Sun, 11 May 2014 13:55:28 +0000 (09:55 -0400)]
Check /proc/self/status for PaX status.

10 years agoUse to get correct dir
Dominik Vogt [Sun, 11 May 2014 13:52:47 +0000 (09:52 -0400)]
Use to get correct dir

10 years agoMerge pull request #119 from joshtriplett/fastcall-fastball
Anthony Green [Wed, 23 Apr 2014 23:24:47 +0000 (19:24 -0400)]
Merge pull request #119 from joshtriplett/fastcall-fastball

src/x86/win32.S: Define ffi_closure_FASTCALL in the MASM section, too

10 years agosrc/x86/win32.S: Define ffi_closure_FASTCALL in the MASM section, too
Josh Triplett [Wed, 23 Apr 2014 04:17:52 +0000 (21:17 -0700)]
src/x86/win32.S: Define ffi_closure_FASTCALL in the MASM section, too

10 years agoMerge pull request #101 from joshtriplett/fastcall-closures
Anthony Green [Mon, 21 Apr 2014 16:41:56 +0000 (12:41 -0400)]
Merge pull request #101 from joshtriplett/fastcall-closures

Support closures for fastcall

10 years agoSupport fastcall closures
Josh Triplett [Sun, 20 Apr 2014 19:03:25 +0000 (12:03 -0700)]
Support fastcall closures

libffi on 32-bit x86 now supports closures for all supported ABIs.
Thus, rewrite the last remaining duplicated-by-ABI test (closure_stdcall
and closure_thiscall) to use the generic ABI_NUM/ABI_ATTR mechanism.

10 years agoMerge pull request #80 from ueno/devel
Anthony Green [Sat, 12 Apr 2014 23:38:07 +0000 (19:38 -0400)]
Merge pull request #80 from ueno/devel

Fix typo in doc

10 years agoMerge pull request #86 from joshtriplett/testsuite-CC-CXX
Anthony Green [Sat, 12 Apr 2014 23:37:21 +0000 (19:37 -0400)]
Merge pull request #86 from joshtriplett/testsuite-CC-CXX

testsuite ignores CC parameter supplied to configure or make

10 years agoMerge pull request #116 from frida/fix/darwin-aarch64-variadic
Anthony Green [Sat, 12 Apr 2014 23:32:08 +0000 (19:32 -0400)]
Merge pull request #116 from frida/fix/darwin-aarch64-variadic

Fix handling of variadic calls on Darwin/AArch64

10 years agoMerge pull request #115 from frida/fix/darwin-aarch64-alignment
Anthony Green [Sat, 12 Apr 2014 23:30:18 +0000 (19:30 -0400)]
Merge pull request #115 from frida/fix/darwin-aarch64-alignment

Fix alignment of AArch64 assembler functions

10 years agoMerge pull request #117 from frida/fix/windows-regression
Anthony Green [Sat, 12 Apr 2014 23:29:13 +0000 (19:29 -0400)]
Merge pull request #117 from frida/fix/windows-regression

Fix Windows regression

10 years agoFix Windows regression
Ole André Vadla Ravnås [Fri, 11 Apr 2014 23:04:04 +0000 (01:04 +0200)]
Fix Windows regression

Introduced by b5fed601948237037513a9b7f967c8fc6c9ff1f6.

10 years agoFix handling of variadic calls on Darwin/AArch64
Ole André Vadla Ravnås [Sun, 6 Apr 2014 18:54:13 +0000 (20:54 +0200)]
Fix handling of variadic calls on Darwin/AArch64

10 years agoFix alignment of AArch64 assembler functions
Ole André Vadla Ravnås [Sun, 6 Apr 2014 18:53:02 +0000 (20:53 +0200)]
Fix alignment of AArch64 assembler functions

10 years agoMerge pull request #114 from joshtriplett/bounce-on-a-tiny-trampoline
Anthony Green [Sun, 6 Apr 2014 03:41:22 +0000 (23:41 -0400)]
Merge pull request #114 from joshtriplett/bounce-on-a-tiny-trampoline

Fix ABI on 32-bit non-Windows x86: go back to trampoline size 10

10 years agoFix ABI on 32-bit non-Windows x86: go back to trampoline size 10
Josh Triplett [Sun, 6 Apr 2014 00:33:42 +0000 (17:33 -0700)]
Fix ABI on 32-bit non-Windows x86: go back to trampoline size 10

The trampoline size is part of the ABI, so it cannot change.  Move the
logic from the stdcall and thiscall trampolines to the functions they
call, to reduce them both to 10 bytes.

This drops the previously added support for raw THISCALL closures on
non-Windows.  (Non-raw THISCALL closures still work.)

10 years agoREADME: Note the testsuite changes to respect $CC and $CXX
Josh Triplett [Thu, 27 Mar 2014 15:44:34 +0000 (08:44 -0700)]
README: Note the testsuite changes to respect $CC and $CXX

10 years agoREADME: Update Windows example to set both CC and CXX
Josh Triplett [Thu, 27 Mar 2014 07:44:12 +0000 (00:44 -0700)]
README: Update Windows example to set both CC and CXX

10 years agoUse the proper C++ compiler to run C++ tests
Josh Triplett [Thu, 27 Mar 2014 06:17:56 +0000 (23:17 -0700)]
Use the proper C++ compiler to run C++ tests

Running the C compiler with -shared-libgcc -lstdc++ does not work on
non-GCC compilers.

10 years ago.travis.yml: Make the build command more readable by splitting at &&
Josh Triplett [Thu, 27 Mar 2014 06:53:57 +0000 (23:53 -0700)]
.travis.yml: Make the build command more readable by splitting at &&

"script" can contain multiple commands to run in sequence.

10 years agoAlways set CC_FOR_TARGET for dejagnu, to make the testsuite respect $CC
Josh Triplett [Wed, 26 Mar 2014 21:51:32 +0000 (14:51 -0700)]
Always set CC_FOR_TARGET for dejagnu, to make the testsuite respect $CC

This fixes cross-compilation and compilation with CC="gcc -m32".

10 years agoStop looking for expect and runtest above top_builddir
Josh Triplett [Thu, 27 Mar 2014 03:18:58 +0000 (20:18 -0700)]
Stop looking for expect and runtest above top_builddir

Users wishing to test hand-compiled versions of expect and runtest can
easily enough put them in their path or set EXPECT and RUNTEST
themselves.

10 years agoStop setting an empty AM_RUNTESTFLAGS
Josh Triplett [Thu, 27 Mar 2014 03:18:41 +0000 (20:18 -0700)]
Stop setting an empty AM_RUNTESTFLAGS

10 years agoUpgrade version to 3.1-rc1
Anthony Green [Tue, 25 Mar 2014 21:02:51 +0000 (17:02 -0400)]
Upgrade version to 3.1-rc1

10 years agoUpdate copyright date and clean up README notes.
Anthony Green [Tue, 25 Mar 2014 20:24:14 +0000 (16:24 -0400)]
Update copyright date and clean up README notes.

10 years agoMerge pull request #108 from joshtriplett/freebsd
Anthony Green [Tue, 25 Mar 2014 20:12:53 +0000 (16:12 -0400)]
Merge pull request #108 from joshtriplett/freebsd

[3.1 blocker] Fix FreeBSD support

10 years agoMerge pull request #106 from joshtriplett/darwin-award
Anthony Green [Tue, 25 Mar 2014 20:12:35 +0000 (16:12 -0400)]
Merge pull request #106 from joshtriplett/darwin-award

[3.1 blocker] Update OS X build system to include win32.S on 32-bit

10 years agoMerge pull request #110 from joshtriplett/w64
Anthony Green [Tue, 25 Mar 2014 20:12:17 +0000 (16:12 -0400)]
Merge pull request #110 from joshtriplett/w64

Fix 64-bit Windows support

10 years agoMerge pull request #105 from joshtriplett/win32-relocations
Anthony Green [Tue, 25 Mar 2014 20:07:47 +0000 (16:07 -0400)]
Merge pull request #105 from joshtriplett/win32-relocations

[3.1 blocker] win32.S needs to handle relocations/GOT

10 years agoCompile win32.S on FreeBSD
Josh Triplett [Tue, 25 Mar 2014 05:14:26 +0000 (22:14 -0700)]
Compile win32.S on FreeBSD

10 years agoCompile win32.S on 32-bit Darwin as well
Josh Triplett [Fri, 21 Mar 2014 18:10:13 +0000 (11:10 -0700)]
Compile win32.S on 32-bit Darwin as well

10 years agoAlways use configure to detect whether global symbols need underscores
Josh Triplett [Tue, 25 Mar 2014 04:44:13 +0000 (21:44 -0700)]
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.

10 years agoFix a warning on 64-bit Windows
Josh Triplett [Tue, 25 Mar 2014 04:24:53 +0000 (21:24 -0700)]
Fix a warning on 64-bit Windows

When sizeof(size_t) != sizeof(unsigned), adding a size_t to cif->bytes
produces a "possible loss of data" warning.  However, the size_t in
question refers to the size of a single parameter.  Use a cast to avoid
the warning.

10 years agoAvoid referencing undefined ABIs on 64-bit Windows builds
Josh Triplett [Tue, 25 Mar 2014 04:21:12 +0000 (21:21 -0700)]
Avoid referencing undefined ABIs on 64-bit Windows builds

64-bit Windows does not have FFI_STDCALL, FFI_THISCALL, or FFI_FASTCALL.

10 years agowin32.S: Add handling for position-independent code on Darwin
Josh Triplett [Sat, 22 Mar 2014 17:00:53 +0000 (10:00 -0700)]
win32.S: Add handling for position-independent code on Darwin

Newer versions of Darwin generate the necessary stub functions
automatically and just need a call instruction, but accomodating older
versions as well requires adding the stub.

10 years agowin32.S: Use shifting for multiplication rather than repeated addition
Josh Triplett [Fri, 21 Mar 2014 18:01:39 +0000 (11:01 -0700)]
win32.S: Use shifting for multiplication rather than repeated addition

The jump table code added a register to itself twice to multiply by 4;
shift the register left by 2 instead.

10 years agowin32.S: Make the jump tables position-independent
Josh Triplett [Fri, 21 Mar 2014 18:00:41 +0000 (11:00 -0700)]
win32.S: Make the jump tables position-independent

Now that non-Windows platforms include win32.S, it needs to support
building as position-independent code.  This fixes build failures on
target platforms that do not allow text relocations.

10 years agowin32.S: Make calls to ffi_closure_SYSV_inner position-independent
Josh Triplett [Fri, 21 Mar 2014 17:57:06 +0000 (10:57 -0700)]
win32.S: Make calls to ffi_closure_SYSV_inner position-independent

Now that non-Windows platforms include win32.S, it needs to support
building as position-independent code.  This fixes one source of build
failures on target platforms that do not allow text relocations.

10 years agoMerge pull request #107 from rvandermeulen/msvcc
Anthony Green [Tue, 18 Mar 2014 16:19:36 +0000 (12:19 -0400)]
Merge pull request #107 from rvandermeulen/msvcc

Various compatibility fixes and improvements to msvcc.sh.

10 years agoVarious compatibility fixes and improvements to msvcc.sh.
Ryan VanderMeulen [Tue, 18 Mar 2014 16:09:45 +0000 (12:09 -0400)]
Various compatibility fixes and improvements to msvcc.sh.

* Don't try to mix incompatible optimization flags in debug builds.
* Workaround ax_cc_maxopt.m4 not supporting MSVC and change -O3 to -O2.
* Fix MSVC warning by properly passing linker flags to compiler.
* Make msvcc.sh return 1 if invalid command line options are used rather than silently eating them.
* Add more comments.

10 years agoMerge pull request #102 from joshtriplett/test-generic
Anthony Green [Mon, 17 Mar 2014 04:32:42 +0000 (00:32 -0400)]
Merge pull request #102 from joshtriplett/test-generic

Add ABIs to the test matrix; unify many bits of the testsuite

10 years agotestsuite: Add ABIs to the test matrix; unify tests across ABIs
Josh Triplett [Mon, 17 Mar 2014 03:29:27 +0000 (20:29 -0700)]
testsuite: Add ABIs to the test matrix; unify tests across ABIs

This eliminates all the *_win32.c tests in favor of the tests they were
branched from, and expands test coverage to run many more tests on
stdcall, thiscall, and fastcall.

This same mechanism also supports testing any other target that has
multiple ABIs.

10 years agotestsuite: Replace ffitestcxx.h with ffitest.h
Josh Triplett [Mon, 17 Mar 2014 00:02:05 +0000 (17:02 -0700)]
testsuite: Replace ffitestcxx.h with ffitest.h

ffitest.h contains a superset of the functionality of ffitestcxx.h;
make the C++ tests include ffitest.h instead, and remove ffitestcxx.h.

10 years agotestsuite: Unify the C and C++ testsuites
Josh Triplett [Sun, 16 Mar 2014 23:53:42 +0000 (16:53 -0700)]
testsuite: Unify the C and C++ testsuites

These two testsuites differ only in the source file glob and a couple of
additional compiler options; unify the remaining bits.

10 years agotestsuite: ffitest.h: Parenthesize the CHECK macro
Josh Triplett [Sun, 16 Mar 2014 23:22:58 +0000 (16:22 -0700)]
testsuite: ffitest.h: Parenthesize the CHECK macro

10 years agotestsuite: Factor out a function to run a matrix of tests
Josh Triplett [Sun, 16 Mar 2014 23:04:58 +0000 (16:04 -0700)]
testsuite: Factor out a function to run a matrix of tests

This commons up code from libffi.call/call.exp and
libffi.special/special.exp, unifies the optimization option matrix
between the two, and makes it easier to add more axes to the matrix
in the future.

10 years agotestsuite: Introduce a __THISCALL__ compiler-specific macro
Josh Triplett [Sun, 16 Mar 2014 22:26:26 +0000 (15:26 -0700)]
testsuite: Introduce a __THISCALL__ compiler-specific macro

10 years agoMerge pull request #99 from joshtriplett/gitignore
Anthony Green [Mon, 17 Mar 2014 02:03:29 +0000 (22:03 -0400)]
Merge pull request #99 from joshtriplett/gitignore

.gitignore: Ignore more generated files

10 years agoMerge pull request #100 from rvandermeulen/bug-756740
Anthony Green [Mon, 17 Mar 2014 01:37:42 +0000 (21:37 -0400)]
Merge pull request #100 from rvandermeulen/bug-756740

Change double quotes in Makefile.am to single quotes.

10 years agoChange double quotes in Makefile.am to single quotes.
Ryan VanderMeulen [Mon, 17 Mar 2014 01:16:08 +0000 (21:16 -0400)]
Change double quotes in Makefile.am to single quotes.

This was originally done in PR #84, except the change was made to Makefile.in instead of Makefile.am and was therefore reverted the next time the files were regenerated.

10 years ago.gitignore: Ignore more generated files
Josh Triplett [Sun, 16 Mar 2014 23:19:46 +0000 (16:19 -0700)]
.gitignore: Ignore more generated files

The build process generates doc/libffi.info and fficonfig.h.in, so add
them to .gitignore.

10 years agotestsuite: Introduce a __STDCALL__ compiler-specific macro
Josh Triplett [Sun, 16 Mar 2014 22:16:18 +0000 (15:16 -0700)]
testsuite: Introduce a __STDCALL__ compiler-specific macro

Several tests want to use stdcall, which differs in syntax by compiler,
so introduce a macro for it in ffitest.h.

10 years agotestsuite: Common up the ifdef blocks for compiler-specific macros
Josh Triplett [Sun, 16 Mar 2014 22:20:36 +0000 (15:20 -0700)]
testsuite: Common up the ifdef blocks for compiler-specific macros

10 years agoMerge pull request #98 from joshtriplett/unconfigure.host
Anthony Green [Sun, 16 Mar 2014 14:53:48 +0000 (10:53 -0400)]
Merge pull request #98 from joshtriplett/unconfigure.host

Merge configure.host into configure.ac

10 years agoMerge configure.host into configure.ac
Josh Triplett [Sun, 16 Mar 2014 13:58:59 +0000 (06:58 -0700)]
Merge configure.host into configure.ac

configure.host only has a single entry, and shows no signs of needing
more added.

10 years agoUpdate version to 3.1-rc0. Clean up README.
Anthony Green [Sun, 16 Mar 2014 13:45:55 +0000 (09:45 -0400)]
Update version to 3.1-rc0.  Clean up README.

10 years agoMerge pull request #97 from joshtriplett/remove-more-generated-files
Anthony Green [Sun, 16 Mar 2014 13:39:08 +0000 (09:39 -0400)]
Merge pull request #97 from joshtriplett/remove-more-generated-files

Remove more generated files

10 years agoMerge pull request #96 from joshtriplett/sawing-changelogs
Anthony Green [Sun, 16 Mar 2014 13:38:47 +0000 (09:38 -0400)]
Merge pull request #96 from joshtriplett/sawing-changelogs

Generate ChangeLog from git in make dist; remove it from version control

10 years agodoc: Remove autogenerated info file and stamp
Josh Triplett [Sun, 16 Mar 2014 13:26:03 +0000 (06:26 -0700)]
doc: Remove autogenerated info file and stamp

10 years agofficonfig.h.in: Remove, configure generates it
Josh Triplett [Sun, 16 Mar 2014 13:25:52 +0000 (06:25 -0700)]
fficonfig.h.in: Remove, configure generates it

10 years agoGenerate ChangeLog from git in make dist
Josh Triplett [Sun, 16 Mar 2014 13:11:58 +0000 (06:11 -0700)]
Generate ChangeLog from git in make dist

Archive the existing ChangeLog to ChangeLog.libffi-3.1

10 years agoChangeLog.v1: Fix typo in explanatory header.
Josh Triplett [Sun, 16 Mar 2014 12:52:00 +0000 (05:52 -0700)]
ChangeLog.v1: Fix typo in explanatory header.

10 years agoAdd missing ChangeLog entry. Clean up some entries.
Anthony Green [Sun, 16 Mar 2014 13:03:57 +0000 (09:03 -0400)]
Add missing ChangeLog entry.  Clean up some entries.

10 years agoMerge pull request #95 from joshtriplett/news
Anthony Green [Sun, 16 Mar 2014 12:41:00 +0000 (08:41 -0400)]
Merge pull request #95 from joshtriplett/news

README: Update news for 3.0.14

10 years agoREADME: Update news for 3.0.14
Josh Triplett [Sun, 16 Mar 2014 12:38:24 +0000 (05:38 -0700)]
README: Update news for 3.0.14

10 years agoMerge pull request #93 from joshtriplett/travis-dist
Anthony Green [Sun, 16 Mar 2014 12:32:05 +0000 (08:32 -0400)]
Merge pull request #93 from joshtriplett/travis-dist

Make Travis check "make dist"

10 years ago.travis.yml: Test "make dist" too.
Josh Triplett [Sun, 16 Mar 2014 12:29:08 +0000 (05:29 -0700)]
.travis.yml: Test "make dist" too.

10 years agoMerge pull request #85 from joshtriplett/stdcall
Anthony Green [Sun, 16 Mar 2014 12:05:51 +0000 (08:05 -0400)]
Merge pull request #85 from joshtriplett/stdcall

stdcall support on Linux

10 years agoAdd support for stdcall, thiscall, and fastcall on non-Windows x86-32
Josh Triplett [Sun, 16 Mar 2014 10:25:53 +0000 (03:25 -0700)]
Add support for stdcall, thiscall, and fastcall on non-Windows x86-32

Linux supports the stdcall calling convention, either via functions
explicitly declared with the stdcall attribute, or via code compiled
with -mrtd which effectively makes stdcall the default.

This introduces FFI_STDCALL, FFI_THISCALL, and FFI_FASTCALL on
non-Windows x86-32 platforms, as non-default calling conventions.

10 years agoMerge pull request #90 from joshtriplett/win32-unifdef
Anthony Green [Sun, 16 Mar 2014 11:58:16 +0000 (07:58 -0400)]
Merge pull request #90 from joshtriplett/win32-unifdef

prep_cif.c: Remove unnecessary ifdef for X86_WIN32

10 years agoMerge pull request #89 from joshtriplett/travis32
Anthony Green [Sun, 16 Mar 2014 11:57:59 +0000 (07:57 -0400)]
Merge pull request #89 from joshtriplett/travis32

.travis.yml: Test on both 32-bit and 64-bit

10 years agoprep_cif.c: Remove unnecessary ifdef for X86_WIN32
Josh Triplett [Sun, 16 Mar 2014 08:50:02 +0000 (01:50 -0700)]
prep_cif.c: Remove unnecessary ifdef for X86_WIN32

ffi_prep_cif_core had a special case for X86_WIN32, checking for
FFI_THISCALL in addition to the FFI_FIRST_ABI-to-FFI_LAST_ABI range
before returning FFI_BAD_ABI.  However, on X86_WIN32, FFI_THISCALL
already falls in that range, making the special case unnecessary.
Remove it.

10 years ago.travis.yml: Test on both 32-bit and 64-bit
Josh Triplett [Sun, 16 Mar 2014 06:27:56 +0000 (23:27 -0700)]
.travis.yml: Test on both 32-bit and 64-bit

10 years agoMerge pull request #94 from joshtriplett/esp-extra-stackery-perception
Anthony Green [Sun, 16 Mar 2014 11:51:33 +0000 (07:51 -0400)]
Merge pull request #94 from joshtriplett/esp-extra-stackery-perception

ChangeLog: Document testsuite changes to remove fragile stack pointer checks

10 years agoChangeLog: Document testsuite changes to remove fragile stack pointer checks
Josh Triplett [Sun, 16 Mar 2014 11:49:36 +0000 (04:49 -0700)]
ChangeLog: Document testsuite changes to remove fragile stack pointer checks

10 years agoMerge pull request #91 from joshtriplett/esp-extra-stackery-perception
Anthony Green [Sun, 16 Mar 2014 11:47:17 +0000 (07:47 -0400)]
Merge pull request #91 from joshtriplett/esp-extra-stackery-perception

testsuite: Remove fragile stack pointer checks