From patchwork Thu Nov 29 13:15:13 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kai Tietz X-Patchwork-Id: 202740 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 BA8012C0097 for ; Fri, 30 Nov 2012 00:15:32 +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=1354799733; h=Comment: DomainKey-Signature:Received:Received:Received:Received: MIME-Version:Received:Received:In-Reply-To:References:Date: Message-ID:Subject:From:To:Cc:Content-Type:Mailing-List: Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:Sender:Delivered-To; bh=TM1aVa3hAjEEgJ3HDpSTQ5yo8bs=; b=aOKVxT7nC8vHlazZoStqkeclvr/dLxcD20YoWjoTt8jhhUNdkWOcIPzJ2aWYe6 BxzkrO90Q6e7srg6XASHADFMJs1ZN8l6Js0APGKiYPbJadxMv+GOOXV39Q9su0GT OuMfbqf8PAck7V8hBxKU2FpPuyJnpOzD8ODLXv9da0rRE= 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:In-Reply-To:References:Date:Message-ID:Subject:From:To:Cc:Content-Type:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=nNxpY91Y3pw1gSZPEWdTb/lm0seepqcOAzRnzz4eoz3dne65y+9X9iDtUHpksA vEpHtwv7QAS5LmVbz4/6OuigIP+F6HuujuIJKGZ1dpHamYU0TOHUp4fuql+lOMEr PA3j857ZfQxtMSuk0re3+oUPs68nHOIwpt8ZNcC9VDy4c=; Received: (qmail 2434 invoked by alias); 29 Nov 2012 13:15:21 -0000 Received: (qmail 2315 invoked by uid 22791); 29 Nov 2012 13:15:19 -0000 X-SWARE-Spam-Status: No, hits=-3.2 required=5.0 tests=AWL, BAYES_05, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, DKIM_VALID, FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FROM, KHOP_RCVD_TRUST, KHOP_THREADED, NML_ADSP_CUSTOM_MED, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org Received: from mail-wi0-f179.google.com (HELO mail-wi0-f179.google.com) (209.85.212.179) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 29 Nov 2012 13:15:14 +0000 Received: by mail-wi0-f179.google.com with SMTP id hj6so4973856wib.8 for ; Thu, 29 Nov 2012 05:15:13 -0800 (PST) MIME-Version: 1.0 Received: by 10.216.45.144 with SMTP id p16mr9025094web.170.1354194913506; Thu, 29 Nov 2012 05:15:13 -0800 (PST) Received: by 10.216.153.132 with HTTP; Thu, 29 Nov 2012 05:15:13 -0800 (PST) In-Reply-To: <50B759CE.1090107@redhat.com> References: <50B753FE.10809@redhat.com> <50B759CE.1090107@redhat.com> Date: Thu, 29 Nov 2012 14:15:13 +0100 Message-ID: Subject: Re: [patch c++]: 1 of 7 Fix for PR target/53912 bootstrap fails using default c++ mode in stage 2 and 3 for native x86_64-w64-mingw32 From: Kai Tietz To: Pedro Alves Cc: GCC Patches , Jason Merrill 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 Ok, here is the tested adjusted version using (u)intptr_t and hwi. Ok for apply? Kai if (ctor_vtbl_p) { if (!BINFO_VIRTUAL_P (binfo)) - fprintf (stream, " (0x%lx instance)", (unsigned long)binfo); + fprintf (stream, " (0x" HOST_WIDE_INT_PRINT_HEX " instance)", + (HOST_WIDE_INT) (uintptr_t) binfo); fprintf (stream, " in %s", type_as_string (t, TFF_PLAIN_IDENTIFIER)); } fprintf (stream, "\n"); Index: cp/class.c =================================================================== --- cp/class.c (Revision 193925) +++ cp/class.c (Arbeitskopie) @@ -7815,9 +7815,9 @@ dump_class_hierarchy_r (FILE *stream, int i; indented = maybe_indent_hierarchy (stream, indent, 0); - fprintf (stream, "%s (0x%lx) ", + fprintf (stream, "%s (0x" HOST_WIDE_INT_PRINT_HEX ") ", type_as_string (BINFO_TYPE (binfo), TFF_PLAIN_IDENTIFIER), - (unsigned long) binfo); + (HOST_WIDE_INT) (uintptr_t) binfo); if (binfo != igo) { fprintf (stream, "alternative-path\n"); @@ -7839,10 +7839,10 @@ dump_class_hierarchy_r (FILE *stream, if (BINFO_PRIMARY_P (binfo)) { indented = maybe_indent_hierarchy (stream, indent + 3, indented); - fprintf (stream, " primary-for %s (0x%lx)", + fprintf (stream, " primary-for %s (0x" HOST_WIDE_INT_PRINT_HEX ")", type_as_string (BINFO_TYPE (BINFO_INHERITANCE_CHAIN (binfo)), TFF_PLAIN_IDENTIFIER), - (unsigned long)BINFO_INHERITANCE_CHAIN (binfo)); + (HOST_WIDE_INT) (uintptr_t) BINFO_INHERITANCE_CHAIN (binfo)); } if (BINFO_LOST_PRIMARY_P (binfo)) {