diff options
author | bo <bo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-18 23:08:31 +0000 |
---|---|---|
committer | bo <bo@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-07-18 23:08:31 +0000 |
commit | 42c71854648155103fd4e46bcee04fd04831a335 (patch) | |
tree | 31860a62cf64b5a75a76259340d1e0a1ac48ef45 /libffi/src/arm/ffi.c | |
parent | 397866b171c934ccb95f24beb7dc6aed913e48da (diff) | |
download | gcc-42c71854648155103fd4e46bcee04fd04831a335.tar.gz |
2002-07-16 Bo Thorsen <bo@suse.de>
* src/x86/ffi64.c: New file that adds x86-64 support.
* src/x86/unix64.S: New file that handles argument setup for
x86-64.
* src/x86/sysv.S: Don't use this on x86-64.
* src/x86/ffi.c: Don't use this on x86-64.
Remove unused vars.
* src/prep_cif.c (ffi_prep_cif): Don't do stack size calculation
for x86-64.
* src/ffitest.c (struct6): New test that tests a special case in
the x86-64 ABI.
(struct7): Likewise.
(struct8): Likewise.
(struct9): Likewise.
(closure_test_fn): Silence warning about this when it's not used.
(main): Add the new tests.
(main): Fix a couple of wrong casts and silence some compiler warnings.
* include/ffi.h.in: Add x86-64 ABI definition.
* fficonfig.h.in: Regenerate.
* Makefile.am: Add x86-64 support.
* configure.in: Likewise.
* Makefile.in: Regenerate.
* configure: Likewise.
2002-06-24 Bo Thorsen <bo@suse.de>
* src/types.c: Merge settings for similar architectures.
Add x86-64 sizes and alignments.
2002-06-23 Bo Thorsen <bo@suse.de>
* src/arm/ffi.c (ffi_prep_args): Remove unused vars.
* src/sparc/ffi.c (ffi_prep_args_v8): Likewise.
* src/mips/ffi.c (ffi_prep_args): Likewise.
* src/m68k/ffi.c (ffi_prep_args): Likewise.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@55571 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src/arm/ffi.c')
-rw-r--r-- | libffi/src/arm/ffi.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/libffi/src/arm/ffi.c b/libffi/src/arm/ffi.c index 0ede742e53c..dcd9891dcc2 100644 --- a/libffi/src/arm/ffi.c +++ b/libffi/src/arm/ffi.c @@ -36,13 +36,10 @@ void ffi_prep_args(char *stack, extended_cif *ecif) /*@=exportheader@*/ { register unsigned int i; - register int tmp; - register unsigned int avn; register void **p_argv; register char *argp; register ffi_type **p_arg; - tmp = 0; argp = stack; if ( ecif->cif->rtype->type == FFI_TYPE_STRUCT ) { @@ -50,11 +47,10 @@ void ffi_prep_args(char *stack, extended_cif *ecif) argp += 4; } - avn = ecif->cif->nargs; p_argv = ecif->avalue; for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; - (i != 0) && (avn != 0); + (i != 0); i--, p_arg++) { size_t z; @@ -64,9 +60,6 @@ void ffi_prep_args(char *stack, extended_cif *ecif) argp = (char *) ALIGN(argp, (*p_arg)->alignment); } - if (avn != 0) - { - avn--; z = (*p_arg)->size; if (z < sizeof(int)) { @@ -107,7 +100,6 @@ void ffi_prep_args(char *stack, extended_cif *ecif) } p_argv++; argp += z; - } } return; |