public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* Re: [PATCH] Fix for PR ipa/64503
@ 2015-01-07 12:44 Uros Bizjak
  2015-01-08 17:04 ` Jakub Jelinek
  0 siblings, 1 reply; 10+ messages in thread
From: Uros Bizjak @ 2015-01-07 12:44 UTC (permalink / raw)
  To: gcc-patches; +Cc: Martin Liska, Jakub Jelinek

Hello!

>>>> There's suggested patch for PR ipa/64503 that was tested on x86_64 and it works.
>>>> I would like to ask Uros to test it on an aplha machine before we install the patch.
>>>
>>> Yes, this works for me on all IPA tests that were failing previously [1].
>>>
>>> I am restarting the bootstrap + regtest, it will take ~10 hours, but I
>>> don't expect any surprises there.
>>
>> The patch was bootstrapped and regression tested on
>> alphaev68-linux-gnu [2] and everything was OK.
>
> Thanks for testing. May I take this as approval of the patch.
> I don't know, if you have a permission to accept my patch ;)

Unfortunately, I have no approval power here. Luckilly, I know someone
who has ;)

Uros.

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [PATCH] Fix for PR ipa/64503
@ 2015-01-06 17:49 Martin Liška
  2015-01-06 18:25 ` Uros Bizjak
  0 siblings, 1 reply; 10+ messages in thread
From: Martin Liška @ 2015-01-06 17:49 UTC (permalink / raw)
  To: GCC Patches; +Cc: hubicka >> Jan Hubicka, ubizjak

[-- Attachment #1: Type: text/plain, Size: 190 bytes --]

Hello.

There's suggested patch for PR ipa/64503 that was tested on x86_64 and it works.
I would like to ask Uros to test it on an aplha machine before we install the patch.

Thanks,
Martin

[-- Attachment #2: 0001-Fix-for-ipa-PR64503.patch --]
[-- Type: text/x-patch, Size: 982 bytes --]

From d4738c61467e53d04b295cfc029ab89707ac29ce Mon Sep 17 00:00:00 2001
From: mliska <mliska@suse.cz>
Date: Tue, 6 Jan 2015 12:25:51 +0100
Subject: [PATCH] Fix for ipa/PR64503

gcc/ChangeLog:

2015-01-06  Martin Liska  <mliska@suse.cz>

	PR ipa/64503
	* sreal.c (sreal::dump): Change unsigned format to signed for
	m_exp value.
	(sreal::to_double): Replace exp2 with scalbln.
---
 gcc/sreal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gcc/sreal.c b/gcc/sreal.c
index 82ebcb8..622fc2d 100644
--- a/gcc/sreal.c
+++ b/gcc/sreal.c
@@ -58,7 +58,7 @@ along with GCC; see the file COPYING3.  If not see
 void
 sreal::dump (FILE *file) const
 {
-  fprintf (file, "(%" PRIu64 " * 2^%d)", m_sig, m_exp);
+  fprintf (file, "(%" PRIi64 " * 2^%d)", m_sig, m_exp);
 }
 
 DEBUG_FUNCTION void
@@ -122,7 +122,7 @@ sreal::to_double () const
 {
   double val = m_sig;
   if (m_exp)
-    val *= exp2 (m_exp);
+    val = scalbln (val, m_exp);
   return val;
 }
 
-- 
2.1.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2015-01-09  5:18 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-07 12:44 [PATCH] Fix for PR ipa/64503 Uros Bizjak
2015-01-08 17:04 ` Jakub Jelinek
2015-01-08 18:42   ` Uros Bizjak
2015-01-08 19:05     ` Jakub Jelinek
2015-01-08 19:34   ` Mike Stump
  -- strict thread matches above, loose matches on Subject: below --
2015-01-06 17:49 Martin Liška
2015-01-06 18:25 ` Uros Bizjak
2015-01-07 10:55   ` Uros Bizjak
2015-01-07 11:35     ` Martin Liška
2015-01-09  5:18     ` Jeff Law

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).