From patchwork Wed May 8 17:08:11 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bill Schmidt X-Patchwork-Id: 242612 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 11EA42C007C for ; Thu, 9 May 2013 03:11:02 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:from:to:content-type:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=dNCQoLg4pv19INW7 xr+skEUHMpEzznxL3qOb8TQVDIgvQCkqmnQy9T3UuC/k7FyI3p1dPcTLo1Um1W1/ olfzUAZagIk/W+roPxlAIJ5wJjEeKqpWbTmtaD0wEfsbhd5fTfOdZy2JjqhyLLjB foK8dIfAUypMpDiC6eSRZQWDSPI= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :subject:from:to:content-type:date:message-id:mime-version :content-transfer-encoding; s=default; bh=BidXBwrJn+ckGaUD+EJsDI pTd5Q=; b=juPJWnldPpaZQ6gOKFilrioUw0n1VGz81MuxI5DljcjchtPh7ignAr 35xEs1QqJcG5lKaUjyHqnMKq3JmBaPhoXHiD160AaLk6EyFVKLjQw/1ObPydXbY7 x7EIwEkJ53smIjanJoVnfPBYqujAPwhhVipxRuXf2nhJV6+UEoVWw= Received: (qmail 30234 invoked by alias); 8 May 2013 17:10:54 -0000 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 Received: (qmail 30221 invoked by uid 89); 8 May 2013 17:10:54 -0000 X-Spam-SWARE-Status: No, score=-4.6 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MAY_BE_FORGED, RCVD_IN_HOSTKARMA_W, RCVD_IN_HOSTKARMA_WL, RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from e35.co.us.ibm.com (HELO e35.co.us.ibm.com) (32.97.110.153) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 08 May 2013 17:10:51 +0000 Received: from /spool/local by e35.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 8 May 2013 11:10:49 -0600 Received: from d03dlp03.boulder.ibm.com (9.17.202.179) by e35.co.us.ibm.com (192.168.1.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Wed, 8 May 2013 11:08:24 -0600 Received: from d03relay05.boulder.ibm.com (d03relay05.boulder.ibm.com [9.17.195.107]) by d03dlp03.boulder.ibm.com (Postfix) with ESMTP id A6F3D19D8036 for ; Wed, 8 May 2013 11:08:14 -0600 (MDT) Received: from d03av06.boulder.ibm.com (d03av06.boulder.ibm.com [9.17.195.245]) by d03relay05.boulder.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r48H8DNF086302 for ; Wed, 8 May 2013 11:08:17 -0600 Received: from d03av06.boulder.ibm.com (loopback [127.0.0.1]) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r48HB9gb009644 for ; Wed, 8 May 2013 11:11:09 -0600 Received: from [9.10.86.97] (oc8801110288.ibm.com.rchland.ibm.com [9.10.86.97] (may be forged)) by d03av06.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id r48HB9Yd009610 for ; Wed, 8 May 2013 11:11:09 -0600 Subject: [PATCH, committed] Correct signedness warning in gimple-ssa-strength-reduction.c From: Bill Schmidt To: gcc-patches@gcc.gnu.org Date: Wed, 08 May 2013 12:08:11 -0500 Message-ID: <1368032891.4938.37.camel@oc8801110288.ibm.com> Mime-Version: 1.0 X-TM-AS-MML: No X-Content-Scanned: Fidelis XPS MAILER x-cbid: 13050817-4834-0000-0000-000006B61FD9 This corrects a signed/unsigned comparison. Regstrapped on powerpc64-unknown-linux-gnu, committed as obvious. Thanks, Bill 2013-05-08 Bill Schmidt * gimple-ssa-strength-reduction.c (count_candidates): Change return value to int. (analyze_candidates_and_replace): Change type of length to int. Index: gcc/gimple-ssa-strength-reduction.c =================================================================== --- gcc/gimple-ssa-strength-reduction.c (revision 198713) +++ gcc/gimple-ssa-strength-reduction.c (working copy) @@ -2259,7 +2259,7 @@ replace_uncond_cands_and_profitable_phis (slsr_can /* Count the number of candidates in the tree rooted at C that have not already been replaced under other interpretations. */ -static unsigned +static int count_candidates (slsr_cand_t c) { unsigned count = cand_already_replaced (c) ? 0 : 1; @@ -3361,7 +3361,7 @@ analyze_candidates_and_replace (void) less expensive to calculate than the replaced statements. */ else { - unsigned length; + int length; enum machine_mode mode; bool speed;