diff options
author | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-06 17:32:41 +0000 |
---|---|---|
committer | andreast <andreast@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-02-06 17:32:41 +0000 |
commit | a027f9e14d1ec71d7df98a9bab8e9e306fcdab5b (patch) | |
tree | ec55e89eb9ff8bec20a38fc7fd0bc1edf02de9eb /libffi | |
parent | 72fb5d678993b6d9856113b025be7a1a7e1387be (diff) | |
download | linaro-gcc-a027f9e14d1ec71d7df98a9bab8e9e306fcdab5b.tar.gz linaro-gcc-a027f9e14d1ec71d7df98a9bab8e9e306fcdab5b.tar.bz2 linaro-gcc-a027f9e14d1ec71d7df98a9bab8e9e306fcdab5b.zip |
2013-02-06 Andreas Tobler <andreast@fgznet.ch>
* src/powerpc/ffi.c (ffi_prep_cif_machdep): Fix case where
DOUBLE equal LONGDOUBLE.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@195812 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libffi')
-rw-r--r-- | libffi/ChangeLog | 5 | ||||
-rw-r--r-- | libffi/src/powerpc/ffi.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/libffi/ChangeLog b/libffi/ChangeLog index e53ac5fddbc..ab2aee6a9a0 100644 --- a/libffi/ChangeLog +++ b/libffi/ChangeLog @@ -1,3 +1,8 @@ +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> * testsuite/libffi.call/cls_uchar_va.c, diff --git a/libffi/src/powerpc/ffi.c b/libffi/src/powerpc/ffi.c index baca69448fe..257f02fab3e 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. */ |