src


Log

Author Commit Date CI Message
Zachary Waldowski 16ba1b80 2012-04-11T23:26:04 Darwin: Silence Clang warnings.
Alan Modra ac753688 2013-11-21T06:12:35 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.
Iain Sandoe aa1f62c0 2013-11-18T13:11:56 Fix PowerPC Darwin FDE encodings to use pcrel correctly. Modernise the picbase labels.
Anthony Green 2f450822 2013-11-18T06:52:29 Clean up code to appease modern GCC compiler.
Alan Modra 16d56c51 2013-11-18T06:36:03 An #endif in the wrong place would cause compile failure on powerpcle. Using bl instead of b doesn't cause runtime failures as you might think, but does mess the processor branch prediction.
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..
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.
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 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 f3cd3934 2013-11-02T13:17:57 Merge pull request #51 from vbudovski/for_upstream Don't use 16 byte aligned stack for WIN32
Mark H Weaver d3372c54 2013-10-26T08:30:06 Fix N32 ABI issue for MIPS.
Sandra Loosemore 16b93a21 2013-10-15T15:33:59 Add nios2 port.
Anthony Green 128cd1d2 2013-10-08T06:45:51 Fix spelling errors
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.
Anthony Green d3d099b4 2013-07-02T16:11:38 little-endian ppc64 support
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>
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 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
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 4acf0056 2013-03-16T08:18:45 Build fix for soft-float power targets
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 2fb527a0 2013-03-16T07:46:38 Add Meta processor support
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 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 8bd15d13 2013-02-08T13:56:37 Fix many.c testcase for ppc
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 fd07c9e4 2013-02-07T18:00:36 Add cache flushing routine for sun compiler on sparc solaris 2.8
Anthony Green 6a790129 2013-02-06T17:37:15 Work around LLVM ABI problem on x86-64
Anthony Green aeb8719a 2013-01-21T07:37:30 New microblaze support
Anthony Green 40860245 2013-01-21T07:37:30 New microblaze support
Anthony Green 20cae32b 2013-01-21T07:07:38 Xtensa support
Anthony Green 05fbe1fa 2013-01-11T16:54:40 xlc compiler support
Anthony Green 8bf987d4 2013-01-10T17:24:51 Fix for sunpro compiler on Solaris
Anthony Green 2d9b3939 2013-01-09T21:14:54 Fix for closures with sunpro compiler
Anthony Green 35ddb69c 2013-01-08T07:53:37 Only emit DWARF unwind info when building with GCC
Anthony Green 8f4772f3 2013-01-07T06:14:53 m68k fixes for signed 8 and 16-bit calls.
rofl0r f6b58d2b 2012-11-22T16:26:21 fix build on ppc when long double == double
Anthony Green f680b598 2012-11-06T16:00:40 Add missing aarch64 configury bits
Anthony Green dfadfb19 2012-10-31T06:46:41 Rebase for ppc64 fix
Anthony Green e944b8c7 2012-10-30T14:06:09 Add PaX work-around
Anthony Green 58e8b66f 2012-10-30T07:07:19 AArch64 port
Anthony Green fa5d7479 2012-10-30T07:07:19 AArch64 port
Anthony Green 9c00a3f6 2012-10-12T16:46:06 TILE-Gx/TILEPro support
Anthony Green 048d2f41 2012-10-11T10:55:25 Rebase
Anthony Green 213ed15c 2012-04-27T01:34:15 Add blackfin supprt from Alexandre Keunecke.
Zachary Waldowski 39e6a586 2012-04-11T22:39:46 More mac/ios build improvements
Anthony Green 853cc722 2012-04-10T06:33:33 Fix typo for darwin targets
Anthony Green a044a56b 2012-04-06T10:39:10 Linux/x32 libtool fix
Zachary Waldowski 39dccddb 2012-04-05T12:32:41 Fix building with Clang for Darwin (OS X 10.6+ and iOS 4.0+)
Peter Rosin 3afaa9a3 2012-04-03T07:40:31 Fix return_uc.c test case on windows.
Anthony Green 65f40c35 2012-04-03T07:35:59 Repair ppc build regression.
Peter Rosin 0a1ab12a 2012-03-30T08:14:08 Various MSVC-related changes.
Anthony Green e1539266 2012-03-30T00:40:18 ARM VFP fix for old toolchains
Anthony Green 7c5e60b5 2012-03-29T08:48:22 Rebase on fixed GCC sources
Anthony Green bd78c9c3 2012-03-21T08:09:30 More cygwin fixes
Anthony Green 84d3253f 2012-03-19T23:07:35 Rebase post GCC merge
Anthony Green 964c5b93 2012-03-03T14:46:20 abi check fixes and Linux/x32 support
Anthony Green 8360bf1c 2012-02-23T07:01:13 Ensure that users don't include ffitarget.h directly
Anthony Green d578b896 2012-02-15T00:18:18 Fix ABI check regression
Anthony Green dee20f8e 2012-02-10T13:06:46 Rebased from gcc
Anthony Green 1ff9c604 2012-02-01T16:34:30 Rebase from GCC
Anthony Green 211060eb 2012-01-23T14:24:01 Alpha fix
Anthony Green cd2277cc 2012-01-23T13:43:38 mend
Anthony Green 164e6fe0 2012-01-23T12:41:06 m68k fixes
Anthony Green c365ee75 2012-01-23T11:13:18 Refresh
Anthony Green ff9454da 2011-11-12T17:18:51 Add David Gilbert's variadic function call support
Anthony Green ea14ae85 2011-11-12T16:36:59 clean up
Anthony Green 52891f8a 2011-11-12T16:35:55 Add powerpc soft float support
Anthony Green 6a6e7f86 2011-11-12T16:20:42 Fix kfreebsd
Anthony Green 322052ce 2011-11-12T16:11:49 Fix arm wince alignment issue
Anthony Green af18df2b 2011-11-12T15:52:08 Remove use of ppc string instructions
Anthony Green c411f140 2011-11-12T07:32:36 Fix ax_enable_builddir macro on BSD systems
Anthony Green 3d56106b 2011-11-12T07:20:24 Rebase
Anthony Green 049d8386 2011-08-22T14:50:10 Many new patches
Anthony Green d992ac54 2011-07-29T17:32:53 Refresh from GCC
Anthony Green 2d3fb364 2011-03-30T16:54:42 Fix darwin EH
Anthony Green 09f8f310 2011-02-28T15:36:07 More AIX fixes. rc9.
Anthony Green 53d7b165 2011-02-28T15:23:31 Merge branch 'master' of https://github.com/landonf/libffi-ios