aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libstdc++-v3/ChangeLog5
-rw-r--r--libstdc++-v3/include/c_global/cmath7
2 files changed, 8 insertions, 4 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index c8ac5d1..3a832f7 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-01 Paolo Carlini <paolo.carlini@oracle.com>
+
+ PR c++/49813
+ * include/c_global/cmath (isinf): Remove workaround.
+
2011-07-31 Paolo Carlini <paolo.carlini@oracle.com>
PR libstdc++/49925
diff --git a/libstdc++-v3/include/c_global/cmath b/libstdc++-v3/include/c_global/cmath
index 4a75d0e..1eeded8 100644
--- a/libstdc++-v3/include/c_global/cmath
+++ b/libstdc++-v3/include/c_global/cmath
@@ -547,18 +547,17 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
isfinite(_Tp __x)
{ return true; }
- // Workaround the isinf issue discussed in PR 49813.
constexpr bool
isinf(float __x)
- { return fpclassify(__x) == FP_INFINITE; }
+ { return __builtin_isinf(__x); }
constexpr bool
isinf(double __x)
- { return fpclassify(__x) == FP_INFINITE; }
+ { return __builtin_isinf(__x); }
constexpr bool
isinf(long double __x)
- { return fpclassify(__x) == FP_INFINITE; }
+ { return __builtin_isinf(__x); }
template<typename _Tp>
constexpr typename __gnu_cxx::__enable_if<__is_integer<_Tp>::__value,