This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Fix ldbl-128ibm iscanonical for -mlong-double-64 [committed]

This patch fixes the ldbl-128ibm version of the iscanonical macro not
to use __iscanonicall when long double = double (-mlong-double-64).

Tested for powerpc.  Committed.

2016-09-30  Joseph Myers  <>

	* sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
	[__NO_LONG_DOUBLE_MATH] (__iscanonicall): Do not declare.
	[__NO_LONG_DOUBLE_MATH] (iscanonical): Define to evaluate to 1.

diff --git a/sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h b/sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
index cbc79ae..c7b7c63 100644
--- a/sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
+++ b/sysdeps/ieee754/ldbl-128ibm/bits/iscanonical.h
@@ -20,6 +20,9 @@
 # error "Never use <bits/iscanonical.h> directly; include <math.h> instead."
+# define iscanonical(x) ((void) (__typeof (x)) (x), 1)
 extern int __iscanonicall (long double __x)
      __THROW __attribute__ ((__const__));
@@ -29,7 +32,8 @@ extern int __iscanonicall (long double __x)
    conversion, before being discarded; in IBM long double, there are
    encodings that are not consistently handled as corresponding to any
    particular value of the type, and we return 0 for those.  */
-#define iscanonical(x)				\
+# define iscanonical(x)				\
   (sizeof (x) == sizeof (long double)		\
    ? __iscanonicall (x)				\
    : ((void) (__typeof (x)) (x), 1))

Joseph S. Myers

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]