diff options
author | Richard Henderson <rth@redhat.com> | 2014-10-22 22:36:07 -0400 |
---|---|---|
committer | Richard Henderson <rth@twiddle.net> | 2014-11-12 09:28:44 +0100 |
commit | 658b2b56001e293848ea22b70068bd7f8daa7205 (patch) | |
tree | d443c2141574d49d6144ad4824db9221bbf56e57 /src/aarch64 | |
parent | 4a3cbcaa4f1d3834e0b74c9a841c3f51c5e0454c (diff) | |
download | libffi-658b2b56001e293848ea22b70068bd7f8daa7205.tar.gz |
aarch64: Remove aarch64_flags
This field was useless from the start, since the normal flags
field is available for backend use.
Diffstat (limited to 'src/aarch64')
-rw-r--r-- | src/aarch64/ffi.c | 5 | ||||
-rw-r--r-- | src/aarch64/ffitarget.h | 4 |
2 files changed, 2 insertions, 7 deletions
diff --git a/src/aarch64/ffi.c b/src/aarch64/ffi.c index f69c350..b3e0b16 100644 --- a/src/aarch64/ffi.c +++ b/src/aarch64/ffi.c @@ -436,7 +436,7 @@ ffi_prep_cif_machdep (ffi_cif *cif) { ffi_type *rtype = cif->rtype; size_t bytes = cif->bytes; - int flags, aarch64_flags, i, n; + int flags, i, n; switch (rtype->type) { @@ -496,11 +496,9 @@ ffi_prep_cif_machdep (ffi_cif *cif) abort(); } - aarch64_flags = 0; for (i = 0, n = cif->nargs; i < n; i++) if (is_vfp_type (cif->arg_types[i])) { - aarch64_flags = AARCH64_FLAG_ARG_V; flags |= AARCH64_FLAG_ARG_V; break; } @@ -508,7 +506,6 @@ ffi_prep_cif_machdep (ffi_cif *cif) /* Round the stack up to a multiple of the stack alignment requirement. */ cif->bytes = ALIGN(bytes, 16); cif->flags = flags; - cif->aarch64_flags = aarch64_flags; #if defined (__APPLE__) cif->aarch64_nfixedargs = 0; #endif diff --git a/src/aarch64/ffitarget.h b/src/aarch64/ffitarget.h index b488bbe..6d6d3e6 100644 --- a/src/aarch64/ffitarget.h +++ b/src/aarch64/ffitarget.h @@ -49,9 +49,7 @@ typedef enum ffi_abi #if defined (__APPLE__) #define FFI_TARGET_SPECIFIC_VARIADIC -#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_flags; unsigned aarch64_nfixedargs -#else -#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_flags +#define FFI_EXTRA_CIF_FIELDS unsigned aarch64_nfixedargs #endif #endif |