From patchwork Fri May 9 12:18:49 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Georg-Johann Lay X-Patchwork-Id: 347397 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 0E95B140110 for ; Fri, 9 May 2014 22:18:09 +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 :message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; q=dns; s=default; b=ibyD/PXD3QtdUHHo rFYXYWBuCl+fi5NxHg1VZOhF7txYqlBkzyMatbUbJa7pHbW6jtWsjyKhyg0iY0Nu Wu6oZCXaIns/P0rXGyzH5nzAJ2OpS9kh9NNLHTycjgxNvxEtDy3oGXYNQyXUefbD tFQ3EsuTJxDGtu4pf9vD24uZsns= 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 :message-id:date:from:mime-version:to:subject:content-type :content-transfer-encoding; s=default; bh=/UOMLHh7iURR4jjcRPpVPP EhKQw=; b=WNYWCqgyqOCTYebPYxi2EuGRBXGBuz+L2Tp9/LlysSfaXJNGngLzeV xwbGQWOPv1j6qTFYlOoUAM2MaO+s613FNPrxVjjFNvSqrZRTRbHXejp8VklXdtAG XUEUiDA2bgXkz6eE0hb2uMtb/628uvJsFqtgecD9uYMlo3WUZu/Ks= Received: (qmail 26670 invoked by alias); 9 May 2014 12:18:02 -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 26602 invoked by uid 89); 9 May 2014 12:18:01 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 X-HELO: mo4-p00-ob.smtp.rzone.de Received: from mo4-p00-ob.smtp.rzone.de (HELO mo4-p00-ob.smtp.rzone.de) (81.169.146.221) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Fri, 09 May 2014 12:18:00 +0000 X-RZG-AUTH: :LXoWVUeid/7A29J/hMvvT3ol15ykJcYwTPbBBR62PQ25nZqaVhI= X-RZG-CLASS-ID: mo00 Received: from [192.168.0.22] (91-67-174-249-dynip.superkabel.de [91.67.174.249]) by smtp.strato.de (RZmta 33.3 DYNA|AUTH) with ESMTPSA id v03799q49CHt0Pd (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate); Fri, 9 May 2014 14:17:55 +0200 (CEST) Message-ID: <536CC7A9.9060305@gjlay.de> Date: Fri, 09 May 2014 14:18:49 +0200 From: Georg-Johann Lay User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130911 Thunderbird/17.0.9 MIME-Version: 1.0 To: GCC Patches , Denis Chertykov Subject: [patch, avr, committed]: Fix build warning for -1 in unsigned int initializers. X-IsSubscribed: yes http://gcc.gnu.org/ml/gcc-cvs/2014-05/msg00311.html Hi, applied this obvious patch to trunk in order to fix build warnings like these: gcc/config/avr/avr-fixed.md:434:59: warning: narrowing conversion of ‘-1’ from ‘int’ to ‘const unsigned int’ inside { } is ill-formed in C++11 [-Wnarrowing] Thanks, Johann gcc/ * config/avr/avr-fixed.md (round3): Use -1U instead of -1 in unsigned int initializers for regno_in, regno_out. operands[4] = gen_rtx_REG (mode, regno_in[(size_t) GET_MODE_SIZE (mode)]); Index: config/avr/avr-fixed.md =================================================================== --- config/avr/avr-fixed.md (revision 210271) +++ config/avr/avr-fixed.md (working copy) @@ -430,8 +430,8 @@ (define_expand "round3" } // Input and output of the libgcc function - const unsigned int regno_in[] = { -1, 22, 22, -1, 18 }; - const unsigned int regno_out[] = { -1, 24, 24, -1, 22 }; + const unsigned int regno_in[] = { -1U, 22, 22, -1U, 18 }; + const unsigned int regno_out[] = { -1U, 24, 24, -1U, 22 }; operands[3] = gen_rtx_REG (mode, regno_out[(size_t) GET_MODE_SIZE (mode)]);