From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CFC4C3858415; Wed, 6 Oct 2021 08:39:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CFC4C3858415 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/102608] [12 regression] Recent change to VN causes bogus Wuninitialized warnings & kernel build failures Date: Wed, 06 Oct 2021 08:39:21 +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: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: version cf_reconfirmed_on assigned_to bug_status everconfirmed 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 06 Oct 2021 08:39:21 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D102608 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Version|11.0 |12.0 Last reconfirmed| |2021-10-06 Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot = gnu.org Status|UNCONFIRMED |ASSIGNED Ever confirmed|0 |1 --- Comment #2 from Richard Biener --- (In reply to Andrew Pinski from comment #1) > old32_34 =3D .DEFERRED_INIT (4, 2, 0); >=20 > ... >=20 > - _24 =3D .DEFERRED_INIT (4, 2, 0); > - __res =3D{v} _24; > + __res =3D{v} old32_34; >=20 >=20 > # 68 "../arch/mips/include/asm/cmpxchg.h" > This is due to __typeof(*((volatile u32 *)ptr)) __ret >=20 >=20 >=20 > The warning is kinda of correct but wrong as it uses the wrong decl :). >=20 > Fre maybe should be disabled for DEFERRED_INIT .... Hmm, I did consider that but then I thought it wouldn't matter (there were = no testsuite FAILs). But sure, I can easily make .DEFERRED_INIT always produce a VARYING value.=