From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 064AE3858422; Thu, 15 Jun 2023 04:32:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 064AE3858422 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1686803558; bh=rVonazuOo1xDP0MndlkSj8PUtxSTFNfmjsKaktuqp2I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EypGWhT5DYACCX0Tm2dLHN62boo+l5i5/mToDt4gwxZIdulJvFVu2vkaeZsFN0ZQn XU+oMf1ucVP1zYL0yOky/5yDXItYL9AYStFHuh3a1zhqbceeYbzH6FyajPvTM6mCBj SZBlGVOfxxV1GibH6EGQt8bCsO2fcG8SSZZYLHew= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110251] [14 Regression] Hang at -O3 on x86_64-linux-gnu Date: Thu, 15 Jun 2023 04:32:37 +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: 14.0 X-Bugzilla-Keywords: compile-time-hog X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 14.0 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=3D110251 --- Comment #2 from Andrew Pinski --- Looks like it is uninitialized variable related. Here is one which shows that: ``` int a, b; char c; int d(int e) { int t =3D 0; if (e >=3D 'a') return e; return t; } int f(unsigned short e) { int t2; for (; e; a++) e &=3D e - 1; return t2; } void g() { for (; c < 1;) ; for (; f(c - 1); b =3D d(c)) ; } ``` If you initialize t2 to either 1 or 0, GCC will not hang.=