re PR libffi/64572 (r219477 breaks bootstrap on x86_64 darwin)

PR libffi/64572

        * include/ffi.h.in (FFI_TYPE_LAST): Set to COMPLEX only if complex
        numbers are supported by the backend.

From-SVN: r219688
This commit is contained in:
Richard Henderson 2015-01-15 13:01:21 -08:00 committed by Richard Henderson
parent 134efa8248
commit 58b59d5ee7
2 changed files with 13 additions and 1 deletions

View File

@ -1,3 +1,9 @@
2015-01-15 Richard Henderson <rth@redhat.com>
PR libffi/64572
* include/ffi.h.in (FFI_TYPE_LAST): Set to COMPLEX only if complex
numbers are supported by the backend.
2015-01-13 Kaz Kojima <kkojima@gcc.gnu.org>
* configure.host: Remove extra brackets for sh.

View File

@ -494,7 +494,13 @@ void ffi_call(ffi_cif *cif,
#define FFI_TYPE_COMPLEX 15
/* This should always refer to the last type code (for sanity checks) */
#define FFI_TYPE_LAST FFI_TYPE_COMPLEX
/* ??? Ideally, anyway. There are assembly files that still depend
on this not including COMPLEX. */
#ifdef FFI_TARGET_HAS_COMPLEX_TYPE
# define FFI_TYPE_LAST FFI_TYPE_COMPLEX
#else
# define FFI_TYPE_LAST FFI_TYPE_POINTER
#endif
#ifdef __cplusplus
}