From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id TRmUHpOYjWHuRQAAWB0awg (envelope-from ) for ; Thu, 11 Nov 2021 17:26:27 -0500 Received: by simark.ca (Postfix, from userid 112) id 685DA1F0BD; Thu, 11 Nov 2021 17:26:27 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) 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.2 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 647C41ECEB for ; Thu, 11 Nov 2021 17:26:26 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 83CEF385C017 for ; Thu, 11 Nov 2021 22:26:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 83CEF385C017 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1636669585; bh=nDaBOUmWolwBqypKO6kkgk1awuZsEiHhY/EQhfb68Fk=; 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=eiCpCzcG5lj0anjp9Pz/ORrs7g3aPYSws/EhpdN+7ItMNaZIIFPQx18XMApm3MKcX ZlRxF45+i0XLfKFOePfxCVoCP5kdIM5V0VXibG9+gdC8t5aOdeb3yWCRhQpSpQTWAV iL4g7vplkr8b5TD7I1E+qkXpMOMQoW8tlwRqbZGI= Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) by sourceware.org (Postfix) with ESMTP id 84AD63858014 for ; Thu, 11 Nov 2021 22:25:41 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 84AD63858014 Received: by smtp.gentoo.org (Postfix, from userid 559) id 04440342CE6; Thu, 11 Nov 2021 22:25:40 +0000 (UTC) Date: Thu, 11 Nov 2021 17:25:44 -0500 To: Luis Machado Subject: Re: [PATCH 1/6] sim: sh: rework register layout with anonymous unions & structs Message-ID: Mail-Followup-To: Luis Machado , gdb-patches@sourceware.org References: <20211107003254.4298-1-vapier@gentoo.org> <68a4c7ee-700a-22f5-62ad-9257de03e9f9@linaro.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="O1ThNPL5UfGV4gzr" Content-Disposition: inline In-Reply-To: <68a4c7ee-700a-22f5-62ad-9257de03e9f9@linaro.org> 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: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" --O1ThNPL5UfGV4gzr Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 11 Nov 2021 09:41, Luis Machado wrote: > I can't pinpoint the exact SH patch, but builds are broken for=20 > --enable-targets=3Dall in Ubuntu 18.04 with GCC 7.5: pretty sure the warnings have always been there for you, we just turned -Werror in more cases recently > binutils-gdb/sim/sh/interp.c: In function =E2=80=98ppi_insn=E2=80=99: > ./ppi.c:875:21: error: assuming signed overflow does not occur when=20 > assuming that (X + c) < X is always false [-Werror=3Dstrict-overflow] > carry =3D res < Sy; > ~~~~^~~~ > ./ppi.c:849:21: error: assuming signed overflow does not occur when=20 > assuming that (X - c) > X is always false [-Werror=3Dstrict-overflow] > carry =3D res > Sy; > ~~~~^~~~ > ./ppi.c:823:21: error: assuming signed overflow does not occur when=20 > assuming that (X + c) < X is always false [-Werror=3Dstrict-overflow] > carry =3D res < Sx; > ~~~~^~~~ > ./ppi.c:797:21: error: assuming signed overflow does not occur when=20 > assuming that (X - c) > X is always false [-Werror=3Dstrict-overflow] > carry =3D res > Sx; > ~~~~^~~~ > binutils-gdb-arm64-bionic/sim/../../../repos/binutils-gdb/sim/sh/interp.c= :=20 > In function =E2=80=98sim_resume=E2=80=99: > ./ppi.c:1178:28: warning: =E2=80=98res=E2=80=99 may be used uninitialized= in this=20 > function [-Wmaybe-uninitialized] > MACL =3D DSP_R (z) =3D res; > ./ppi.c:44:7: note: =E2=80=98res=E2=80=99 was declared here > int res, res_grd; > ^~~ how exactly are you building things ? we don't enable -Wstrict-overflow. -mike --O1ThNPL5UfGV4gzr Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAABCAAdFiEEuQK1JxMl+JKsJRrUQWM7n+g39YEFAmGNmGgACgkQQWM7n+g3 9YESig//UARkhCplcWjichunsVzzHbYenXsS2mTcTqVgnH4KxswnpeQ3BN6lQBTl rEveZElE9bxma1a5dxrcveu1ix35g+pok6jnjdIChBlW40eb/THGmVT2aNtopQ8K FCehn3LLPxhjlsSQPPKWWAtMRzeznUjqWQ78vhrQfSLxaq2h4utvBmL0o7acIoQj U8XZuAZ1rQwGSPwtt6mZaUB/C/MncbdGIviOhCm+jGsbtCdgUB+Xko7jPjAaJVgg ml7udTyYyniAYZnS2dqX3jnAbMIzU3VvR7ga9N3nLpk3885d84aoyKnl38Lqhy0Y WJsHN84MmCST6w5VNf5FmRtDslcjhAaLRpzuwYv6qM4tWNN9N+Q7EStkXHsv+U4T 8yCXsVzVNDuhxKQ1Y0r/5EJlN1Uyrm/E39Ygz0PHEW7AIlrygC0WG3fMSR/kqwmv 6tTvCTTIpFOOfBIWEzKHPCLdgY9cOPiB52pkRJagHVONRdnak8diJPSeopOlbNjN 0t51MwJrcktZd7COQxw2CGHOur+lHwF744W5SLHDL3AWzG9bzEfxkWGMWA1P7/Z8 mb7bNJlPnMsCHz0A+NkPn0ffcxcA14jg2tLDEzSQv+1l/29SxDwjUO9KpmPDIyDg DBeWtm+1yPBSqyO03zHCGRpDs19XR7A0ttBwFQUTtP8ZcIbvoC0= =gFxc -----END PGP SIGNATURE----- --O1ThNPL5UfGV4gzr--