From patchwork Sat Nov 23 19:23:08 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 293712 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)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 875FD2C0086 for ; Sun, 24 Nov 2013 06:48:33 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :content-type:subject:date:message-id:cc:to:mime-version; q=dns; s=default; b=fMmNK8S0kyb3pagsXM4KbKD71m/PNZOA8ANXHUnh6CLmGUr2ED n9f1I85C8wmJoczVlGw1FYgXd7TiCtMByM418RedLDW5XVCdGXD/f2Gq9MIwkFgE UFK9/Hr94jYq8Iz0d32gMp8UX7LfoQE11Sv/I5D9hF1lEevMj9/ylrewA= 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:from :content-type:subject:date:message-id:cc:to:mime-version; s= default; bh=03nJChzHv+NnFYiWRFgQIEXMzEM=; b=wo++1mcqjjcozi8DUUIv VLudxpuhNwpZbavz/mFigLm/0C03EKQsdbGcqiGMQg+8uTDc1MhcVu99SdF1xubL YuG6hlJ+JnIUmyrUTU+KWk7YMPptPaiB6VVebuxM1MZ+qHisI+IOfjNOy95l2hqR cIPc5D+8NWVazvz9MJGNuAI= Received: (qmail 8209 invoked by alias); 23 Nov 2013 19:24:49 -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 8177 invoked by uid 89); 23 Nov 2013 19:24:48 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.6 required=5.0 tests=AWL, BAYES_50, FREEMAIL_FROM, RCVD_IN_BL_SPAMCOP_NET, RDNS_NONE, SPF_PASS autolearn=no version=3.3.2 X-HELO: qmta10.emeryville.ca.mail.comcast.net Received: from Unknown (HELO qmta10.emeryville.ca.mail.comcast.net) (76.96.30.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 23 Nov 2013 19:23:09 +0000 Received: from omta22.emeryville.ca.mail.comcast.net ([76.96.30.89]) by qmta10.emeryville.ca.mail.comcast.net with comcast id t7M41m0021vN32cAA7P9Ek; Sat, 23 Nov 2013 19:23:09 +0000 Received: from up.mrs.kithrup.com ([24.4.193.8]) by omta22.emeryville.ca.mail.comcast.net with comcast id t7P21m00o0BKwT48i7P8VG; Sat, 23 Nov 2013 19:23:08 +0000 From: Mike Stump Subject: wide-int, vax Date: Sat, 23 Nov 2013 11:23:08 -0800 Message-Id: <73407A1E-D2F1-45C6-BE33-7E7B13597C0D@comcast.net> Cc: Matt Thomas , Kenneth Zadeck To: "gcc-patches@gcc.gnu.org Patches" Mime-Version: 1.0 (Mac OS X Mail 6.6 \(1510\)) X-IsSubscribed: yes Richi has asked the we break the wide-int patch so that the individual port and front end maintainers can review their parts without have to go through the entire patch. This patch covers the vax port. Ok? * config/vax/vax.c: Include wide-int.h. (vax_float_literal): Use real_from_integer. diff --git a/gcc/config/vax/vax.c b/gcc/config/vax/vax.c index 7aac7cb..90da3b9 100644 --- a/gcc/config/vax/vax.c +++ b/gcc/config/vax/vax.c @@ -45,6 +45,7 @@ along with GCC; see the file COPYING3. If not see #include "tm_p.h" #include "target.h" #include "target-def.h" +#include "wide-int.h" static void vax_option_override (void); static bool vax_legitimate_address_p (enum machine_mode, rtx, bool); @@ -645,7 +646,7 @@ vax_float_literal (rtx c) { int x = 1 << i; bool ok; - REAL_VALUE_FROM_INT (s, x, 0, mode); + real_from_integer (&s, mode, x, SIGNED); if (REAL_VALUES_EQUAL (r, s)) return true;