From patchwork Sat Nov 3 00:50:34 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Hubicka X-Patchwork-Id: 196796 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 F18542C00BE for ; Sat, 3 Nov 2012 11:50:51 +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=1352508652; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=QXr+yZfUWpOXXN2L6XWLhitOm/0=; b=W5528Xy8hY4k0Jx Mt7x4eftKemf60bfquX7XMZ6sj7VTOhVIN+/MaTz2n6TdLdvQTXqBeNhGFa5e2ry upWyVasc6BM/gQyFdE+EvmkarPfuB5HBF/ZqueXLXGBVDiPGpT45cXTO18WaaWpF TU5gY7AHYfh3nW+p01mZcC+a6PRA= 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:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=t0mh1Dk0YX0j97AgfaT5MMgNb5IOQTmLCyliH97Muz0EnE1ZuOM+XWm3Q5wJxl LLw2yKix2wSFoipt3CCJ5aWt57m7U3x7I7K81Q1bIiJpSyzEjWsH591zyc8LSLgW wbCROnaiO2OaoFsZ1HCIzZyNIhY9MuC69wirJgZsiKba8=; Received: (qmail 27190 invoked by alias); 3 Nov 2012 00:50:43 -0000 Received: (qmail 27182 invoked by uid 22791); 3 Nov 2012 00:50:43 -0000 X-SWARE-Spam-Status: No, hits=-4.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from nikam.ms.mff.cuni.cz (HELO nikam.ms.mff.cuni.cz) (195.113.20.16) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 03 Nov 2012 00:50:36 +0000 Received: by nikam.ms.mff.cuni.cz (Postfix, from userid 16202) id 7180F543C53; Sat, 3 Nov 2012 01:50:34 +0100 (CET) Date: Sat, 3 Nov 2012 01:50:34 +0100 From: Jan Hubicka To: gcc-patches@gcc.gnu.org Subject: Fix bootstrap on 32bit hosts Message-ID: <20121103005034.GC12720@kam.mff.cuni.cz> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) 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 Hi, my patch on loop bound estimation had missing cast that shows up as a bootstrap problem on 32bit hosts. Fixed thus as obvious. I am sorry for the breakage. Honza Index: ChangeLog =================================================================== --- ChangeLog (revision 193116) +++ ChangeLog (working copy) @@ -1,3 +1,8 @@ +2012-11-02 Jan Hubicka + + * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk): Add + missing sign to unsigned. + 2012-11-02 Andrew Pinski PR rtl-opt/54524 Index: tree-ssa-loop-niter.c =================================================================== --- tree-ssa-loop-niter.c (revision 193104) +++ tree-ssa-loop-niter.c (working copy) @@ -3161,7 +3161,7 @@ discover_iteration_bound_by_body_walk (s } gcc_assert (latch_index >= 0); - if (latch_index < VEC_length (double_int, bounds)) + if ((unsigned)latch_index < VEC_length (double_int, bounds)) { if (dump_file && (dump_flags & TDF_DETAILS)) { Index: testsuite/ChangeLog =================================================================== --- testsuite/ChangeLog (revision 193116) +++ testsuite/ChangeLog (working copy) @@ -1,3 +1,7 @@ +2012-11-02 Jan Hubicka + + * gcc.dg/tree-ssa/loop-38.c: Correct testcase. + 2012-11-02 Michael Meissner * gcc.target/powerpc/pr48258-2.c: Simplfy the acceptance Index: testsuite/gcc.dg/tree-ssa/loop-38.c =================================================================== --- testsuite/gcc.dg/tree-ssa/loop-38.c (revision 193104) +++ testsuite/gcc.dg/tree-ssa/loop-38.c (working copy) @@ -13,6 +13,6 @@ t(int n) sum+=b[i]; return sum; } -/* { dg-final { scan-tree-dump "Found better loop bound 10" "cunrolli" } } */ -/* { dg-final { scan-tree-dump "Loop 1 iterates at most 10 times" "cunrolli" } } */ +/* { dg-final { scan-tree-dump "Found better loop bound 11" "cunrolli" } } */ +/* { dg-final { scan-tree-dump "Loop 1 iterates at most 11 times" "cunrolli" } } */ /* { dg-final { cleanup-tree-dump "cunrolli" } } */