From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 262373858C31; Mon, 29 May 2023 12:01:16 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 262373858C31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1685361676; bh=bAkXzOArXtm70MDUSqD+UCYCw94HbXhIk7OhKluoRvQ=; h=From:To:Subject:Date:In-Reply-To:References:From; b=d7s+32xgi0WZLMaOzf2KMFPVGKgxRg1F5gesAXPFxPw3CPj3ecPLkxgWOdvRnMIn3 2MxfjW9eIQaUsLqn0tENEULAWiVF0WNVqu+X2VmhKl3BMcygIxXQ6zZ/pI4WebRHiK coL0TtJjrB2vYo8arr16KL06kYFeitx8vJRHucNA= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110020] [13/14 Regression] SHA2 misscompilation at -O3 Date: Mon, 29 May 2023 12:01:15 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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 resolution bug_status 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=3D110020 Jakub Jelinek changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jakub at gcc dot gnu.org Resolution|--- |INVALID Status|UNCONFIRMED |RESOLVED --- Comment #1 from Jakub Jelinek --- This is clearly invalid testcase. It initializes the w array with i =3D=3D 0, then w goes out of scope, then = it reappears uninitialized in the scope with i =3D=3D 1 and the uninitialized = value is used. You'd need to move the w declaration before the outer loop to make it well defined.=