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
+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.
#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
}