From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B4D093858D35; Wed, 1 Nov 2023 19:22:54 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B4D093858D35 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1698866574; bh=53D2wNAyMwikQktDhSeQKcVG34s0Kxrkd2dl16tIc8U=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aJgtoBia/YLI+X/g5RhtR8IwTv3huFBM7gBJDlTP2aRdZxxDNs7AWtVy66xc6ufgu GGJFGCKiMSvFTFwQn3OKhBrUpmaSPxBte/XqWfIUNqaImU68WEcd0Ir1VfEEsrKflw YQvqS3l3mF/M3NoX7MMYfjq0wYkhQio4udcpx460= From: "tkoenig at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/110116] [12/13/14 Regression] ICE on valid code at -O3 on x86_64-linux-gnu: verify_gimple failed Date: Wed, 01 Nov 2023 19:22:52 +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.1 X-Bugzilla-Keywords: ice-checking, 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: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 12.4 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=3D110116 --- Comment #2 from Thomas Koenig --- Looks like this has been fixed in the meantime: tkoenig@gcc188:~> gcc -O3 small.c=20 small.c: In function 'main': small.c:6:21: warning: iteration 2147483646 invokes undefined behavior [-Waggressive-loop-optimizations] 6 | for (b =3D 1; b; b++) | ~^~ small.c:6:17: note: within this loop 6 | for (b =3D 1; b; b++) | ^ tkoenig@gcc188:~> gcc --version gcc (GCC) 14.0.0 20231101 (experimental) [master r13-4915-g9b111debbfb] Copyright (C) 2023 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. tkoenig@gcc188:~> cat small.c=20 unsigned char a[5]; int b, d; char c; int main() { if (d) { for (b =3D 1; b; b++) c &=3D d =3D 1; for (; d < 5; d++) c &=3D a[d]; } return 0; } Still interesting which revision fixed it.=