From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B3123858C41; Mon, 5 Feb 2024 00:45:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B3123858C41 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707093928; bh=V5eJXgJMR4ZQEMp8hAK4HEj0mmA0rRqiCNa5KBAftmo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=rOkybpHR7pfXb/L/lSO1GWQZM6rCsexJw0nOxCbu0Jr/kHYyJFkRWwaW2NLbYqVxj bJUAgboALuSQCgBQgZbXE2ftA7OffhWcYrEhItnL8kJ55gqAmR/32ssvR2M2KGN21g Cvl2v03VNDCBD6hu2YrKzeUF1ysUo/brspnN7SrI= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/113759] [14 regression] ICE when building fdk-aac-2.0.3 since r14-8680 Date: Mon, 05 Feb 2024 00:45:28 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: ice-checking, ice-on-valid-code, needs-reduction X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 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=3D113759 --- Comment #4 from Andrew Pinski --- Reduced slightly further: ``` extern short t[]; int f(int c, int b) { if (b < 0) __builtin_unreachable(); if (c <=3D 0) __builtin_unreachable(); int d; for (; c >=3D 0; c--)=20 { int a =3D b + c; d =3D t[a]; t[a] =3D 0; } return d; } ``` Note this requires IV-OPTS to get the IR that fails. It might be best if th= at IR is converted into a gimple testcase too.=