Skip to content

Commit 8f093ea

Browse files
Andreas ToblerAndreas Tobler
authored andcommitted
ffi.c (ffi_prep_cif_machdep): Fix case where DOUBLE equal LONGDOUBLE.
2013-02-06 Andreas Tobler <[email protected]> * src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where DOUBLE equal LONGDOUBLE. From-SVN: r195812
1 parent 143c83f commit 8f093ea

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

libffi/ChangeLog

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
2013-02-06 Andreas Tobler <[email protected]>
2+
3+
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
4+
DOUBLE equal LONGDOUBLE.
5+
16
2013-01-07 Thorsten Glaser <[email protected]>
27

38
* testsuite/libffi.call/cls_uchar_va.c,

libffi/src/powerpc/ffi.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,9 +664,11 @@ ffi_prep_cif_machdep (ffi_cif *cif)
664664
switch (type)
665665
{
666666
#ifndef __NO_FPRS__
667+
#if FFI_TYPE_LONGDOUBLE != FFI_TYPE_DOUBLE
667668
case FFI_TYPE_LONGDOUBLE:
668669
flags |= FLAG_RETURNS_128BITS;
669670
/* Fall through. */
671+
#endif
670672
case FFI_TYPE_DOUBLE:
671673
flags |= FLAG_RETURNS_64BITS;
672674
/* Fall through. */

0 commit comments

Comments
 (0)