From patchwork Tue Jan 6 17:49:45 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Martin_Li=C5=A1ka?= X-Patchwork-Id: 425765 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id DB06B140082 for ; Wed, 7 Jan 2015 04:50:00 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; q=dns; s=default; b=QUZ5o21JwI9+0psd9DW8qBjx6+7yIVVrDsKKMCAQyMX ZoOWEabTXYAMp6v3QJR9BoHYZ3KaWBt2OgV/4ZpSTPekuC0+m/ee1urr/5D37sd/ vBHuARiALZIqts07b3w1PDm7ziB5+Xy5VpsqHWzhawVM+9dX49748lrh7RnBuFCk = DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:mime-version:to:cc:subject:content-type; s=default; bh=1UXRVPQgggVXTt+WImXWMLyeihg=; b=oNcTP22fFvfT0LOCx 4TNA72UmXtiLjKjUDMqXvOEYTRs4nqvTfdIrBQF/6SS/U69ngbEWhg9/VyeFTNwT MS2PTbJXq3gSn0RmeHifRh886BB6R6y1M1whdyvdSO/VjtKCfA8kUn5Vbl0k/v/M 15y7Xn9/2xbrL5XZIwpJSeYFtY= Received: (qmail 18543 invoked by alias); 6 Jan 2015 17:49:53 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 18531 invoked by uid 89); 6 Jan 2015 17:49:52 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.1 required=5.0 tests=AWL, BAYES_00 autolearn=ham version=3.3.2 X-HELO: mx2.suse.de Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (CAMELLIA256-SHA encrypted) ESMTPS; Tue, 06 Jan 2015 17:49:51 +0000 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EC6E97590B; Tue, 6 Jan 2015 17:49:45 +0000 (UTC) Message-ID: <54AC2039.4020203@suse.cz> Date: Tue, 06 Jan 2015 18:49:45 +0100 From: =?UTF-8?B?TWFydGluIExpxaFrYQ==?= User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: GCC Patches CC: "hubicka >> Jan Hubicka" , ubizjak@gmail.com Subject: [PATCH] Fix for PR ipa/64503 X-IsSubscribed: yes 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 From d4738c61467e53d04b295cfc029ab89707ac29ce Mon Sep 17 00:00:00 2001 From: mliska Date: Tue, 6 Jan 2015 12:25:51 +0100 Subject: [PATCH] Fix for ipa/PR64503 gcc/ChangeLog: 2015-01-06 Martin Liska 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