From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 28C3E3858D3C; Thu, 22 Jun 2023 17:31:52 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28C3E3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1687455112; bh=4l2zKf3Nb49Av9Hyf+z87S0faGVRepvCZYcjrij6lhI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=xboYib7Xnp8HVHuGHafuEKg/YE6Gzj8DtuO6J4UWFLNvlCTF6MO/Pa3hGPZnRVViV RRp+dV9FAwChOZcEyAkiq3cxzrtbjq+Fs3bGB/NhAvzMRyf5bgLyjxv7EBkgGys3P/ q9RvuYMEy18gO0cwUWT22jFfB5h1JHQOXJOU4Vdw= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/110368] Incorrect "is used uninitialized" warning message Date: Thu, 22 Jun 2023 17:31:51 +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: 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: 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 --- Comment #2 from Andrew Pinski --- The warning is due to the code having undefined behavior in it. The code st= ores in a variable as int but reads part of it via short type. That is an aliasi= ng violation.=