From: Stan Shebs Date: Tue, 9 Jun 2020 17:05:56 +0000 (-0700) Subject: Do not use ppc-specific long double pack/unpack when compiling with clang X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c9e5207e426910c6c61c8bf3d31844b6f9aa0b1;p=thirdparty%2Fglibc.git Do not use ppc-specific long double pack/unpack when compiling with clang --- diff --git a/sysdeps/powerpc/fpu/math_ldbl.h b/sysdeps/powerpc/fpu/math_ldbl.h index 124391b94bb..0867403d940 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