From 5007f79810c5192d217be89256cef2fc9b9989ce Mon Sep 17 00:00:00 2001 From: Martin Liska Date: Tue, 16 Dec 2014 15:55:29 +0100 Subject: 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 --- gcc/ChangeLog | 5 +++++ gcc/sreal.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'gcc') diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 36dcc97..ff5a146 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2014-12-16 Martin Liska + + PR ipa/64278 + * sreal.c (sreal::operator*): Replace std::abs with absu_hwi. + 2014-12-16 Igor Zamyatin * config/i386/i386.c (ix86_address_cost): Add explicit restriction 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; -- cgit v1.1