aboutsummaryrefslogtreecommitdiff
path: root/gcc/sreal.c
diff options
context:
space:
mode:
authorMartin Liska <mliska@suse.cz>2014-12-16 15:55:29 +0100
committerMartin Liska <marxin@gcc.gnu.org>2014-12-16 14:55:29 +0000
commit5007f79810c5192d217be89256cef2fc9b9989ce (patch)
tree1aa3f62ad5b8098f861e136cca19e060a83cf78b /gcc/sreal.c
parentf2798565b4f2551ec0a2bc7e95c7f2a7a23db7d3 (diff)
downloadgcc-5007f79810c5192d217be89256cef2fc9b9989ce.zip
gcc-5007f79810c5192d217be89256cef2fc9b9989ce.tar.gz
gcc-5007f79810c5192d217be89256cef2fc9b9989ce.tar.bz2
re PR other/64278 (/sreal.c:254:22: error: call of overloaded 'abs(const int64_t&)' is ambiguous)
Fix for PR ipa/64278 * sreal.c (sreal::operator*): Replace std::abs with absu_hwi. From-SVN: r218779
Diffstat (limited to 'gcc/sreal.c')
-rw-r--r--gcc/sreal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sreal.c b/gcc/sreal.c
index 10de80b..11ea9ce 100644
--- a/gcc/sreal.c
+++ b/gcc/sreal.c
@@ -264,7 +264,7 @@ sreal
sreal::operator* (const sreal &other) const
{
sreal r;
- if (std::abs (m_sig) < SREAL_MIN_SIG || std::abs (other.m_sig) < SREAL_MIN_SIG)
+ if (absu_hwi (m_sig) < SREAL_MIN_SIG || absu_hwi (other.m_sig) < SREAL_MIN_SIG)
{
r.m_sig = 0;
r.m_exp = -SREAL_MAX_EXP;