Commit 5007f798 by Martin Liska Committed by Martin Liska

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
parent f2798565
2014-12-16 Martin Liska <mliska@suse.cz>
PR ipa/64278
* sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
2014-12-16 Igor Zamyatin <igor.zamyatin@intel.com>
* config/i386/i386.c (ix86_address_cost): Add explicit restriction
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment