From 03a15009e5c9a9045669a4987588d8abf8cc67f1 Mon Sep 17 00:00:00 2001
From: mliska <mliska@suse.cz>
Date: Fri, 12 Dec 2014 16:42:57 +0100
Subject: [PATCH] Fix for PR ipa/64278.
gcc/ChangeLog:
2014-12-12 Martin Liska <mliska@suse.cz>
PR ipa/64278
* sreal.c (sreal::operator*): Call to std::abs can be ambiguos and
is replaced with absu_hwi.
---
gcc/sreal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
@@ -251,7 +251,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;
--
2.1.2