From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 31766 invoked by alias); 27 Aug 2018 18:00:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 31648 invoked by uid 89); 27 Aug 2018 18:00:01 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-25.0 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*f:sk:2018080, Hx-languages-length:1794, Wno-narrowing, wno-narrowing X-HELO: gateway22.websitewelcome.com Received: from gateway22.websitewelcome.com (HELO gateway22.websitewelcome.com) (192.185.46.126) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Mon, 27 Aug 2018 17:59:59 +0000 Received: from cm16.websitewelcome.com (cm16.websitewelcome.com [100.42.49.19]) by gateway22.websitewelcome.com (Postfix) with ESMTP id 2694F991C for ; Mon, 27 Aug 2018 12:59:58 -0500 (CDT) Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with SMTP id uLnjfI9iuaSeyuLnsfmYGF; Mon, 27 Aug 2018 12:59:57 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=m9+KIiU6vlb1jZRw1lY9UZC22HVCpgEATQeuiGOjT+w=; b=RsJ0yQO42OSIfVBicyzKfIoaJ4 yL0Ux/wLWf2IlBnLbMsi/833mFair7yK2/PEL80LVgqXNVYmwS3IdIUKVC9eL5DWof0IAjnGmHo1x hzwGl2Qz/i+oFsSIA6bHWS6o2; Received: from 75-166-85-72.hlrn.qwest.net ([75.166.85.72]:39818 helo=bapiya) by box5379.bluehost.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.91) (envelope-from ) id 1fuLnj-001EbN-9j; Mon, 27 Aug 2018 12:59:43 -0500 From: Tom Tromey To: Tom Tromey Cc: Pedro Alves , gdb-patches@sourceware.org Subject: Re: [PATCH 7/7] Remove -Wno-narrowing from warnings.m4 References: <20180808232016.12777-1-tom@tromey.com> <20180808232016.12777-8-tom@tromey.com> <8736uzzorn.fsf@tromey.com> Date: Mon, 27 Aug 2018 18:00:00 -0000 In-Reply-To: <8736uzzorn.fsf@tromey.com> (Tom Tromey's message of "Mon, 27 Aug 2018 11:46:04 -0600") Message-ID: <87y3cry9kh.fsf@tromey.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2018-08/txt/msg00665.txt.bz2 >>>>> "Tom" == Tom Tromey writes: Tom> I'm checking this in now. I spoke a little too soon. Rebasing showed a new instance of the warning, which I've fixed as appended. I'm pushing the series with this addition. Tom commit fb45de8f4132b8212bf88eaeef5eed7c9ca78a55 Author: Tom Tromey Date: Mon Aug 27 11:55:39 2018 -0600 Avoid -Wnarrowing warnings in aarch64-linux-tdep.c This avoids -Wnarrowing warnings in aarch64_linux_iterate_over_regset_sections, by adding some casts to int. 2018-08-27 Tom Tromey * aarch64-linux-tdep.c (aarch64_linux_iterate_over_regset_sections) : Add casts to int. diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 52321a8c64e..03a97a56899 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2018-08-27 Tom Tromey + + * aarch64-linux-tdep.c + (aarch64_linux_iterate_over_regset_sections) : Add + casts to int. + 2018-08-08 Tom Tromey * ppc64-tdep.c (insn_d, insn_ds, insn_xfx): Add casts to diff --git a/gdb/aarch64-linux-tdep.c b/gdb/aarch64-linux-tdep.c index 0d46acde5fa..dc2b89121a6 100644 --- a/gdb/aarch64-linux-tdep.c +++ b/gdb/aarch64-linux-tdep.c @@ -411,8 +411,8 @@ aarch64_linux_iterate_over_regset_sections (struct gdbarch *gdbarch, /* Create this on the fly in order to handle vector register sizes. */ const struct regcache_map_entry sve_regmap[] = { - { 32, AARCH64_SVE_Z0_REGNUM, tdep->vq * 16 }, - { 16, AARCH64_SVE_P0_REGNUM, tdep->vq * 16 / 8 }, + { 32, AARCH64_SVE_Z0_REGNUM, (int) (tdep->vq * 16) }, + { 16, AARCH64_SVE_P0_REGNUM, (int) (tdep->vq * 16 / 8) }, { 1, AARCH64_SVE_FFR_REGNUM, 4 }, { 1, AARCH64_FPSR_REGNUM, 4 }, { 1, AARCH64_FPCR_REGNUM, 4 },