From patchwork Thu Nov 29 12:11:00 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 202726 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 1ECA22C0085 for ; Thu, 29 Nov 2012 23:11:19 +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=1354795880; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:Date:Message-ID:Subject:From:To: Content-Type:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=7mYsy/D caX8FT3wb/FV2JI0ld2I=; b=Hd1BZcoxOP2Pl25+9Fw74MiT7LbDx9JZU0lr4jk oKu7jWZp1pvXl0pbSvcXutxwzRv20KIc45BLKgj/g2G6UkhChLChfkzA+VF1SD2n f0KWjId1GOIBZI2gGOT/14gATjBrz1GDFTGroXE8qfHxIyJIM/YPacVp5ZDRVxiF yEWQ= 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:MIME-Version:Received:Received:Date:Message-ID:Subject:From:To:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=Zf4ubq6GU0Ym4B6COmIElhvhp0HTYbIwygQ8OGhJwjmruBzouaKWcelsCa0VvC yuIkUfAyNTJS/Ks8q+HuozzzxfGjHKv0lG5Cv4zklC/edVvmxGk2hJBN4y+j0IKR nAES/ecMPr6i0SD+8xSoaQLLGDCPEDIMzizwVmAvKF728=; Received: (qmail 24716 invoked by alias); 29 Nov 2012 12:11:13 -0000 Received: (qmail 24403 invoked by uid 22791); 29 Nov 2012 12:11:10 -0000 X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=AWL, BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KHOP_RCVD_TRUST, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-we0-f175.google.com (HELO mail-we0-f175.google.com) (74.125.82.175) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 12:11:01 +0000 Received: by mail-we0-f175.google.com with SMTP id z53so4268846wey.20 for ; Thu, 29 Nov 2012 04:11:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.85.194 with SMTP id j2mr26472231wiz.12.1354191060399; Thu, 29 Nov 2012 04:11:00 -0800 (PST) Received: by 10.216.153.132 with HTTP; Thu, 29 Nov 2012 04:11:00 -0800 (PST) Date: Thu, 29 Nov 2012 13:11:00 +0100 Message-ID: Subject: [patch print-tree.c]: 5 of 7 Fix of PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 From: Kai Tietz To: GCC Patches X-IsSubscribed: yes 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. ChangeLog 2012-11-29 Kai Tietz PR target/53912 * print-tree.c (print_node): Cast from pointer via uintptr_t. Tested for i686-w64-mingw32, x86_64-w64-mingw32, and x86_64-unknown-gnu-linux. Ok for apply? Regards, Kai Index: print-tree.c =================================================================== --- print-tree.c (Revision 193925) +++ print-tree.c (Arbeitskopie) @@ -255,7 +255,7 @@ print_node (FILE *file, const char *prefix, tree n /* Allow this function to be called if the table is not there. */ if (table) { - hash = ((unsigned long) node) % HASH_SIZE; + hash = ((uintptr_t) node) % HASH_SIZE; /* If node is in the table, just mention its address. */ for (b = table[hash]; b; b = b->next)