From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C8BDE3848438; Fri, 3 Sep 2021 19:35:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C8BDE3848438 From: "jbglaw@lug-owl.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/102196] New: -Wmaybe-uninitialized: Maybe generate helpful hints? Date: Fri, 03 Sep 2021 19:35:43 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jbglaw@lug-owl.de X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Sep 2021 19:35:43 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102196 Bug ID: 102196 Summary: -Wmaybe-uninitialized: Maybe generate helpful hints? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jbglaw@lug-owl.de Target Milestone: --- Hi! I don't know the code behind -Wmaybe-uninitialized, but maybe it's possible= to show the path GCC considered when emitting this message? Right now, with Debian's "gcc-snapshot" compiler, I cannot successfully "ma= ke all-gas" for the microblaze-elf and mcore-elf targets (with current binutil= s at 0b99a66053fa1e93a984f75a7a3d5343c74882fb) due to a maybe-uninitialized warn= ing in md_assemble() which is kind of unpleasant to find the possible way throu= gh the assignment maze... My personal impression is that usually, the maybe-uninitialized warnings are quite helpful, but it's somewhat tedious to track them down. As I'm revampi= ng my toolchain testing efforts, these show up every now and then. Thanks, Jan-Benedict=