From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 84CDB3857BA4; Tue, 12 Sep 2023 21:15:51 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 84CDB3857BA4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1694553351; bh=d6CeX1D2+eJirE4gKXQ8FWCAJPuVv9xfKCU21/tPQFY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=usd3ER8+iDwW4WS4YtHdJ9Phal+IgVdxn+CLLiIvFMDCwkzcJfWY1iPFEmcDLuAZU WUKeOjb+4kfA1t1d+GjpjEVNMm6yAE7OMlBJJZFAJk0eSQsL96kULoGXvvvdmqiRhG 2NW1BvgttrXmHUX/ABEM5n0MpYF78ASYdKHKs++Q= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111397] Spurious warning "'({anonymous})' is used uninitialized" when calling a __returns_twice__ function (-Wuninitialized -O2) Date: Tue, 12 Sep 2023 21:15:51 +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.2.0 X-Bugzilla-Keywords: diagnostic 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=3D111397 --- Comment #1 from Andrew Pinski --- Looks loop copy header change which allowed the warning not to happen. The warning is about the argument of test_setjmpex. Because GCC does not realize __builtin_frame_address cannot jump to the test_setjmpex ... In the case of GCC 12-13, the copy of the loop header happens during thread-full rather than earlier and inserts: _4(ab) =3D _11(D); Which is what is warned about. _11(D) does not get proped into the phi ...=