From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 51D553857BA2; Tue, 19 Dec 2023 23:35:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 51D553857BA2 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1703028909; bh=lKqZ6YX0Yg8+aJZCNIPAOhDzQOZ9C7IcUQ1zCJ9uqcE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=NAdgZ1ewUsNLvJcQc1vtj26pN2ptatxXUlujz7wyIyWGZbPJXigEWihQE68ofBd0y wAYR3cGCMhXtv00Njb534NnPK52NQVrKAQvSn+KvHxb04dS2VRKWoC6XLXTR0aiUz6 nka+P7EExhRvpF/xySbTuWSDieRkfWxGOzJx86rg= From: "hp at sourceware dot org" To: gdb-prs@sourceware.org Subject: [Bug sim/31181] sim: cris: decode unused base_insn variable warnings Date: Tue, 19 Dec 2023 23:35:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: sim X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: hp at sourceware dot org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D31181 --- Comment #3 from Hans-Peter Nilsson --- (In reply to Mike Frysinger from comment #2) > i'd be inclined to agree if things were more widespread, but these 5 are = the > only unused variable warnings left in the sim tree at this point. i'm not > super keen on adding -Wno-error=3Dxxx to makefiles because we should test= the > flag is supported by the compiler before adding it, and that makes the bu= ild > logic quite a bit more complicated. >=20 > also, in the process of cleaning the sim code of unused variable warnings, > it's uncovered a few actual bugs where people made thinkos/typos in the c= ode > -- they intended to use a particular var after setting it up, but then > omitted it or used a very similarly named var. that scenario can come up= in > the generated code logic too, although it hasn't as of yet. My point is that *these two files* would be the only files that got -Wno-error=3Dunused-variable. You say, you've looked for, but not found, a bug-reason why the warnings appear, in this generated code, presumably including looking at the generator. I don't see the point in going deeper,= but feel free. --=20 You are receiving this mail because: You are on the CC list for the bug.=