|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r56711 - in trunk: boost/math/tools libs/math/test
From: john_at_[hidden]
Date: 2009-10-11 08:20:22
Author: johnmaddock
Date: 2009-10-11 08:20:21 EDT (Sun, 11 Oct 2009)
New Revision: 56711
URL: http://svn.boost.org/trac/boost/changeset/56711
Log:
Update workarounds for Sun's latest compiler release.
Text files modified:
trunk/boost/math/tools/config.hpp | 2 +-
trunk/libs/math/test/test_sign.cpp | 2 ++
2 files changed, 3 insertions(+), 1 deletions(-)
Modified: trunk/boost/math/tools/config.hpp
==============================================================================
--- trunk/boost/math/tools/config.hpp (original)
+++ trunk/boost/math/tools/config.hpp 2009-10-11 08:20:21 EDT (Sun, 11 Oct 2009)
@@ -132,7 +132,7 @@
#endif // defined BOOST_NO_EXPLICIT_FUNCTION_TEMPLATE_ARGUMENTS
-#if BOOST_WORKAROUND(__SUNPRO_CC, <= 0x590) || defined(__hppa) || defined(__GNUC__)
+#if defined(__SUNPRO_CC) || defined(__hppa) || defined(__GNUC__)
// Sun's compiler emits a hard error if a constant underflows,
// as does aCC on PA-RISC, while gcc issues a large number of warnings:
# define BOOST_MATH_SMALL_CONSTANT(x) 0
Modified: trunk/libs/math/test/test_sign.cpp
==============================================================================
--- trunk/libs/math/test/test_sign.cpp (original)
+++ trunk/libs/math/test/test_sign.cpp 2009-10-11 08:20:21 EDT (Sun, 11 Oct 2009)
@@ -62,6 +62,7 @@
BOOST_CHECK_EQUAL((boost::math::copysign)(b, a), RealType(-1));
BOOST_CHECK_EQUAL((boost::math::copysign)(c, a), RealType(-1));
}
+#if !defined(__SUNPRO_CC) && !defined(BOOST_INTEL)
if(std::numeric_limits<RealType>::has_quiet_NaN)
{
a = std::numeric_limits<RealType>::quiet_NaN();
@@ -75,6 +76,7 @@
BOOST_CHECK_EQUAL((boost::math::copysign)(b, a), RealType(-1));
BOOST_CHECK_EQUAL((boost::math::copysign)(c, a), RealType(-1));
}
+#endif
}
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk