aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/ia64/bits/floatn.h
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/ia64/bits/floatn.h')
-rw-r--r--sysdeps/ia64/bits/floatn.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/ia64/bits/floatn.h b/sysdeps/ia64/bits/floatn.h
index c7b1df6d2c..dbb6eb2325 100644
--- a/sysdeps/ia64/bits/floatn.h
+++ b/sysdeps/ia64/bits/floatn.h
@@ -89,6 +89,14 @@ typedef __float128 _Float128;
# define __builtin_nansf128(x) ((_Float128) __builtin_nans (x))
# endif
+/* In math/math.h, __MATH_TG will expand signbit to __builtin_signbit*,
+ e.g.: __builtin_signbitf128, before GCC 6. However, there has never
+ been a __builtin_signbitf128 in GCC and the type-generic builtin is
+ only available since GCC 6. */
+# if !__GNUC_PREREQ (6, 0)
+# define __builtin_signbitf128 __signbitf128
+# endif
+
#endif
#endif /* _BITS_FLOATN_H */