Fix powerpc breakage from 6e8a4460
* src/powerpc/ffitarget.h: #error on unexpected FFI_TYPE_LAST. (FFI_PPC_TYPE_LAST): Define. (FFI_TYPE_UINT128): Define in terms of FFI_PPC_TYPE_LAST. (FFI_SYSV_TYPE_SMALL_STRUCT, FFI_V2_TYPE_FLOAT_HOMOG): Likewise. (FFI_V2_TYPE_DOUBLE_HOMOG, FFI_V2_TYPE_SMALL_STRUCT): Likewise.
This commit is contained in:
@@ -142,19 +142,30 @@ typedef enum ffi_abi {
|
|||||||
# define FFI_EXTRA_CIF_FIELDS unsigned nfixedargs
|
# define FFI_EXTRA_CIF_FIELDS unsigned nfixedargs
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* For additional types like the below, take care about the order in
|
/* ppc_closure.S and linux64_closure.S expect this. */
|
||||||
ppc_closures.S. They must follow after the FFI_TYPE_LAST. */
|
#define FFI_PPC_TYPE_LAST FFI_TYPE_POINTER
|
||||||
|
|
||||||
|
/* We define additional types below. If generic types are added that
|
||||||
|
must be supported by powerpc libffi then it is likely that
|
||||||
|
FFI_PPC_TYPE_LAST needs increasing *and* the jump tables in
|
||||||
|
ppc_closure.S and linux64_closure.S be extended. */
|
||||||
|
|
||||||
|
#if !(FFI_TYPE_LAST == FFI_PPC_TYPE_LAST \
|
||||||
|
|| (FFI_TYPE_LAST == FFI_TYPE_COMPLEX \
|
||||||
|
&& !defined FFI_TARGET_HAS_COMPLEX_TYPE))
|
||||||
|
# error "You likely have a broken powerpc libffi"
|
||||||
|
#endif
|
||||||
|
|
||||||
/* Needed for soft-float long-double-128 support. */
|
/* Needed for soft-float long-double-128 support. */
|
||||||
#define FFI_TYPE_UINT128 (FFI_TYPE_LAST + 1)
|
#define FFI_TYPE_UINT128 (FFI_PPC_TYPE_LAST + 1)
|
||||||
|
|
||||||
/* Needed for FFI_SYSV small structure returns. */
|
/* Needed for FFI_SYSV small structure returns. */
|
||||||
#define FFI_SYSV_TYPE_SMALL_STRUCT (FFI_TYPE_LAST + 2)
|
#define FFI_SYSV_TYPE_SMALL_STRUCT (FFI_PPC_TYPE_LAST + 2)
|
||||||
|
|
||||||
/* Used by ELFv2 for homogenous structure returns. */
|
/* Used by ELFv2 for homogenous structure returns. */
|
||||||
#define FFI_V2_TYPE_FLOAT_HOMOG (FFI_TYPE_LAST + 1)
|
#define FFI_V2_TYPE_FLOAT_HOMOG (FFI_PPC_TYPE_LAST + 1)
|
||||||
#define FFI_V2_TYPE_DOUBLE_HOMOG (FFI_TYPE_LAST + 2)
|
#define FFI_V2_TYPE_DOUBLE_HOMOG (FFI_PPC_TYPE_LAST + 2)
|
||||||
#define FFI_V2_TYPE_SMALL_STRUCT (FFI_TYPE_LAST + 3)
|
#define FFI_V2_TYPE_SMALL_STRUCT (FFI_PPC_TYPE_LAST + 3)
|
||||||
|
|
||||||
#if _CALL_ELF == 2
|
#if _CALL_ELF == 2
|
||||||
# define FFI_TRAMPOLINE_SIZE 32
|
# define FFI_TRAMPOLINE_SIZE 32
|
||||||
|
|||||||
Reference in New Issue
Block a user