From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12038 invoked by alias); 9 Dec 2012 16:18:13 -0000 Received: (qmail 12027 invoked by uid 22791); 9 Dec 2012 16:18:11 -0000 X-SWARE-Spam-Status: No, hits=-4.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-bk0-f47.google.com (HELO mail-bk0-f47.google.com) (209.85.214.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 09 Dec 2012 16:18:04 +0000 Received: by mail-bk0-f47.google.com with SMTP id j4so779483bkw.20 for ; Sun, 09 Dec 2012 08:18:03 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.148.195 with SMTP id q3mr3525314bkv.122.1355069883670; Sun, 09 Dec 2012 08:18:03 -0800 (PST) Received: by 10.204.59.14 with HTTP; Sun, 9 Dec 2012 08:18:03 -0800 (PST) In-Reply-To: References: Date: Sun, 09 Dec 2012 16:18:00 -0000 Message-ID: Subject: Re: [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: NightStrike To: Kai Tietz Cc: GCC Patches Content-Type: text/plain; charset=ISO-8859-1 X-IsSubscribed: yes Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org X-SW-Source: 2012-12/txt/msg00583.txt.bz2 On Sat, Dec 1, 2012 at 11:12 PM, Kai Tietz wrote: > Ping > > 2012/11/29 Kai Tietz : >> 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) Ping.