Richard Henderson
5e88ebe627
arm: Remove internal FFI_TYPE constants
...
These have been replaced by the contents of internal.h.
2014-11-12 09:32:13 +01:00
Richard Henderson
a4b785ea69
arm: Rewrite ffi_closure
...
Move the push of the argument registers into ffi_closure_SYSV,
reducing the size of the trampoline.
2014-11-12 09:32:13 +01:00
Richard Henderson
e7f15f60e8
arm: Rewrite ffi_call
...
Use the trick to allocate the stack frame for ffi_call_SYSV
within ffi_call itself.
2014-11-12 09:32:13 +01:00
Richard Henderson
a74a3aaddb
arm: Rewrite vfp_type_p
...
Do not modify the ffi_type. Rearrange the tests so that we
quickly eliminate structures that cannot match. Return an
encoded value of element count and base type.
2014-11-12 09:32:13 +01:00
Richard Henderson
0d39b4bb69
arm: Deref ffi_put_arg arguments
2014-11-12 09:32:13 +01:00
Richard Henderson
57b24fb3f5
arm: Deref ffi_align argument
2014-11-12 09:32:13 +01:00
Richard Henderson
c129bea82a
arm: Reindent arm/ffi.c
2014-11-12 09:32:13 +01:00
Matthias Klose
aaf3101ba8
Fix -Werror=declaration-after-statement problem
2014-09-20 06:37:04 -04:00
Anthony Green
001aaf4b1b
When no VFP arguments are present the IP register is used
...
uninitialized. Initialize it to the value of FP.
This fixes a number of testsuite failures when configured for
armv7l-unknown-linux-gnueabihf
2014-02-28 00:20:17 -05:00
Zachary Waldowski
6eff9ff9e7
Darwin/iOS: Improve unified syntax use for LLVM
2014-02-05 14:28:58 -05:00
Zachary Waldowski
994be3a5c1
Darwin/iOS: Fix mis-typing of vfp_reg_free
2014-02-05 14:28:58 -05:00
Zachary Waldowski
a8e0a835ab
Darwin/ARM: Assert on NULL dereference
...
This inhibits an analyzer warning by Clang on all platforms.
2014-02-05 14:28:58 -05:00
Zachary Waldowski
66469c381e
Darwin/ARM: Inhibit Clang previous prototype warnings
2014-02-05 14:28:49 -05:00
Anthony Green
3dc3f32c35
Undo iOS ARM64 changes.
2013-12-05 16:23:25 -05:00
Zachary Waldowski
953b6f14c6
Darwin/iOS: More unified syntax support w/ Clang.
...
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com >
2013-11-30 03:48:45 -05:00
Zachary Waldowski
c713a55379
Darwin/iOS: Simplify RETLDM arguments for LLVM 3.1
...
Signed-off-by: Zachary Waldowski <zwaldowski@gmail.com >
2013-11-30 03:48:05 -05:00
Zachary Waldowski
16ba1b8002
Darwin: Silence Clang warnings.
2013-11-30 03:47:58 -05:00
Anthony Green
2f450822a8
Clean up code to appease modern GCC compiler.
2013-11-18 06:52:29 -05:00
David Schneider
77f823e31f
stop trying to assing vfp regs once we are done with the registers
2013-11-13 14:26:57 +01:00
David Schneider
37067ec503
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.
2013-11-12 19:49:01 +01:00
Anthony Green
c2422174b3
Merge pull request #45 from foss-for-synopsys-dwc-arc-processors/arc_support
...
arc: Fix build error
2013-11-02 17:11:08 -04:00
Anthony Green
128cd1d2f3
Fix spelling errors
2013-10-08 06:45:51 -04:00
David Schneider
9708e7cf09
folow the ARM hard-float ABI in ffi_prep_incoming_args_VFP
2013-03-28 16:40:40 +01:00
David Schneider
b41120981e
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
2013-03-28 16:40:40 +01:00
David Schneider
3c1608613a
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.
2013-03-28 16:38:28 +01:00
David Schneider
0f2ff2d4c9
separate ARM ffi_prepare_args in a version implementing the simple SYSV calling convention and one for the hard-float calling convention
2013-03-28 16:38:25 +01:00
David Schneider
3a352b8a82
move the hardfloat specific argument copying code to the helper function
2013-03-28 16:38:21 +01:00
David Schneider
5df6b7944a
extract setting of arguments to be passed to a helper function
2013-03-28 16:38:15 +01:00
David Schneider
7d1048c471
extract code to align the argument storage pointer to a helper function
2013-03-28 16:38:10 +01:00
Zachary Waldowski
39e6a58604
More mac/ios build improvements
2012-04-11 22:39:46 -04:00
Zachary Waldowski
39dccddb60
Fix building with Clang for Darwin (OS X 10.6+ and iOS
...
4.0+)
2012-04-05 12:32:41 -04:00
Anthony Green
e1539266e6
ARM VFP fix for old toolchains
2012-03-30 00:40:18 -04:00
Anthony Green
8360bf1cd0
Ensure that users don't include ffitarget.h directly
2012-02-23 07:01:13 -05:00
Anthony Green
ff9454da44
Add David Gilbert's variadic function call support
2011-11-12 17:18:51 -05:00
Anthony Green
322052ce65
Fix arm wince alignment issue
2011-11-12 16:11:49 -05:00
Anthony Green
3d56106b07
Rebase
2011-11-12 07:20:24 -05:00
Anthony Green
d992ac54a2
Refresh from GCC
2011-07-29 17:32:53 -04:00
Anthony Green
09f8f310f4
More AIX fixes. rc9.
2011-02-28 15:36:07 -05:00
Landon Fuller
3000dc237f
Merge remote branch 'upstream/master'
2011-02-13 08:55:53 -05:00
Anthony Green
1fbf9dc44f
Fix bad_abi test. rc5.
2011-02-13 08:06:39 -05:00
Landon Fuller
8195e0e11d
Fix symbol prefixes on Darwin.
2011-02-12 11:27:00 -05:00
Landon Fuller
28a00f61ff
Apple assembler support; fixed most gas/ELF-isms.
2011-02-12 11:01:48 -05:00
Landon Fuller
7f2ea33a80
Replace RETLDM macro.
...
The macro is incompatible with Apple's assembler; switch to
a simple inline version.
2011-02-12 10:39:18 -05:00
Anthony Green
0cad4386fa
Add ChangeLog entry. Fix copyright headers.
2011-02-09 06:11:46 -05:00
Anthony Green
1106229a57
Add iOS support
2011-02-08 19:20:09 -05:00
Anthony Green
0e5843995f
Refresh from GCC
2011-02-08 07:52:40 -05:00
Anthony Green
2db72615b5
Rebase
2010-11-21 10:50:56 -05:00
Landon Fuller
f6ab3edc23
Include the license header in the generated output.
2010-10-27 19:34:51 -04:00
Landon Fuller
cef6194628
Add missing copyright/license header.
2010-10-27 14:01:01 -04:00
Landon Fuller
83038cf24a
Implement FFI_EXEC_TRAMPOLINE_TABLE allocator for iOS/ARM.
...
This provides working closure support on iOS/ARM devices where
PROT_WRITE|PROT_EXEC is not permitted. The code passes basic
smoke tests, but requires further review.
2010-09-19 14:36:45 -07:00