From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id D77B83852C47; Fri, 18 Nov 2022 08:10:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org D77B83852C47 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1668759058; bh=oQnLVY2O7BkKBBFOcykSd9MdE8R28aKcNy46HlAULl0=; h=From:To:Subject:Date:In-Reply-To:References:From; b=f3MZDj9B7Spribl7oKiDxZmCBqgyJWIGzyNBSxL4ulAZXhDrAM0a8Auh0rHbUznVA tX8hkSHow536++PYWtOsPLoSOg7i0UtW+xX6ts9y+mdVigKDBwtehmDddXO9tYfUg/ ShIJmhCUFOiirzEHactVViqoKqdyDDKLmDMEykic= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/107743] expmed: extract_bit_field_1: maybe-uninitialized warning Date: Fri, 18 Nov 2022 08:10:57 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth 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=3D107743 --- Comment #1 from Richard Biener --- Is that with release checking? The code around this is /* Extraction of a full MODE1 value can be done with a subreg as long as the least significant bit of the value is the least significant bit of either OP0 or a word of OP0. */ if (!MEM_P (op0) && !reverse && op0_mode.exists (&imode)) { rtx sub =3D extract_bit_field_as_subreg (mode1, op0, imode, bitsize, bitnum); if (sub) return convert_extracted_bit_field (sub, mode, tmode, unsignedp); } where template template inline bool opt_mode::exists (U *mode) const { if (m_mode !=3D E_VOIDmode) { *mode =3D T (typename mode_traits::from_int (m_mode)); return true; } return false; } so it's unobvious how 'imode' is uninitialized.=