From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D2A5D3858C50; Thu, 3 Aug 2023 22:46:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D2A5D3858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1691102809; bh=luN4WbtMKrsIbBOK/e8BrKJdGowRHwtxYJn62Nxe5LE=; h=From:To:Subject:Date:From; b=lyDPtvoCUgGcurGTCuCxyEeLgf9U2Qs+08nWPJSbMm7PEUIpEYp/pTg09dIISCrHl X/ZMQJReV31DX0CZu5RwEMZRckBa2w+NZjUVuUPDeQvk2H1MVRQuAZirbZ4oc4j3Gk dAMjcZ8jx8Tlrozh2x6ylaN3adJTAJj2qD/NNlVk= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110896] New: [12/13/14 Regression] gcc.dg/ubsan/pr81981.c is xfailed Date: Thu, 03 Aug 2023 22:46:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: diagnostic, xfail X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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 keywords bug_severity priority component assigned_to reporter blocked 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D110896 Bug ID: 110896 Summary: [12/13/14 Regression] gcc.dg/ubsan/pr81981.c is xfailed Product: gcc Version: 14.0 Status: UNCONFIRMED Keywords: diagnostic, xfail Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: pinskia at gcc dot gnu.org Blocks: 24639 Target Milestone: --- The original issue in PR 81981 is fixed. The problem here is we don't even = warn without -fsanitize=3Dundefined too. Testcase from that PR: ``` int foo (int i) { int t[1], u[1]; int n =3D 0; if (i) { t[n] =3D i; u[0] =3D i; } return t[0] + u[0]; } ``` we don't warn about `u[0]` being unintinialized with just `-O2 -Wall -Wextr= a` starting in GCC 12 via r12-4625 (the fix for pr102681). That is the issue is unrelated to -fsanitize=3Dundefined now. Referenced Bugs: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D24639 [Bug 24639] [meta-bug] bug to track all Wuninitialized issues=