diff options
author | Andreas Tobler <andreast@fgznet.ch> | 2013-02-06 18:32:41 +0100 |
---|---|---|
committer | Andreas Tobler <andreast@gcc.gnu.org> | 2013-02-06 18:32:41 +0100 |
commit | 8f093ea0b10ca377258edea550f799a45d9a7aa3 (patch) | |
tree | ec55e89eb9ff8bec20a38fc7fd0bc1edf02de9eb /libffi/src | |
parent | 143c83f11b0d076548a281d57a704b652205178f (diff) | |
download | gcc-8f093ea0b10ca377258edea550f799a45d9a7aa3.zip gcc-8f093ea0b10ca377258edea550f799a45d9a7aa3.tar.gz gcc-8f093ea0b10ca377258edea550f799a45d9a7aa3.tar.bz2 |
ffi.c (ffi_prep_cif_machdep): Fix case where DOUBLE equal LONGDOUBLE.
2013-02-06 Andreas Tobler <andreast@fgznet.ch>
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
DOUBLE equal LONGDOUBLE.
From-SVN: r195812
Diffstat (limited to 'libffi/src')
-rw-r--r-- | libffi/src/powerpc/ffi.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libffi/src/powerpc/ffi.c b/libffi/src/powerpc/ffi.c index baca694..257f02f 100644 --- a/libffi/src/powerpc/ffi.c +++ b/libffi/src/powerpc/ffi.c @@ -664,9 +664,11 @@ ffi_prep_cif_machdep (ffi_cif *cif) switch (type) { #ifndef __NO_FPRS__ +#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE case FFI_TYPE_LONGDOUBLE: flags |= FLAG_RETURNS_128BITS; /* Fall through. */ +#endif case FFI_TYPE_DOUBLE: flags |= FLAG_RETURNS_64BITS; /* Fall through. */ |