summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Shebs <stanshebs@google.com>2020-06-09 10:05:56 -0700
committerStan Shebs <stanshebs@google.com>2020-06-09 10:05:56 -0700
commit7e9285612d997d7cface8141ad4db191758864c4 (patch)
treec5b1e742335564904ba475206fe6111625a1cb50
parentebbd805df7306699a8a54eb0e4ebad6805a9abc9 (diff)
downloadglibc-7e9285612d997d7cface8141ad4db191758864c4.tar.gz
Do not use ppc-specific long double pack/unpack when compiling with clang
-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 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 <sysdeps/ieee754/ldbl-128ibm/math_ldbl.h>