From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 22B183858C50; Mon, 23 Oct 2023 06:08:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 22B183858C50 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698041320; bh=xQp6hCXXZ0ichE4X6ErVOmd1PBOuFeNkdiv7HPOFalw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=EtS06pPeIyJ7bBnNhqLaGmGKZjeGbO6ao2eYFzpAhcAcc5w/dqDdO23cRaTC3Qj2P +GIRAO6pJLiQVaejbrb/K0JKnazZwPG4xU02moYLr/5u5BanN8u4MPn+0CHgoQ1gQM FZdPcyqfRi1IfQeReGXmK72HuIGr6LnKNXfa2hsE= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111917] [11/12/13/14 Regression] ICE in as_a, at is-a.h:255 since GCC-7 Date: Mon, 23 Oct 2023 06:08:39 +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: ice-on-valid-code, needs-bisection X-Bugzilla-Severity: normal X-Bugzilla-Who: tkoenig 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: 11.5 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=3D111917 --- Comment #4 from Thomas Koenig --- (In reply to Andrew Pinski from comment #3) > If someone is worried about uninitialized variables or an executed infini= te > loop, this also ICEs at -O3: > ``` > long t; > long a() { > long b =3D t, c =3D t; > for (; b < 31; b++) > c <<=3D 1; > return c; > } > long long t1; > static=20 > int d() { > if (!t1) > return 0; > e: > f: > for (; a();) > ; > goto f; > return 0; > } > int main() { d(); } > ``` It does not ICE with aa90195, for which the original test case ICEs, so it is something else (although probably related).=