From patchwork Thu Nov 29 12:05: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: 202723 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 73CAA2C0086 for ; Thu, 29 Nov 2012 23:05:50 +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=1354795550; 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=P6AMMyB FFlRdNld18gi+z4nnydk=; b=nJiN9vhcOtIqei8tOzydYHwU4rk18RcWnbk1pZu ueD5O1iiUehqQ1Zf0odjyATMC90UIL3LDPCYzDOQFkMipg6sywaLR+idUy0GY6Df CYAWyX+pld3r1pe2HSW14mXU0YDxRMhV3YM6uT2q/2RIs2z6SWJwpHYtTHUWVZwC P90U= 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=EVGhCbzK3U2kSzuVc+LHyUuv8+R3A2Zb2C1VJoOD+uEmxEUwXNtpJ5rezcIfYA fVpb4lQ9P5m+EYYNTKSZOykFQYnAG3yqcYE/AWvlqxw/RaUk4lH6mRxEOPFTONRa z8KP/oYKuY2avoCkvWvC8xtfuJNulUdZjmmK39lrr/iEQ=; Received: (qmail 4400 invoked by alias); 29 Nov 2012 12:05:45 -0000 Received: (qmail 4388 invoked by uid 22791); 29 Nov 2012 12:05:43 -0000 X-SWARE-Spam-Status: No, hits=-3.1 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-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 12:05:37 +0000 Received: by mail-wi0-f179.google.com with SMTP id hj6so4941332wib.8 for ; Thu, 29 Nov 2012 04:05:36 -0800 (PST) MIME-Version: 1.0 Received: by 10.180.100.73 with SMTP id ew9mr17829709wib.21.1354190736418; Thu, 29 Nov 2012 04:05:36 -0800 (PST) Received: by 10.216.153.132 with HTTP; Thu, 29 Nov 2012 04:05:36 -0800 (PST) Date: Thu, 29 Nov 2012 13:05:36 +0100 Message-ID: Subject: [patch]: 2 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 * ggc-common.c (POINTER_HASH): 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: ggc-common.c =================================================================== --- ggc-common.c (Revision 193925) +++ ggc-common.c (Arbeitskopie) @@ -304,7 +304,7 @@ struct ptr_data enum gt_types_enum type; }; -#define POINTER_HASH(x) (hashval_t)((long)x >> 3) +#define POINTER_HASH(x) (hashval_t)((intptr_t)x >> 3) /* Register an object in the hash table. */