summaryrefslogtreecommitdiffstats
path: root/libffi/src/mips/ffi.c
diff options
context:
space:
mode:
authorbo <bo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-18 23:08:31 +0000
committerbo <bo@138bc75d-0d04-0410-961f-82ee72b054a4>2002-07-18 23:08:31 +0000
commit42c71854648155103fd4e46bcee04fd04831a335 (patch)
tree31860a62cf64b5a75a76259340d1e0a1ac48ef45 /libffi/src/mips/ffi.c
parent397866b171c934ccb95f24beb7dc6aed913e48da (diff)
downloadppe42-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/mips/ffi.c')
-rw-r--r--libffi/src/mips/ffi.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/libffi/src/mips/ffi.c b/libffi/src/mips/ffi.c
index 6c41603d703..93f79239dfc 100644
--- a/libffi/src/mips/ffi.c
+++ b/libffi/src/mips/ffi.c
@@ -51,7 +51,6 @@ static void ffi_prep_args(char *stack,
int flags)
{
register int i;
- register int avn;
register void **p_argv;
register char *argp;
register ffi_type **p_arg;
@@ -81,12 +80,9 @@ static void ffi_prep_args(char *stack,
FIX_ARGP;
}
- 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;
@@ -102,9 +98,6 @@ static void ffi_prep_args(char *stack,
#define OFFSET sizeof(int)
#endif
- if (avn)
- {
- avn--;
z = (*p_arg)->size;
if (z < sizeof(SLOT_TYPE_UNSIGNED))
{
@@ -180,7 +173,6 @@ static void ffi_prep_args(char *stack,
p_argv++;
argp += z;
FIX_ARGP;
- }
}
return;
OpenPOWER on IntegriCloud