Zachary Waldowski [Thu, 9 Jan 2014 18:42:08 +0000 (13:42 -0500)]
Darwin/i386: Inhibit Clang previous prototype warnings
Zachary Waldowski [Thu, 9 Jan 2014 18:41:45 +0000 (13:41 -0500)]
Darwin/ARM: Inhibit Clang previous prototype warnings
Zachary Waldowski [Thu, 9 Jan 2014 18:41:27 +0000 (13:41 -0500)]
Darwin/AArch64: Inhibit Clang previous prototype warnings
Anthony Green [Thu, 5 Dec 2013 21:23:25 +0000 (16:23 -0500)]
Undo iOS ARM64 changes.
Anthony Green [Sun, 1 Dec 2013 03:38:13 +0000 (22:38 -0500)]
Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green [Sun, 1 Dec 2013 02:06:51 +0000 (21:06 -0500)]
Mention Aarch64 on iOS
Anthony Green [Sun, 1 Dec 2013 02:06:51 +0000 (21:06 -0500)]
Mention Aarch64 on iOS
Anthony Green [Sun, 1 Dec 2013 01:58:31 +0000 (20:58 -0500)]
Remove build-ios from Makefile
Anthony Green [Sun, 1 Dec 2013 01:54:54 +0000 (20:54 -0500)]
Merge branch 'master' of github.com:/atgreen/libffi
Add ChangeLog entry.
Anthony Green [Sun, 1 Dec 2013 01:54:39 +0000 (17:54 -0800)]
Merge pull request #60 from zwaldowski/ios-redo
Mac/iOS support, including aarch64 port
Zachary Waldowski [Sat, 30 Nov 2013 18:25:27 +0000 (13:25 -0500)]
Darwin: Properly export headers from Xcode project
Zachary Waldowski [Sat, 30 Nov 2013 17:21:38 +0000 (12:21 -0500)]
Darwin: Freshen gen scripts, remove old build-ios.sh
Zachary Waldowski [Sat, 30 Nov 2013 17:03:51 +0000 (12:03 -0500)]
Darwin/iOS: Include x86_64+aarch64 pieces in library
Zachary Waldowski [Sat, 30 Nov 2013 08:03:37 +0000 (03:03 -0500)]
Darwin/aarch64: size_t assumptions
Zachary Waldowski [Sat, 30 Nov 2013 07:39:34 +0000 (02:39 -0500)]
Darwin/aarch64: Fix “shadows declaration” warnings
Zachary Waldowski [Sat, 30 Nov 2013 07:08:14 +0000 (02:08 -0500)]
Darwin/aarch64: Use Clang cache invalidation builtin
Zachary Waldowski [Sat, 30 Nov 2013 07:07:48 +0000 (02:07 -0500)]
Darwin/aarch64: Inhibit Xcode warning
Zachary Waldowski [Sat, 30 Nov 2013 07:07:34 +0000 (02:07 -0500)]
Darwin/aarch64: double == long double
Zachary Waldowski [Sat, 30 Nov 2013 07:06:00 +0000 (02:06 -0500)]
Darwin/iOS prep script: try and compile for arm64
Zachary Waldowski [Sat, 30 Nov 2013 07:05:22 +0000 (02:05 -0500)]
Darwin/aarch64: Restrict .size to ELF like arm32.
Zachary Waldowski [Sat, 30 Nov 2013 07:04:57 +0000 (02:04 -0500)]
Darwin/aarch64: Potentially(?) fix compile error
Zachary Waldowski [Sat, 30 Nov 2013 07:04:22 +0000 (02:04 -0500)]
Darwin/aarch64: Use CNAME refs
Zachary Waldowski [Sat, 30 Nov 2013 09:13:42 +0000 (04:13 -0500)]
Darwin/Mac: Fix 64/32 shortening warnings
Zachary Waldowski [Sat, 30 Nov 2013 08:03:00 +0000 (03:03 -0500)]
Darwin: Misc size_t warnings
Zachary Waldowski [Sat, 30 Nov 2013 07:55:48 +0000 (02:55 -0500)]
Darwin: Fix dlmalloc warnings due to sizeof(size_t)
Zachary Waldowski [Sat, 30 Nov 2013 09:09:30 +0000 (04:09 -0500)]
Darwin: Rebuild Xcode project
Zachary Waldowski [Sat, 30 Nov 2013 09:09:18 +0000 (04:09 -0500)]
Darwin/iOS: Fix LLVM 3.3 warning re: memcpy.
Zachary Waldowski [Sat, 30 Nov 2013 08:43:42 +0000 (03:43 -0500)]
Darwin: Clean up, modernize generator scripts
Zachary Waldowski [Sat, 30 Nov 2013 08:38:02 +0000 (03:38 -0500)]
Darwin/Mac: Also exclude OS X generated source
Zachary Waldowski [Tue, 24 Apr 2012 15:16:20 +0000 (11:16 -0400)]
Darwin/iOS: More unified syntax support w/ Clang.
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
Zachary Waldowski [Tue, 24 Apr 2012 14:25:29 +0000 (10:25 -0400)]
Darwin/iOS: Simplify RETLDM arguments for LLVM 3.1
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com>
Zachary Waldowski [Thu, 12 Apr 2012 03:26:04 +0000 (23:26 -0400)]
Darwin: Silence Clang warnings.
Anthony Green [Fri, 22 Nov 2013 02:25:44 +0000 (21:25 -0500)]
Merge branch 'master' of github.com:/atgreen/libffi
Conflicts:
ChangeLog
Alan Modra [Thu, 21 Nov 2013 11:12:35 +0000 (06:12 -0500)]
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.
Alan Modra [Thu, 21 Nov 2013 11:12:35 +0000 (06:12 -0500)]
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.
Anthony Green [Mon, 18 Nov 2013 14:34:04 +0000 (06:34 -0800)]
Merge pull request #59 from iains/powerpc-darwin-unwind-fix
Fix PowerPC Darwin FDE encodings to use pcrel correctly. Modernise the picbase labels.
Iain Sandoe [Mon, 18 Nov 2013 13:11:56 +0000 (13:11 +0000)]
Fix PowerPC Darwin FDE encodings to use pcrel correctly. Modernise the picbase labels.
Anthony Green [Mon, 18 Nov 2013 11:52:29 +0000 (06:52 -0500)]
Clean up code to appease modern GCC compiler.
Alan Modra [Mon, 18 Nov 2013 11:36:03 +0000 (06:36 -0500)]
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.
Anthony Green [Sat, 16 Nov 2013 11:57:54 +0000 (06:57 -0500)]
Merge branch 'master' of github.com:/atgreen/libffi
Conflicts:
ChangeLog
src/powerpc/ffi.c
Alan Modra [Sat, 16 Nov 2013 11:53:50 +0000 (06:53 -0500)]
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 [Sat, 16 Nov 2013 11:53:50 +0000 (06:53 -0500)]
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 [Sat, 16 Nov 2013 11:52:43 +0000 (06:52 -0500)]
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 [Sat, 16 Nov 2013 11:41:36 +0000 (06:41 -0500)]
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 [Sat, 16 Nov 2013 11:40:13 +0000 (06:40 -0500)]
This patch prepares for ELFv2, where sizes of these areas change. It
also makes some minor changes to improve code efficiency.
Alan Modra [Sat, 16 Nov 2013 11:38:55 +0000 (06:38 -0500)]
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 [Sat, 16 Nov 2013 11:35:51 +0000 (06:35 -0500)]
Fix sample closure code
Andrew Haley [Sat, 16 Nov 2013 11:29:25 +0000 (06:29 -0500)]
Fix broken test cases
Anthony Green [Thu, 14 Nov 2013 15:56:29 +0000 (10:56 -0500)]
Merge branch 'master' of https://github.com/bivab/libffi
Conflicts:
ChangeLog
David Schneider [Thu, 14 Nov 2013 12:02:16 +0000 (13:02 +0100)]
update Changelog
Alan Modra [Wed, 13 Nov 2013 21:55:36 +0000 (16:55 -0500)]
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 [Wed, 13 Nov 2013 21:40:28 +0000 (16:40 -0500)]
Respect HAVE_ALLOCA_H
David Schneider [Wed, 13 Nov 2013 14:50:21 +0000 (15:50 +0100)]
add a testcase for the double/float issue on ARMHF
David Schneider [Wed, 13 Nov 2013 13:26:57 +0000 (14:26 +0100)]
stop trying to assing vfp regs once we are done with the registers
David Schneider [Tue, 12 Nov 2013 18:49:01 +0000 (19:49 +0100)]
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 [Sat, 9 Nov 2013 11:16:32 +0000 (06:16 -0500)]
UltraSPARC IIi fix. Update README and build configury.
Mark Kettenis [Wed, 6 Nov 2013 11:43:49 +0000 (06:43 -0500)]
Align the stack pointer to 16-bytes.
Konstantin Belousov [Wed, 6 Nov 2013 11:40:58 +0000 (06:40 -0500)]
Mark executable as not requiring executable stack.
Anthony Green [Sat, 2 Nov 2013 21:23:59 +0000 (17:23 -0400)]
Fix up docs
Anthony Green [Sat, 2 Nov 2013 21:11:22 +0000 (17:11 -0400)]
Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green [Sat, 2 Nov 2013 21:08:23 +0000 (14:08 -0700)]
Merge pull request #45 from foss-for-synopsys-dwc-arc-processors/arc_support
arc: Fix build error
Anthony Green [Sat, 2 Nov 2013 21:08:23 +0000 (14:08 -0700)]
Merge pull request #45 from foss-for-synopsys-dwc-arc-processors/arc_support
arc: Fix build error
Anthony Green [Sat, 2 Nov 2013 21:01:15 +0000 (17:01 -0400)]
Don't align stack for win32
Anthony Green [Sat, 2 Nov 2013 20:17:57 +0000 (13:17 -0700)]
Merge pull request #51 from vbudovski/for_upstream
Don't use 16 byte aligned stack for WIN32
Anthony Green [Sat, 26 Oct 2013 13:12:42 +0000 (09:12 -0400)]
Add more credits to README. Tidy up.
Anthony Green [Sat, 26 Oct 2013 13:09:45 +0000 (09:09 -0400)]
Update README
Mark H Weaver [Sat, 26 Oct 2013 12:30:06 +0000 (08:30 -0400)]
Fix N32 ABI issue for MIPS.
Anthony Green [Tue, 15 Oct 2013 19:42:49 +0000 (15:42 -0400)]
Update travis-ci build dependencies to include texinfo
Sandra Loosemore [Tue, 15 Oct 2013 19:33:59 +0000 (15:33 -0400)]
Add nios2 port.
Sandra Loosemore [Tue, 15 Oct 2013 19:32:16 +0000 (15:32 -0400)]
Fix testsuite bug
Marcus Shawcroft [Tue, 15 Oct 2013 19:20:14 +0000 (15:20 -0400)]
Fix many.c testcase for Aarch64
Anthony Green [Tue, 8 Oct 2013 10:45:51 +0000 (06:45 -0400)]
Fix spelling errors
Anthony Green [Tue, 8 Oct 2013 10:32:18 +0000 (06:32 -0400)]
Update README for M88K and VAX
Anthony Green [Tue, 8 Oct 2013 10:27:46 +0000 (06:27 -0400)]
Add m88k and VAX support. Update some configury bits.
Vitaly Budovski [Thu, 5 Sep 2013 02:05:06 +0000 (12:05 +1000)]
Don't use 16 byte aligned stack for WIN32
This fixes a crash when accessing __stdcall functions in Python ctypes.
Mischa Jonker [Mon, 8 Jul 2013 13:51:36 +0000 (15:51 +0200)]
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 [Tue, 2 Jul 2013 20:11:38 +0000 (16:11 -0400)]
little-endian ppc64 support
Anthony Green [Tue, 2 Jul 2013 19:54:40 +0000 (15:54 -0400)]
Rebuild for ARC additions
Anthony Green [Tue, 2 Jul 2013 19:51:27 +0000 (15:51 -0400)]
Revert "Merge pull request #36 from abergmeier/emscripten_fix"
This reverts commit
6a4d901dde7b3f87984c563505717cde3113d16e, reversing
changes made to
b50a13b9c07ec09af4b9697e482acdad571e6961.
Anthony Green [Tue, 2 Jul 2013 19:12:34 +0000 (12:12 -0700)]
Merge pull request #36 from abergmeier/emscripten_fix
Fixes for building with Emscripten
Anthony Green [Tue, 2 Jul 2013 19:10:26 +0000 (12:10 -0700)]
Merge pull request #44 from foss-for-synopsys-dwc-arc-processors/arc_support
Add ARC support
Anthony Green [Tue, 2 Jul 2013 19:08:04 +0000 (12:08 -0700)]
Merge pull request #43 from JensTimmerman/__m128
added include for xmmintrin.h
Jens Timmerman [Tue, 2 Jul 2013 08:57:37 +0000 (10:57 +0200)]
added include for xmmintrin.h
Mischa Jonker [Mon, 10 Jun 2013 14:19:33 +0000 (16:19 +0200)]
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 [Fri, 19 Apr 2013 15:12:24 +0000 (17:12 +0200)]
Enable disabling of libtool on platforms where it does not work (e.g. LLVM).
Build libraries normally then.
Anthony Green [Sat, 30 Mar 2013 12:24:14 +0000 (05:24 -0700)]
Merge pull request #34 from davidsch/armhf
Fix ARM hard-float support for large numbers of VFP arguments
David Schneider [Thu, 28 Mar 2013 15:56:36 +0000 (16:56 +0100)]
update changelog
David Schneider [Wed, 27 Mar 2013 18:31:04 +0000 (19:31 +0100)]
folow the ARM hard-float ABI in ffi_prep_incoming_args_VFP
David Schneider [Wed, 27 Mar 2013 15:38:35 +0000 (16:38 +0100)]
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 [Thu, 28 Mar 2013 14:39:01 +0000 (15:39 +0100)]
add a failing test for closures on ARM hardfloat
David Schneider [Tue, 26 Mar 2013 18:24:47 +0000 (19:24 +0100)]
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 [Tue, 26 Mar 2013 18:22:02 +0000 (19:22 +0100)]
separate ARM ffi_prepare_args in a version implementing the simple SYSV calling convention and one for the hard-float calling convention
David Schneider [Tue, 26 Mar 2013 13:24:04 +0000 (14:24 +0100)]
move the hardfloat specific argument copying code to the helper function
David Schneider [Tue, 26 Mar 2013 13:02:21 +0000 (14:02 +0100)]
extract setting of arguments to be passed to a helper function
David Schneider [Tue, 26 Mar 2013 10:33:33 +0000 (11:33 +0100)]
extract code to align the argument storage pointer to a helper function
David Schneider [Mon, 25 Mar 2013 12:27:36 +0000 (13:27 +0100)]
add a testcase, that on ARM hardfloat needs more than the 8 VFP argument registers to pass arguments to a call
David Schneider [Mon, 25 Mar 2013 12:26:02 +0000 (13:26 +0100)]
use the absolute value to check the test result against an epsilon
Anthony Green [Sun, 17 Mar 2013 22:38:21 +0000 (18:38 -0400)]
Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green [Sun, 17 Mar 2013 22:34:54 +0000 (18:34 -0400)]
Merge branch 'master' of github.com:/atgreen/libffi
Anthony Green [Sun, 17 Mar 2013 22:34:54 +0000 (18:34 -0400)]
Merge branch 'master' of github.com:/atgreen/libffi