From patchwork Thu Jan 3 12:08:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rainer Emrich X-Patchwork-Id: 209228 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]) by ozlabs.org (Postfix) with SMTP id CE83D2C007D for ; Thu, 3 Jan 2013 23:09:11 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1357819753; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Message-ID:Date:From:User-Agent:MIME-Version: To:CC:Subject:OpenPGP:Content-Type:Content-Transfer-Encoding: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=gX6h1A35ekN/2v2bUpND JJWe8EY=; b=iAE+fE0JZycrQsfH9ZyvYsjkSL+T/J/SezO/MjR3I2ANOM3Rwed5 +8zuxc8W16f5tqyYxQaKwhlsarC2Lb5mQdtYLyIY8jmhmKSa1haUUyqo9IXT+062 E5QvxXpgUCtgoMcTdFxnu1DNh168wu/kOpAyVUXUdNl57iEeItuLCuA= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Received:Message-ID:Date:From:User-Agent:MIME-Version:To:CC:Subject:OpenPGP:Content-Type:Content-Transfer-Encoding:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=GVn/pcE/OAeAORpHgoK9h/K8Mu3UkiLMtn3+1fcGDN3Q/YZ019exm+ByXFLa+A feM3S6VigqTpB887P4hj9Tl1tHTK3xp+IwdwpQ8sGxEUdrEtm1OKyNBjwUV6xGbe 8+mYyicElQoLhJ8IJxId9jXOHAEbML4gKC/qVqnFWBnpk=; Received: (qmail 13711 invoked by alias); 3 Jan 2013 12:09:02 -0000 Received: (qmail 13692 invoked by uid 22791); 3 Jan 2013 12:09:00 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_YE, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from moutng.kundenserver.de (HELO moutng.kundenserver.de) (212.227.17.8) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 03 Jan 2013 12:08:54 +0000 Received: from matterhorn.local.emrich-ebersheim.de (95-89-201-80-dynip.superkabel.de [95.89.201.80]) by mrelayeu.kundenserver.de (node=mrbap0) with ESMTP (Nemesis) id 0MNO5B-1Tx3G92gdF-0071rk; Thu, 03 Jan 2013 13:08:52 +0100 Received: from localhost (localhost [127.0.0.1]) by matterhorn.local.emrich-ebersheim.de (Postfix) with ESMTP id 3454960F6C0; Thu, 3 Jan 2013 13:08:52 +0100 (CET) Received: from matterhorn.local.emrich-ebersheim.de ([127.0.0.1]) by localhost (matterhorn.local.emrich-ebersheim.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7FPs7b-r35_W; Thu, 3 Jan 2013 13:08:51 +0100 (CET) Received: from [192.168.0.13] (kasandra.local.emrich-ebersheim.de [192.168.0.13]) by matterhorn.local.emrich-ebersheim.de (Postfix) with ESMTP id E8E3B60F6BE; Thu, 3 Jan 2013 13:08:50 +0100 (CET) Message-ID: <50E574D2.2000906@emrich-ebersheim.de> Date: Thu, 03 Jan 2013 13:08:50 +0100 From: Rainer Emrich User-Agent: Mozilla/5.0 (Windows NT 5.2; WOW64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: gcc-patches@gcc.gnu.org CC: Kai Tietz Subject: [PATCH]: Fix for PR 55707 bootstrap fails in gcc/graphite-dependences.c error cast loses precision OpenPGP: url=random.sks.keyserver.penguin.de 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 Hello, this trivial patch fixes a bootstrap issue on LLP64 hosts. PR 55707 * graphite-dependences.c (hash_poly_ddr_p): Cast from pointer via intptr_t. Tested for x86_64-w64-mingw32 and x86_64-unknown-gnu-linux. If OK for apply, Kai please commit. Regards, Rainer Index: graphite-dependences.c =================================================================== --- graphite-dependences.c (Revision 194638) +++ graphite-dependences.c (Arbeitskopie) @@ -56,7 +56,7 @@ hash_poly_ddr_p (const void *pddr) { const struct poly_ddr *p = (const struct poly_ddr *) pddr; - return (hashval_t) ((long) PDDR_SOURCE (p) + (long) PDDR_SINK (p)); + return (hashval_t) ((intptr_t) PDDR_SOURCE (p) + (intptr_t) PDDR_SINK (p)); } /* Returns true when PDDR has no dependence. */