From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CHMtAjlsVWOuxg8AWB0awg (envelope-from ) for ; Sun, 23 Oct 2022 12:30:49 -0400 Received: by simark.ca (Postfix, from userid 112) id 056241E112; Sun, 23 Oct 2022 12:30:49 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=CsC/839d; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id A59721E0D5 for ; Sun, 23 Oct 2022 12:30:48 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 0B931385275C for ; Sun, 23 Oct 2022 16:30:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0B931385275C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666542648; bh=5T3QryPrBZkoZlgNEnGDpPyP5cSp+nJS48EU533qMGk=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=CsC/839doNQ1V/6VK9i+95JdWJ9/DGTBwvVIGMVIvESR7lQnBbPdmdH8OQtIvV+hr h3e6KcorOEaX71HlNh3qOzrgLsk+FfT2D9smt/iECtjhYVO8ZCP03lAvlAnbOieKPT IxCTyj6j1RqdNVSFUH1vY56ma0MSFN1TxBRRVGqY= Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) by sourceware.org (Postfix) with ESMTP id C958B385355D for ; Sun, 23 Oct 2022 16:30:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org C958B385355D Received: by smtp.gentoo.org (Postfix, from userid 559) id 7DF04340B9E; Sun, 23 Oct 2022 16:30:25 +0000 (UTC) Date: Sun, 23 Oct 2022 21:00:59 +0545 To: Tsukasa OI Subject: Re: [PATCH 38/40] sim/bpf: Add explicit casts Message-ID: Mail-Followup-To: Tsukasa OI , Andrew Burgess , Nick Clifton , gdb-patches@sourceware.org References: <6e5213e625e6c309f2baaae5e6a3dad20155e696.1666258361.git.research_trasio@irq.a4lg.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="Vi6q3TLi6B/kdoSK" Content-Disposition: inline In-Reply-To: <6e5213e625e6c309f2baaae5e6a3dad20155e696.1666258361.git.research_trasio@irq.a4lg.com> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Mike Frysinger via Gdb-patches Reply-To: Mike Frysinger Cc: Nick Clifton , gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --Vi6q3TLi6B/kdoSK Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 20 Oct 2022 09:32, Tsukasa OI wrote: > Clang generates a warning if there is an enum value with a mismatching ty= pe > without an explicit cast ("-Wenum-conversion"). > On the default configuration, it causes a build failure > (unless "--disable-werror" is specified). >=20 > This commit adds explicit casts on the BPF instruction decoder. >=20 > Note: > This commit touches CGEN-generated files directly. > Modifying CGEN is the best way to prevent this issue from happening again > but there is another known regression in CGEN to resolve. same feedback as what i posted to "[PATCH 14/40] sim/frv: Add explicit cast= s" -mike --Vi6q3TLi6B/kdoSK Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmNVWq8ACgkQQWM7n+g3 9YFf2Q/8C5OigtDMoTbQf24SYalBbB+6VK6yX1CHGwW2DQAoefZSmUQkzt7gkuDB uucR1uToDSNaSaPbFdoJxakSG+FLoqOZU6HP1x2bkxUb+G6KcQtdcesmMdDANXSK Q3nbCHDXV2oUsGL6OMTAplTdXpUTYZqz1xcQs+iPG1UG1vti0Naz6NEkY3DTHwN5 n0AFbcPBF4IJB0QIebKIjuL179i0U50ZIkLKIsqvmtwuIByEkwCW2YT9fCXp+f0V r3iB/9gXg7krLtPx89cJ4yON+T7MROmUYLyT2HTERlkwYkQoxHOt1a2jl4yJZgA8 XQFvwK/5iIgYo1MS1WyiIqgqKLedqC01uNHIEqH+7x17GW6XqSj0DSOysbf0flll tbJeKM/CZ9/HXHPU+NMAvDK7ofsT/prL2fYdFF8QCUEoB8M93s/31vON188HYLmG oDHOaaKXxn4NK9V00DtCr6sCWcnrTPU98I7tgupbIqWRg39fYJkPqeVMGwNlCJjW HRKiC2QDAn+BsB4mJ/lPS9gtX0kdiZ1W4w6s6LHIwDd6HxIy/zh40yJC9xSGuU+p sGvvlGqpEjrAiTsIqueiuSTkJ9kNR5h4rU4EjwTD2ULO5b/uXSLQnkgpAyj88vET rh0V3yF5k9g6OIeCxDBvGIfssMssbZ3Ig96OLoDbDJYFI05RCEA= =FOru -----END PGP SIGNATURE----- --Vi6q3TLi6B/kdoSK--