Hello. This is patch for PR ipa/64278, where I replace ambiguous std::abs with absu_hwi.
Patch can bootstrap on ppc64-linux and no new regression was seen. Ready for thunk? Thanks, Martin
>From 03a15009e5c9a9045669a4987588d8abf8cc67f1 Mon Sep 17 00:00:00 2001 From: mliska <mli...@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 <mli...@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(-) diff --git a/gcc/sreal.c b/gcc/sreal.c index bc3af23..0bbc729 100644 --- a/gcc/sreal.c +++ b/gcc/sreal.c @@ -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