From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Archive: List-Post: List-Help: Sender: gcc-patches-owner@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 12:18:00 -0000 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. Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-05/txt/msg00589.txt.bz2 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. 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)]); operands[4] = gen_rtx_REG (mode, regno_in[(size_t) GET_MODE_SIZE (mode)]);