From 2c9e5207e426910c6c61c8bf3d31844b6f9aa0b1 Mon Sep 17 00:00:00 2001 From: Stan Shebs Date: Tue, 9 Jun 2020 10:05:56 -0700 Subject: [PATCH] Do not use ppc-specific long double pack/unpack when compiling with clang --- sysdeps/powerpc/fpu/math_ldbl.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sysdeps/powerpc/fpu/math_ldbl.h b/sysdeps/powerpc/fpu/math_ldbl.h index 124391b94b..0867403d94 100644 --- a/sysdeps/powerpc/fpu/math_ldbl.h +++ b/sysdeps/powerpc/fpu/math_ldbl.h @@ -47,8 +47,13 @@ ldbl_unpack_ppc (long double l, double *a, double *aa) *aa = xl; } +/* These inline functions do not work with clang at all; drop back to the + default versions. (The defaults are not inlined by clang either, but they + return correct values at least.)*/ +#if !defined __clang__ #define ldbl_pack ldbl_pack_ppc #define ldbl_unpack ldbl_unpack_ppc +#endif /* !__clang__ */ #include