From patchwork Fri Apr 5 14:55:51 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kyrylo Tkachov X-Patchwork-Id: 234171 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 1108F2C009B for ; Sat, 6 Apr 2013 02:08:17 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version:content-type; q=dns; s=default; b=M9DWbnnLVVHIWV3AHaymGMomcSki6deWm69DH7B7I3pBoU7wgb kQjuUA0PNvOk6PdKzlSX8QwitMcDFH/xpGplKBm0VyTu1Yitjz/+Bok/Ik8megVx Px1ufDiUMIUi3H0LrH0O4nE64v6X5o0says3usqd5YVDlrGKUYJBC4KZY= 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:from :to:cc:subject:date:message-id:mime-version:content-type; s= default; bh=SfQxpxJG+25mguNoX87Ma6VTwAs=; b=QDYvOTnuVplJtHcCDLkU RpdxUeDaZBtvw0RxU2iyb905tQDcVGjVsytyRCGqj4xnTsEt4S11SvdhBLGkh0Z5 uzZLfiNKBFV7Mp+6Huh/Sb873cq6u0UjzY0py83pt/GyaPkb0rlBOSRlg1mjtZ+C d+g6MivKfyOODB+ppbxIJCg= Received: (qmail 7400 invoked by alias); 5 Apr 2013 15:05:08 -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 3696 invoked by uid 89); 5 Apr 2013 14:56:02 -0000 X-Spam-SWARE-Status: No, score=-1.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MSGID_MULTIPLE_AT, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 Received: from service87.mimecast.com (HELO service87.mimecast.com) (91.220.42.44) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 05 Apr 2013 14:56:00 +0000 Received: from cam-owa1.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.21]) by service87.mimecast.com; Fri, 05 Apr 2013 15:55:57 +0100 Received: from e106372vm ([10.1.255.212]) by cam-owa1.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.0); Fri, 5 Apr 2013 15:55:57 +0100 From: "Kyrylo Tkachov" To: Cc: "Ramana Radhakrishnan" Subject: [PATCH][ARM] Fix signed-unsigned comparison warning Date: Fri, 5 Apr 2013 15:55:51 +0100 Message-ID: <01b601ce320d$ab10ed60$0132c820$@tkachov@arm.com> MIME-Version: 1.0 X-MC-Unique: 113040515555701701 X-Virus-Found: No Hi all This patch fixes a warning in arm.c about a comparison between signed and unsigned integers. This is usually harmless, but during bootstrap we compile with -Werror and this turns into an error. The fix is a one-liner. Tested to make sure warning goes away and did a regtest run for arm-none-eabi. Ok for trunk? Thanks, Kyrill 2013-04-05 Kyrylo Tkachov * config/arm/arm.c (arm_expand_builtin): Change fcode type to unsigned int. diff --git a/gcc/config/arm/arm.c b/gcc/config/arm/arm.c index 231a27f..1558fb0 100644 --- a/gcc/config/arm/arm.c +++ b/gcc/config/arm/arm.c @@ -21489,7 +21489,7 @@ arm_expand_builtin (tree exp, rtx op1; rtx op2; rtx pat; - int fcode = DECL_FUNCTION_CODE (fndecl); + unsigned int fcode = DECL_FUNCTION_CODE (fndecl); size_t i; enum machine_mode tmode; enum machine_mode mode0;