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/sparc | |
| parent | 397866b171c934ccb95f24beb7dc6aed913e48da (diff) | |
| download | ppe42-gcc-42c71854648155103fd4e46bcee04fd04831a335.tar.gz ppe42-gcc-42c71854648155103fd4e46bcee04fd04831a335.zip | |
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/sparc')
| -rw-r--r-- | libffi/src/sparc/ffi.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/libffi/src/sparc/ffi.c b/libffi/src/sparc/ffi.c index f557013a4b4..dc975356b4b 100644 --- a/libffi/src/sparc/ffi.c +++ b/libffi/src/sparc/ffi.c @@ -34,14 +34,10 @@ void ffi_prep_args_v8(char *stack, extended_cif *ecif) { int i; - int tmp; - int avn; void **p_argv; char *argp; ffi_type **p_arg; - tmp = 0; - /* Skip 16 words for the window save area */ argp = stack + 16*sizeof(int); @@ -66,18 +62,12 @@ void ffi_prep_args_v8(char *stack, extended_cif *ecif) ((int*)argp)[5] = 0; #endif - avn = ecif->cif->nargs; p_argv = ecif->avalue; - for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; - i && avn; - i--, p_arg++) + for (i = ecif->cif->nargs, p_arg = ecif->cif->arg_types; i; i--, p_arg++) { size_t z; - if (avn) - { - avn--; if ((*p_arg)->type == FFI_TYPE_STRUCT #if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE || (*p_arg)->type == FFI_TYPE_LONGDOUBLE @@ -122,7 +112,6 @@ void ffi_prep_args_v8(char *stack, extended_cif *ecif) } p_argv++; argp += z; - } } return; |

