]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Do not use ppc-specific long double pack/unpack when compiling with clang
authorStan Shebs <stanshebs@google.com>
Tue, 9 Jun 2020 17:05:56 +0000 (10:05 -0700)
committerFangrui Song <i@maskray.me>
Sat, 28 Aug 2021 00:26:04 +0000 (17:26 -0700)
sysdeps/powerpc/fpu/math_ldbl.h

index 124391b94bb99cfff48d2d1e9346e065841537d2..0867403d940772d1a0376145a48efb97057e2f36 100644 (file)
@@ -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 <sysdeps/ieee754/ldbl-128ibm/math_ldbl.h>