From patchwork Thu Nov 29 12:13:36 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 202728 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 A70A22C0085 for ; Thu, 29 Nov 2012 23:13:57 +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=1354796037; 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=KBZx7nV oIJvueXF393ibqu0XduQ=; b=ZyHWwzdAEFk/xz63p68EG3OR73T6CLxP106BfwQ jo8fQwLbY1kLpXzZTmmWp9wAQlGWaqM58yd1BpJbGGgHU/fQ07A8p1DW6QydPXV7 jxTA0BPucO2QBWOwaImrWt6/K6eYBkmGQxfR47CWDZid/m4FYnfDqm5FFcwixLrR 4uoA= 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=U3gTC6sHHCSBhCFVez5j17vT+3YFD19VuN0L0A7f2YSp1BJCg6+LDaRWxuBCUO FzFA97XlqYgryTkzhnQ6QRP7e4OTbKGmjKjRHAefz/I+U0hcLC1AzaVGK63Spb/5 mEGj9RcVEAs/XQehfHuSqfjDk+RkphQ2hGz0AJsRMbhcI=; Received: (qmail 7657 invoked by alias); 29 Nov 2012 12:13:48 -0000 Received: (qmail 7637 invoked by uid 22791); 29 Nov 2012 12:13:46 -0000 X-SWARE-Spam-Status: No, hits=-3.5 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-wg0-f51.google.com (HELO mail-wg0-f51.google.com) (74.125.82.51) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 12:13:38 +0000 Received: by mail-wg0-f51.google.com with SMTP id ei8so5349928wgb.8 for ; Thu, 29 Nov 2012 04:13:37 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.100.132 with SMTP id ey4mr38198375wib.9.1354191217027; Thu, 29 Nov 2012 04:13:37 -0800 (PST) Received: by 10.216.153.132 with HTTP; Thu, 29 Nov 2012 04:13:36 -0800 (PST) Date: Thu, 29 Nov 2012 13:13:36 +0100 Message-ID: Subject: [patch tree-dump.c]: 7 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 * tree-dump.c (dump_pointer): Cast from pointer via intptr_t. Tested for i686-w64-mingw32, x86_64-w64-mingw32, and x86_64-unknown-gnu-linux. Ok for apply? Regards, Kai Index: tree-dump.c =================================================================== --- tree-dump.c (Revision 193925) +++ tree-dump.c (Arbeitskopie) @@ -177,7 +177,8 @@ void dump_pointer (dump_info_p di, const char *field, void *ptr) { dump_maybe_newline (di); - fprintf (di->stream, "%-4s: %-8lx ", field, (unsigned long) ptr); + fprintf (di->stream, "%-4s: %-8lx ", field, + (unsigned long) (uintptr_t) ptr); di->column += 15; }