diff options
author | Bo Thorsen <bo@gcc.gnu.org> | 2002-05-28 09:11:42 +0200 |
---|---|---|
committer | Bo Thorsen <bo@gcc.gnu.org> | 2002-05-28 09:11:42 +0200 |
commit | 4075db8f84acce0b7f3e3d6750b645842187832d (patch) | |
tree | e25b89c5a7c2f3e51af0398fa522f61e6a284320 /libffi/src | |
parent | 9c07557009ba8a90f19e4773bd3b24e47d486fcb (diff) | |
download | gcc-4075db8f84acce0b7f3e3d6750b645842187832d.zip gcc-4075db8f84acce0b7f3e3d6750b645842187832d.tar.gz gcc-4075db8f84acce0b7f3e3d6750b645842187832d.tar.bz2 |
Fix last commit. Sorry about that.
From-SVN: r53946
Diffstat (limited to 'libffi/src')
-rw-r--r-- | libffi/src/x86/ffi.c | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/libffi/src/x86/ffi.c b/libffi/src/x86/ffi.c index ee67633..c2af395 100644 --- a/libffi/src/x86/ffi.c +++ b/libffi/src/x86/ffi.c @@ -267,7 +267,6 @@ ffi_prep_incoming_args_SYSV(char *stack, void **rvalue, { register unsigned int i; register int tmp; - register unsigned int avn; register void **p_argv; register char *argp; register ffi_type **p_arg; @@ -280,12 +279,9 @@ ffi_prep_incoming_args_SYSV(char *stack, void **rvalue, argp += 4; } - avn = cif->nargs; p_argv = avalue; - for (i = cif->nargs, p_arg = cif->arg_types; - (i != 0) && (avn != 0); - i--, p_arg++) + for (i = cif->nargs, p_arg = cif->arg_types; (i != 0); i--, p_arg++) { size_t z; @@ -294,19 +290,14 @@ ffi_prep_incoming_args_SYSV(char *stack, void **rvalue, argp = (char *) ALIGN(argp, (*p_arg)->alignment); } - if (avn != 0) - { - avn--; - z = (*p_arg)->size; + z = (*p_arg)->size; - /* because we're little endian, this is - what it turns into. */ + /* because we're little endian, this is what it turns into. */ - *p_argv = (void*) argp; + *p_argv = (void*) argp; - p_argv++; - argp += z; - } + p_argv++; + argp += z; } return; |