diff options
author | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-16 14:55:29 +0000 |
---|---|---|
committer | marxin <marxin@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-12-16 14:55:29 +0000 |
commit | 1aed91b2478659f6293701a37bf1ed1537a02ad9 (patch) | |
tree | 1aa3f62ad5b8098f861e136cca19e060a83cf78b /gcc/sreal.c | |
parent | b5e0c6c94b2aa30fe299e112f5167d7d3c020d07 (diff) | |
download | gcc-1aed91b2478659f6293701a37bf1ed1537a02ad9.tar.gz |
Fix for PR ipa/64278
* sreal.c (sreal::operator*): Replace std::abs with absu_hwi.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@218779 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sreal.c')
-rw-r--r-- | gcc/sreal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sreal.c b/gcc/sreal.c index 10de80b7702..11ea9cedc56 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; |