From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2876 invoked by alias); 9 Dec 2012 15:58:15 -0000 Received: (qmail 2864 invoked by uid 22791); 9 Dec 2012 15:58:14 -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 15:58:10 +0000 Received: by mail-bk0-f47.google.com with SMTP id j4so776310bkw.20 for ; Sun, 09 Dec 2012 07:58:09 -0800 (PST) MIME-Version: 1.0 Received: by 10.204.148.195 with SMTP id q3mr3513648bkv.122.1355068689011; Sun, 09 Dec 2012 07:58:09 -0800 (PST) Received: by 10.204.59.14 with HTTP; Sun, 9 Dec 2012 07:58:08 -0800 (PST) In-Reply-To: References: Date: Sun, 09 Dec 2012 15:58:00 -0000 Message-ID: Subject: Re: [patch stmt.c]: 6 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/msg00581.txt.bz2 On Sat, Dec 1, 2012 at 11:13 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 >> * stmt.c (compute_cases_per_edge): Cast from pointer via intptr_t. >> (expand_case): Likewise. >> >> Tested for i686-w64-mingw32, x86_64-w64-mingw32, and >> x86_64-unknown-gnu-linux. Ok for apply? >> >> Regards, >> Kai >> >> Index: stmt.c >> =================================================================== >> --- stmt.c (Revision 193925) >> +++ stmt.c (Arbeitskopie) >> @@ -2061,7 +2061,7 @@ compute_cases_per_edge (gimple stmt) >> tree lab = CASE_LABEL (elt); >> basic_block case_bb = label_to_block_fn (cfun, lab); >> edge case_edge = find_edge (bb, case_bb); >> - case_edge->aux = (void *)((long)(case_edge->aux) + 1); >> + case_edge->aux = (void *)((intptr_t)(case_edge->aux) + 1); >> } >> } >> >> @@ -2176,7 +2176,7 @@ expand_case (gimple stmt) >> edge case_edge = find_edge (bb, case_bb); >> case_list = add_case_node ( >> case_list, low, high, lab, >> - case_edge->probability / (long)(case_edge->aux), >> + case_edge->probability / (intptr_t)(case_edge->aux), >> case_node_pool); >> } >> pointer_set_destroy (seen_labels); Ping x2