From patchwork Mon Nov 25 19:52:07 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kenneth Zadeck X-Patchwork-Id: 294067 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 855F22C00C3 for ; Tue, 26 Nov 2013 06:52:27 +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 :message-id:date:from:mime-version:to:subject:references :in-reply-to:content-type; q=dns; s=default; b=DwXQyK/rkN1MSOF79 xNhqj84t0ev19MbtdX7jcjj+BYRmWLqRPBhCpE44YgFYkygSyzHfxnrV1Krt8zD2 k9sXb0Ltj5jZVsZPtMjzcqP51+fAbBpjrkK/kUUwmhasRuqVeAOiOZ6IH/uyAYih kiJgK4ro1Tr67DjoXpTrLFUCQ0= 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:subject:references :in-reply-to:content-type; s=default; bh=Cdi/xEzO2Hc/TEUd6/xRq3X q1YU=; b=ZnbDGMjvqrQIVsPnEjgXH5uWWPQapzkiAh1et8lTf2I5gSzshE964JQ 0P3o9BJ37Zt72upXo4V6ZjScPeaAzD3F3pPKHHAX2ksUlfMaoaeVHzvu0nVN65S1 8n0iFzmnGksA1aZi3dKi7unJdB7lOb9nCPxeuiKwRwPZPnGfFt2U= Received: (qmail 15771 invoked by alias); 25 Nov 2013 19:52:18 -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 15762 invoked by uid 89); 25 Nov 2013 19:52:17 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=1.6 required=5.0 tests=BAYES_50, RDNS_NONE autolearn=no version=3.3.2 X-HELO: mail-qe0-f44.google.com Received: from Unknown (HELO mail-qe0-f44.google.com) (209.85.128.44) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Mon, 25 Nov 2013 19:52:17 +0000 Received: by mail-qe0-f44.google.com with SMTP id nd7so3929485qeb.3 for ; Mon, 25 Nov 2013 11:52:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:content-type; bh=fQ9W3tDge+wk23fOaz9CHNEWPhBFj6UwRMjBXq7hrp0=; b=fK1C8HL3XzA/vaihpMdNg6Yu6czwzKspclSRSDy+3195pmo31J9Mm16ap/XPLn7g8F BJz6cEXkZM9x9mYjQiov3bEQNeXSPVJem4JVM4A87G+MCWOcaustnshPWW1FKrUlJChh h1cox2tjtf3XKnWacmXDdM9pUPadmUoVLXlNbTCFeZwGINNA7oQnwVkAC1BGeEQez7lX zyX+ahCe4Gy6/E0dcj/RrZDnzNxZKTX9DtX5mTJOGeO73UfCXESaD1553HEH83HdIVxh zQyOOC0heqbOr0UKYI/6pl63MknZ51jnJOF1pl606t0Ioq+xSkq93bJsEZQ7HC0otjOm swvA== X-Gm-Message-State: ALoCoQnhVpKWynTf6xraxIoYA6zi9u4dZ3Nsd2BXHNHRMfTYxxbz7w+9k5VZSUJnDxo/wnMvI4fT X-Received: by 10.224.5.130 with SMTP id 2mr5590499qav.96.1385409129297; Mon, 25 Nov 2013 11:52:09 -0800 (PST) Received: from ?IPv6:2001:468:913:2000:35a8:a3c:3f42:923a? ([2001:468:913:2000:35a8:a3c:3f42:923a]) by mx.google.com with ESMTPSA id a9sm117663708qed.6.2013.11.25.11.52.07 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 25 Nov 2013 11:52:08 -0800 (PST) Message-ID: <5293AA67.6010309@naturalbridge.com> Date: Mon, 25 Nov 2013 14:52:07 -0500 From: Kenneth Zadeck User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Jason Merrill , Mike Stump , "gcc-patches@gcc.gnu.org Patches" Subject: Re: wide-int, C++ front end References: <52915DC7.1000200@redhat.com> In-Reply-To: <52915DC7.1000200@redhat.com> fixed on the wide-int branch 205363. On 11/23/2013 09:00 PM, Jason Merrill wrote: > On 11/23/2013 02:20 PM, Mike Stump wrote: >> @@ -2605,8 +2606,7 @@ cp_tree_equal (tree t1, tree t2) >> switch (code1) >> { >> case INTEGER_CST: >> - return TREE_INT_CST_LOW (t1) == TREE_INT_CST_LOW (t2) >> - && TREE_INT_CST_HIGH (t1) == TREE_INT_CST_HIGH (t2); >> + return wi::to_widest (t1) == wi::to_widest (t2); > > Why not use wi::eq_p like you do in the C front end? > > Jason > Index: dwarf2out.c =================================================================== --- dwarf2out.c (revision 205360) +++ dwarf2out.c (working copy) @@ -12880,10 +12880,15 @@ mem_loc_descriptor (rtx rtl, enum machin { dw_die_ref type_die; - /* Note that a CONST_DOUBLE rtx could represent either an integer - or a floating-point constant. A CONST_DOUBLE is used whenever - the constant requires more than one word in order to be - adequately represented. We output CONST_DOUBLEs as blocks. */ + /* Note that if TARGET_SUPPORTS_WIDE_INT == 0, a + CONST_DOUBLE rtx could represent either an large integer + or a floating-point constant. If + TARGET_SUPPORTS_WIDE_INT != 0, the value is always a + floating point constant. + + When it is an integer, a CONST_DOUBLE is used whenever + the constant requires 2 HWIs to be adequately + represented. We output CONST_DOUBLEs as blocks. */ if (mode == VOIDmode || (GET_MODE (rtl) == VOIDmode && GET_MODE_BITSIZE (mode) != HOST_BITS_PER_DOUBLE_INT))