diff options
author | kraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-26 02:09:35 +0000 |
---|---|---|
committer | kraai <kraai@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-02-26 02:09:35 +0000 |
commit | 497c7020587244d088c823426e4753c1e8830e71 (patch) | |
tree | 8229ecf57a227e1ae63cc5a854d4c57a76f3dbb9 /libffi/src | |
parent | 62350d6cc8c812321d45c70c7f4d0a7f26c4da6c (diff) | |
download | gcc-497c7020587244d088c823426e4753c1e8830e71.tar.gz |
* src/powerpc/ffi.c (ffi_prep_args_SYSV): Change
ecif->cif->bytes to bytes.
(ffi_prep_cif_machdep): Add braces around nested if statement.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@78477 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi/src')
-rw-r--r-- | libffi/src/powerpc/ffi.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libffi/src/powerpc/ffi.c b/libffi/src/powerpc/ffi.c index 454c7ac35e5..29f7dba3827 100644 --- a/libffi/src/powerpc/ffi.c +++ b/libffi/src/powerpc/ffi.c @@ -94,7 +94,7 @@ void ffi_prep_args_SYSV(extended_cif *ecif, unsigned *const stack) const unsigned flags = ecif->cif->flags; /* 'stacktop' points at the previous backchain pointer. */ - unsigned *const stacktop = stack + (ecif->cif->bytes / sizeof(unsigned)); + unsigned *const stacktop = stack + (bytes / sizeof(unsigned)); /* 'gpr_base' points at the space for gpr3, and grows upwards as we use GPR registers. */ @@ -521,13 +521,15 @@ ffi_status ffi_prep_cif_machdep(ffi_cif *cif) case FFI_TYPE_STRUCT: if (cif->abi != FFI_GCC_SYSV && cif->abi != FFI_LINUX64) - if (cif->rtype->size <= 4) - break; - else if (cif->rtype->size <= 8) - { - flags |= FLAG_RETURNS_64BITS; + { + if (cif->rtype->size <= 4) break; - } + else if (cif->rtype->size <= 8) + { + flags |= FLAG_RETURNS_64BITS; + break; + } + } /* else fall through. */ #if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE case FFI_TYPE_LONGDOUBLE: |