From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C09C43858426; Sat, 7 Oct 2023 06:36:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C09C43858426 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696660609; bh=5JZTBYRKFKb6qKZ9Bli6K/8DRazhOncaOSwsWMK7Voo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=glzepeHCdyH5am3d4EufxzvM87QAoFCclq/oiiYz4wvac5C3CbxmNIjhdTO+8E9zn L3kou9VBsu3cEfJHrg1tukRJCl3qyJKVdczQLOXxbOGH8xHTImg5WW7u3KiZFDEapy Th9on91lzSu61Lba0Uzv83YmoGtKmcw6RzFtUuE0= From: "xry111 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110368] Incorrect "is used uninitialized" warning message Date: Sat, 07 Oct 2023 06:36:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: xry111 at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: INVALID 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: cc Message-ID: In-Reply-To: References: 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=3D110368 Xi Ruoyao changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xry111 at gcc dot gnu.org --- Comment #8 from Xi Ruoyao --- (In reply to Sam James from comment #7) > That said, I suppose we should do better here with -Wstrict-aliasing. No > level detects it. I think it's very difficult to make -Wstrict-aliasing really useful. A sanitizer at runtime would be much more useful but the develop of such a sanitizer seems stalled (https://discourse.llvm.org/t/reviving-typesanitizer-a-sanitizer-to-catch-t= ype-based-aliasing-violations/). For now we can only compare the output with or without -fno-strict-aliasing= .=20 And we are already saying "try -fno-strict-aliasing" in the bug report guidance.=