From patchwork Thu Aug 12 13:42:10 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 61592 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 7767EB70A8 for ; Thu, 12 Aug 2010 23:42:19 +1000 (EST) Received: (qmail 6916 invoked by alias); 12 Aug 2010 13:42:17 -0000 Received: (qmail 6900 invoked by uid 22791); 12 Aug 2010 13:42:16 -0000 X-SWARE-Spam-Status: No, hits=-6.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_HI, SPF_HELO_PASS, T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 12 Aug 2010 13:42:12 +0000 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o7CDgAth026086 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 12 Aug 2010 09:42:10 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [10.16.42.4]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o7CDg9Sb007701 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 12 Aug 2010 09:42:10 -0400 Received: from tyan-ft48-01.lab.bos.redhat.com (tyan-ft48-01.lab.bos.redhat.com [127.0.0.1]) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4) with ESMTP id o7CDgB6q019883; Thu, 12 Aug 2010 15:42:11 +0200 Received: (from jakub@localhost) by tyan-ft48-01.lab.bos.redhat.com (8.14.4/8.14.4/Submit) id o7CDgAmR019664; Thu, 12 Aug 2010 15:42:10 +0200 Date: Thu, 12 Aug 2010 15:42:10 +0200 From: Jakub Jelinek To: "H.J. Lu" Cc: Richard Guenther , gcc-patches@gcc.gnu.org Subject: Re: [PATCH] Conservative alignment tracking (2nd try) Message-ID: <20100812134210.GN702@tyan-ft48-01.lab.bos.redhat.com> Reply-To: Jakub Jelinek References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.20 (2009-12-10) 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 On Thu, Aug 12, 2010 at 06:38:25AM -0700, H.J. Lu wrote: > On Wed, Aug 11, 2010 at 5:32 AM, Richard Guenther wrote: > It breaks bootstrap on Linux/i386: > > ../../src-trunk/gcc/builtins.c: In function 'fold_builtin_memory_op': > ../../src-trunk/gcc/builtins.c:8402:9: error: comparison between > signed and unsigned integer expressions [-Werror=sign-compare] Here is a fix I've bootstrapped on i686-linux (32-bit HWI). Ok? 2010-08-12 Jakub Jelinek * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning. Jakub --- gcc/builtins.c.jj 2010-08-12 14:07:37.000000000 +0200 +++ gcc/builtins.c 2010-08-12 14:41:39.740220087 +0200 @@ -8399,7 +8399,7 @@ fold_builtin_memory_op (location_t loc, if (readonly_data_expr (src) || (host_integerp (len, 1) && (MIN (src_align, dest_align) / BITS_PER_UNIT - >= tree_low_cst (len, 1)))) + >= (unsigned HOST_WIDE_INT) tree_low_cst (len, 1)))) { tree fn = implicit_built_in_decls[BUILT_IN_MEMCPY]; if (!fn)