From patchwork Wed Apr 30 08:35:03 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Mike Stump X-Patchwork-Id: 344067 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 7750A140109 for ; Wed, 30 Apr 2014 18:35:16 +1000 (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:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; q=dns; s=default; b=iOFKfONr2y9zsf8qgaNWRG+ xu+rQB+gULKurWMcE/8+v8V2+LJlhIOxLUG8ASeT+gXkemP8+fcdvrfO9wA2GZ4r muLd8pAipy0mNPSlGQFcPGxW/d0i6NFAQYMpR7hoZkrHlyoqrKMGQFM1XaaqCcdH /1KPvzK7J0xtaXV+Wxdc= 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:content-transfer-encoding:subject:date:message-id :cc:to:mime-version; s=default; bh=HajidofrOtRu46p2/Qrd8C8bR78=; b= CQb51u422a7CsV7SJUu7dh89isecn7y4uo2LbJE7P5V7jKtdwgnBKvV7ez8wsCiS VAft72haa1GqeUZRR4LH70nxnSoaPRUDPOcT3O8x63yH6yxwCjD90bDhYr7oa9sE e3+HwRXqUby0QoTS7RdO4CMM7bEmqonMRjGC1mdrP1Q= Received: (qmail 22937 invoked by alias); 30 Apr 2014 08:35:08 -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 22922 invoked by uid 89); 30 Apr 2014 08:35:07 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-HELO: qmta11.emeryville.ca.mail.comcast.net Received: from qmta11.emeryville.ca.mail.comcast.net (HELO qmta11.emeryville.ca.mail.comcast.net) (76.96.27.211) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 30 Apr 2014 08:35:06 +0000 Received: from omta20.emeryville.ca.mail.comcast.net ([76.96.30.87]) by qmta11.emeryville.ca.mail.comcast.net with comcast id w8Zt1n0021smiN4AB8b5C1; Wed, 30 Apr 2014 08:35:05 +0000 Received: from [IPv6:2001:558:6045:a4:715a:a7fd:6ec:7df9] ([IPv6:2001:558:6045:a4:715a:a7fd:6ec:7df9]) by omta20.emeryville.ca.mail.comcast.net with comcast id w8b41n0041kLGLj8g8b4eZ; Wed, 30 Apr 2014 08:35:04 +0000 From: Mike Stump Subject: [wide-int] fix 32-bit x86 builds Date: Wed, 30 Apr 2014 01:35:03 -0700 Message-Id: Cc: Kenneth Zadeck , Richard Sandiford To: "gcc-patches@gcc.gnu.org Patches" Mime-Version: 1.0 (Mac OS X Mail 7.2 \(1874\)) X-IsSubscribed: yes [ sorry for the dup ] We changed the underlying type a while back, and it matters on 32-bit pointer machines that use long long for a HOST_WIDE_INT… Caught by fold-checking, thanks fold checking. This is the tree-vrp problem, I think this was seen on arm as well. Checked in as obvious. Index: tree.c =================================================================== --- tree.c (revision 209928) +++ tree.c (working copy) @@ -1959,7 +1959,7 @@ tree make_int_cst_stat (int len, int ext_len MEM_STAT_DECL) { tree t; - int length = (ext_len - 1) * sizeof (tree) + sizeof (struct tree_int_cst); + int length = (ext_len - 1) * sizeof (HOST_WIDE_INT) + sizeof (struct tree_int_cst); gcc_assert (len); record_node_allocation_statistics (INTEGER_CST, length);