Skip to content

Commit

Permalink
ffi.c (ffi_prep_cif_machdep): Fix case where DOUBLE equal LONGDOUBLE.
Browse files Browse the repository at this point in the history
2013-02-06  Andreas Tobler  <[email protected]>

        * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
        DOUBLE equal LONGDOUBLE.

From-SVN: r195812
  • Loading branch information
Andreas Tobler authored and Andreas Tobler committed Feb 6, 2013
1 parent 143c83f commit 8f093ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions libffi/ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2013-02-06 Andreas Tobler <[email protected]>

* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
DOUBLE equal LONGDOUBLE.

2013-01-07 Thorsten Glaser <[email protected]>

* testsuite/libffi.call/cls_uchar_va.c,
Expand Down
2 changes: 2 additions & 0 deletions libffi/src/powerpc/ffi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 8f093ea

Please sign in to comment.