Log

Author Commit Date CI Message
Anthony Green 34f878a5 2013-11-16T06:57:54 Merge branch 'master' of github.com:/atgreen/libffi Conflicts: ChangeLog src/powerpc/ffi.c
Alan Modra 83f65b63 2013-11-16T06:53:50 Finally, this adds _CALL_ELF == 2 support. ELFv1 objects can't be linked with ELFv2 objects, so this is one case where preprocessor tests in ffi.c are fine. Also, there is no need to define a new FFI_ELFv2 or somesuch value in enum ffi_abi. FFI_LINUX64 will happily serve both ABIs.
Alan Modra 1fd04578 2013-11-16T06:53:50 Finally, this adds _CALL_ELF == 2 support. ELFv1 objects can't be linked with ELFv2 objects, so this is one case where preprocessor tests in ffi.c are fine. Also, there is no need to define a new FFI_ELFv2 or somesuch value in enum ffi_abi. FFI_LINUX64 will happily serve both ABIs.
Alan Modra 36285137 2013-11-16T06:52:43 Andreas' 2013-02-08 change reverted some breakage for struct return values from 2011-11-12, but in so doing reintroduced string instructions to sysv.S that are not supported on all powerpc variants. This patch properly copies the bounce buffer to destination in C code rather than in asm. I have tested this on powerpc64-linux, powerpc-linux and powerpc-freebsd. Well, the last on powerpc-linux by lying to configure with CC="gcc -m32 -msvr4-struct-return -mlong-double-64" \ CXX="g++ -m32 -msvr4-struct-return -mlong-double-64" \ /src/libffi-current/configure --build=powerpc-freebsd and then make && make CC="gcc -m32" CXX="g++ -m32" \ RUNTESTFLAGS=--target_board=unix/-m32/-msvr4-struct-return/-mlong-double-64\ check
Alan Modra 1c06515d 2013-11-16T06:41:36 The powerpc64 ABIs align structs passed by value, a fact ignored by gcc for quite some time. Since gcc now does the correct alignment, libffi needs to follow suit. This ought to be made selectable via a new abi value, and the #ifdefs removed from ffi.c along with many other #ifdefs present there and in assembly. I'll do that with a followup patch sometime. This is a revised version of https://sourceware.org/ml/libffi-discuss/2013/msg00162.html
Alan Modra a97cf1fa 2013-11-16T06:40:13 This patch prepares for ELFv2, where sizes of these areas change. It also makes some minor changes to improve code efficiency.
Alan Modra 164283f4 2013-11-16T06:38:55 The powerpc64 support opted to pass floating point values both in the fpr area and the parameter save area, necessary when the backend doesn't know if a function argument corresponds to the ellipsis arguments of a variadic function. This patch adds powerpc support for variadic functions, and changes the code to only pass fp in the ABI mandated area. ELFv2 needs this change since the parameter save area may not exist there. This also fixes two faulty tests that used a non-variadic function cast to call a variadic function, and spuriously reasoned that this is somehow necessary for static functions..
Andrew Haley 31257b31 2013-11-16T06:35:51 Fix sample closure code
Andrew Haley db0ace3a 2013-11-16T06:29:25 Fix broken test cases
Anthony Green de10f503 2013-11-14T10:56:29 Merge branch 'master' of https://github.com/bivab/libffi Conflicts: ChangeLog
David Schneider f3657da2 2013-11-14T13:02:16 update Changelog
Alan Modra 58c2577a 2013-11-13T16:55:36 This enshrines the current testsuite practice of using ffi_arg for returned values. It would be reasonable and logical to use the actual return argument type as passed to ffi_prep_cif, but this would mean changing a large number of tests that use ffi_arg and all backends that write results to an ffi_arg.
Anthony Green 8af42f99 2013-11-13T16:40:28 Respect HAVE_ALLOCA_H
David Schneider cdf405d5 2013-11-13T15:50:21 add a testcase for the double/float issue on ARMHF
David Schneider 77f823e3 2013-11-13T14:26:57 stop trying to assing vfp regs once we are done with the registers
David Schneider 37067ec5 2013-11-12T19:49:01 mark all vfp registers as used when done. To avoid assigning registers the would fit, once arguments have been on the stack, we mark all registers as used once we do not find a free register for the first time.
Anthony Green 2f5b7ce5 2013-11-09T06:16:32 UltraSPARC IIi fix. Update README and build configury.
Mark Kettenis becd7544 2013-11-06T06:43:49 Align the stack pointer to 16-bytes.
Konstantin Belousov 05c31093 2013-11-06T06:40:58 Mark executable as not requiring executable stack.
Anthony Green cf6bf981 2013-11-02T17:23:59 Fix up docs
Anthony Green 02177176 2013-11-02T17:11:22 Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green c2422174 2013-11-02T14:08:23 Merge pull request #45 from foss-for-synopsys-dwc-arc-processors/arc_support arc: Fix build error
Anthony Green c265b4ca 2013-11-02T14:08:23 Merge pull request #45 from foss-for-synopsys-dwc-arc-processors/arc_support arc: Fix build error
Anthony Green f4b843f8 2013-11-02T17:01:15 Don't align stack for win32
Anthony Green f3cd3934 2013-11-02T13:17:57 Merge pull request #51 from vbudovski/for_upstream Don't use 16 byte aligned stack for WIN32
Anthony Green 666f3e71 2013-10-26T09:12:42 Add more credits to README. Tidy up.
Anthony Green 73ada14e 2013-10-26T09:09:45 Update README
Mark H Weaver d3372c54 2013-10-26T08:30:06 Fix N32 ABI issue for MIPS.
Anthony Green d6716aba 2013-10-15T15:42:49 Update travis-ci build dependencies to include texinfo
Sandra Loosemore 16b93a21 2013-10-15T15:33:59 Add nios2 port.
Sandra Loosemore 2f5626ce 2013-10-15T15:32:16 Fix testsuite bug
Marcus Shawcroft f64e4a86 2013-10-15T15:20:14 Fix many.c testcase for Aarch64
Anthony Green 128cd1d2 2013-10-08T06:45:51 Fix spelling errors
Anthony Green ff06269d 2013-10-08T06:32:18 Update README for M88K and VAX
Anthony Green d2fcbcdf 2013-10-08T06:27:46 Add m88k and VAX support. Update some configury bits.
Vitaly Budovski 6aa15900 2013-09-05T12:05:06 Don't use 16 byte aligned stack for WIN32 This fixes a crash when accessing __stdcall functions in Python ctypes.
Mischa Jonker d918d478 2013-07-08T15:51:36 arc: Fix build error One part of the patch for ARC support was missing in the upstreamed version. Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
Anthony Green d3d099b4 2013-07-02T16:11:38 little-endian ppc64 support
Anthony Green 0f8690a8 2013-07-02T15:54:40 Rebuild for ARC additions
Anthony Green f88118b3 2013-07-02T15:51:27 Revert "Merge pull request #36 from abergmeier/emscripten_fix" This reverts commit 6a4d901dde7b3f87984c563505717cde3113d16e, reversing changes made to b50a13b9c07ec09af4b9697e482acdad571e6961.
Anthony Green 6a4d901d 2013-07-02T12:12:34 Merge pull request #36 from abergmeier/emscripten_fix Fixes for building with Emscripten
Anthony Green b50a13b9 2013-07-02T12:10:26 Merge pull request #44 from foss-for-synopsys-dwc-arc-processors/arc_support Add ARC support
Anthony Green 767f1f96 2013-07-02T12:08:04 Merge pull request #43 from JensTimmerman/__m128 added include for xmmintrin.h
Jens Timmerman b8a91d81 2013-07-02T10:57:37 added include for xmmintrin.h
Mischa Jonker b082e150 2013-06-10T16:19:33 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>
Andreas Bergmeier 587002c0 2013-04-19T17:12:24 Enable disabling of libtool on platforms where it does not work (e.g. LLVM). Build libraries normally then.
Anthony Green c3c40e02 2013-03-30T05:24:14 Merge pull request #34 from davidsch/armhf Fix ARM hard-float support for large numbers of VFP arguments
David Schneider 4750e3c6 2013-03-28T16:56:36 update changelog
David Schneider 9708e7cf 2013-03-27T19:31:04 folow the ARM hard-float ABI in ffi_prep_incoming_args_VFP
David Schneider b4112098 2013-03-27T16:38:35 create separated versions of ffi_prep_incoming_args_* for SYSV and VFP ABIs. The different versions will be called depending on the value of cif->abi
David Schneider dd26f1f3 2013-03-28T15:39:01 add a failing test for closures on ARM hardfloat
David Schneider 3c160861 2013-03-26T19:24:47 extend ffi_prepare_args for FFI_VFP (hard-float ABI), fixing an issue with passing VFP arguments in VFP registers and the stack, while at the same time not using all core registers.
David Schneider 0f2ff2d4 2013-03-26T19:22:02 separate ARM ffi_prepare_args in a version implementing the simple SYSV calling convention and one for the hard-float calling convention
David Schneider 3a352b8a 2013-03-26T14:24:04 move the hardfloat specific argument copying code to the helper function
David Schneider 5df6b794 2013-03-26T14:02:21 extract setting of arguments to be passed to a helper function
David Schneider 7d1048c4 2013-03-26T11:33:33 extract code to align the argument storage pointer to a helper function
David Schneider b9f01378 2013-03-25T13:27:36 add a testcase, that on ARM hardfloat needs more than the 8 VFP argument registers to pass arguments to a call
David Schneider 2fbdb0f2 2013-03-25T13:26:02 use the absolute value to check the test result against an epsilon
Anthony Green ede96e4e 2013-03-17T18:38:21 Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green f22ab3c6 2013-03-17T18:34:54 Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green 9e34992a 2013-03-17T18:34:54 Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green 12b1886d 2013-03-17T18:32:12 cygwin fix & updates for 3.0.13
Anthony Green d08124be 2013-03-17T18:32:12 cygwin fix & updates for 3.0.13
Anthony Green cb32c812 2013-03-17T09:27:55 Fix lib install dir
Anthony Green efd7866a 2013-03-16T08:35:57 2.0.13rc1
Anthony Green ff647ad4 2013-03-16T08:20:40 Merge branch 'master' of github.com:/atgreen/libffi Conflicts: ChangeLog
Anthony Green 4acf0056 2013-03-16T08:18:45 Build fix for soft-float power targets
Anthony Green 675c9839 2013-03-16T08:12:38 Documentation fix
Anthony Green 8a286f57 2013-03-16T08:01:19 Fix for m68000 systems
Anthony Green d9dd417b 2013-03-16T08:01:19 Fix for m68000 systems
Anthony Green 215763d0 2013-03-16T07:57:35 Update configury.
Anthony Green 9180d8f3 2013-03-16T07:46:55 Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green 2fb527a0 2013-03-16T07:46:38 Add Meta processor support
Anthony Green 211a9ebf 2013-03-16T04:24:40 Merge pull request #32 from alex/patch-1 Fix for a crasher due to misaligned stack on x86-32.
Anthony Green 7e1b3264 2013-03-16T04:24:40 Merge pull request #32 from alex/patch-1 Fix for a crasher due to misaligned stack on x86-32.
Alex Gaynor ee18766b 2013-03-14T15:00:33 Fix for a crasher due to misaligned stack on x86-32. Full information on reproduction (using Python's ctypes available here: http://bugs.python.org/issue17423)
Anthony Green f308faf1 2013-02-11T14:25:13 Add moxie support. Release 3.0.12.
Anthony Green 4ea22e54 2013-02-10T08:48:38 Update README
Anthony Green 10e77227 2013-02-10T08:47:26 mend
Anthony Green a9521411 2013-02-09T06:54:40 sparc v8 and testsuite fixes
Anthony Green 70b11b47 2013-02-08T16:12:19 Fix small struct passing on ppc
Anthony Green 63ba1fa7 2013-02-08T15:18:19 Remove xfail for arm*-*-*.
Anthony Green 24fbca4c 2013-02-08T14:19:56 Fix typo
Anthony Green b0fa11cb 2013-02-08T14:17:13 More man page cleanup
Anthony Green 8bd15d13 2013-02-08T13:56:37 Fix many.c testcase for ppc
Anthony Green 7aab825c 2013-02-08T13:26:21 Add missing files to dist
Anthony Green cb03ea8f 2013-02-08T12:25:18 sparc v9 fixes for sun tools
Anthony Green 35ee8d44 2013-02-08T07:12:41 Fix microblaze big-endian struct issue
Anthony Green 9db7e1a9 2013-02-07T21:06:08 Fix botched sparc patch. Update version.
Anthony Green ce0138e6 2013-02-07T18:04:01 Update bug report address. rc2.
Anthony Green fd07c9e4 2013-02-07T18:00:36 Add cache flushing routine for sun compiler on sparc solaris 2.8
Anthony Green ed6ae950 2013-02-07T16:43:36 Add libtool-ldflags. Define toolexeclibdir for non-GCC builds.
Anthony Green ffef2e04 2013-02-07T15:47:01 x32 and libtool fixes
Anthony Green 95eecebb 2013-02-07T15:32:46 Remove a.out cruft from dist
Anthony Green 176aa9d2 2013-02-07T15:29:22 Fix GCC usage test and update README
Anthony Green f3a4f3fd 2013-02-07T09:57:20 Fixes for AIX xlc compiler.
Anthony Green 522f8fef 2013-02-06T20:31:31 Fix man page. Clean out junk.
Anthony Green c4dfa259 2013-02-06T17:43:24 Bump soversion
Anthony Green f62bd63f 2013-02-06T17:38:32 Release candidate 1
Anthony Green f7cd61e9 2013-02-06T17:38:04 Fix pkgconfig install bits