From patchwork Fri Mar 30 09:18:19 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Biener X-Patchwork-Id: 149592 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 254B1B6F6E for ; Fri, 30 Mar 2012 20:19:49 +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=1333703990; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Date: From:To:Subject:Message-ID:MIME-Version:Content-Type: Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:Sender:Delivered-To; bh=x6dtkPYb9XhG0E9SvBEy IOophK4=; b=n6iTuN0BrCPOjArvzvpe7Nt6JLZm3aGJ1CqMmT72EyGi6rnpRuqG OYFTq5jlUhncXcTQSbujDHyTwrOToA8UEcIlYVEL0spqEZJYha+UbG0vX9jTSPUt BSabeq8+eZw2LdI0syn43ymNrQ3pcQrOeQaQEz2tozlCvG4BKPjM3Pc= 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:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=BINebAzfW4a5kIlx5eoJklTlnLCTCAVa0lzayEoM6DGvUSW694Qx3TkcqV8g+7 BNQE74qC9Jp6d5/IzuaTNRxxyTBIcqXz+V6luQUie6rd1H4arRkAgciFFXB/gy6N VXakNnd2kKnXDs6gaz/zmHxi+4dXzsowMj7eqcOc3DL/w=; Received: (qmail 16153 invoked by alias); 30 Mar 2012 09:19:13 -0000 Received: (qmail 16119 invoked by uid 22791); 30 Mar 2012 09:19:12 -0000 X-SWARE-Spam-Status: No, hits=-5.3 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from cantor2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 30 Mar 2012 09:18:20 +0000 Received: from relay2.suse.de (unknown [195.135.220.254]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 4A4C094718 for ; Fri, 30 Mar 2012 11:18:19 +0200 (CEST) Date: Fri, 30 Mar 2012 11:18:19 +0200 (CEST) From: Richard Guenther To: gcc-patches@gcc.gnu.org Subject: [PATCH] Fix PR52786 Message-ID: MIME-Version: 1.0 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 This fixes PR52786 which I did not see in my testing (huh). I suppose hppa*-*-* has unsigned HOST_WIDE_INT == unsigned int and we suppress the sign-compare warning for unsigned long >= (long) unsigned int Committed as obvious. Richard. 2012-03-30 Richard Guenther PR middle-end/52786 * double-int.c (rshift_double): Remove not needed cast. Index: gcc/double-int.c =================================================================== --- gcc/double-int.c (revision 185994) +++ gcc/double-int.c (working copy) @@ -228,7 +228,7 @@ rshift_double (unsigned HOST_WIDE_INT l1 /* Zero / sign extend all bits that are beyond the precision. */ - if (count >= (HOST_WIDE_INT)prec) + if (count >= prec) { *hv = signmask; *lv = signmask;