aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2020-06-09 10:05:56 -0700
committerFangrui Song <i@maskray.me>2021-08-27 17:26:04 -0700
commit2c9e5207e426910c6c61c8bf3d31844b6f9aa0b1 (patch)
tree70004a19ef20dff5b6dee57a2aa948b344696d59 /sysdeps
parentc3064d5f506a3f9632d191287c38ec93e5b53e80 (diff)
downloadglibc-2c9e5207e426910c6c61c8bf3d31844b6f9aa0b1.zip
glibc-2c9e5207e426910c6c61c8bf3d31844b6f9aa0b1.tar.gz
glibc-2c9e5207e426910c6c61c8bf3d31844b6f9aa0b1.tar.bz2
Do not use ppc-specific long double pack/unpack when compiling with clang
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/fpu/math_ldbl.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysdeps/powerpc/fpu/math_ldbl.h b/sysdeps/powerpc/fpu/math_ldbl.h
index 124391b..0867403 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 <sysdeps/ieee754/ldbl-128ibm/math_ldbl.h>