Commit 8f093ea0 by Andreas Tobler Committed by Andreas Tobler

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
parent 143c83f1
2013-02-06 Andreas Tobler <andreast@fgznet.ch>
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
DOUBLE equal LONGDOUBLE.
2013-01-07 Thorsten Glaser <tg@mirbsd.org> 2013-01-07 Thorsten Glaser <tg@mirbsd.org>
* testsuite/libffi.call/cls_uchar_va.c, * testsuite/libffi.call/cls_uchar_va.c,
......
...@@ -664,9 +664,11 @@ ffi_prep_cif_machdep (ffi_cif *cif) ...@@ -664,9 +664,11 @@ ffi_prep_cif_machdep (ffi_cif *cif)
switch (type) switch (type)
{ {
#ifndef __NO_FPRS__ #ifndef __NO_FPRS__
#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
case FFI_TYPE_LONGDOUBLE: case FFI_TYPE_LONGDOUBLE:
flags |= FLAG_RETURNS_128BITS; flags |= FLAG_RETURNS_128BITS;
/* Fall through. */ /* Fall through. */
#endif
case FFI_TYPE_DOUBLE: case FFI_TYPE_DOUBLE:
flags |= FLAG_RETURNS_64BITS; flags |= FLAG_RETURNS_64BITS;
/* Fall through. */ /* Fall through. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment