From 165d99c40f65c0f84252b6e8be754349c25f639e Mon Sep 17 00:00:00 2001 From: Luc Van Oostenryck Date: Sun, 28 Jun 2020 13:06:24 +0200 Subject: ppc: add predefines __LONGDOUBLE128 & __LONG_DOUBLE_128__ On powerpc, if long double is 128-bit width, then '__LONGDOUBLE128' & '__LONG_DOUBLE_128__' should be defined. So do this in the target specific file. Signed-off-by: Luc Van Oostenryck --- target-ppc.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/target-ppc.c b/target-ppc.c index c0d6068f..dede8917 100644 --- a/target-ppc.c +++ b/target-ppc.c @@ -14,6 +14,10 @@ static void predefine_ppc(const struct target *self) predefine("_ARCH_PPC", 1, "1"); if (arch_big_endian) predefine("_BIG_ENDIAN", 1, "1"); + if (ldouble_ctype.bit_size == 128) { + predefine("__LONGDOUBLE128", 1, "1"); + predefine("__LONG_DOUBLE_128__", 1, "1"); + } } static const char *asm_constraint_ppc(struct asm_operand *op, int c, const char *str) -- cgit 1.2.3-korg