From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 43B0A3858409; Wed, 16 Aug 2023 20:39:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 43B0A3858409 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1692218387; bh=1DKqWBch/zPdaeWy+nNWi6ZWIs65L59W81CT2xAOGtU=; h=From:To:Subject:Date:From; b=s8KQ0tTQsCWw0KetyLKrlmtf7Hh8jzFSBuwszc5USZnm5ifQxro3F94wHwITN2TG4 L5/8IoPBFCvlY/hift9lEZ94NQ3svC3aBk5y9/6CO534wn+D+TjAdjz9ILEpoDk698 qeR0aLUTdpTUIP1WyPtDsf9opinVLx5C2W3Y5Kvc= From: "shaohua.li at inf dot ethz.ch" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/111043] New: ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 Date: Wed, 16 Aug 2023 20:39:46 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: shaohua.li at inf dot ethz.ch X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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=3D111043 Bug ID: 111043 Summary: ICE in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: shaohua.li at inf dot ethz.ch CC: jh at suse dot cz Target Milestone: --- gcc crashes at -O2 on the following test case. Bisected to r14-2675-gef28aadad6e, could be similar to bug 110769 and bug 110641, but the bisection points are different. Compiler explorer: https://godbolt.org/z/Ghza4o7d4 $ cat a.c int a, b, c, d; short e; int f() { a =3D 1; while (a) { c =3D b % a; b =3D a; a =3D c; } return b; } int g() { d =3D 0; for (; d <=3D 1; d++) e =3D 0; for (; f() + d - 3 + e; e =3D e + 8) ; } int main() {} $ $ gcc-r14-2675-gef28aadad6e -O2 a.c during GIMPLE pass: ch_vect a.c: In function =E2=80=98g=E2=80=99: a.c:12:5: internal compiler error: in adjust_loop_info_after_peeling, at tree-ssa-loop-ivcanon.cc:1068 12 | int g() { | ^ 0x21789ce internal_error(char const*, ...) ???:0 0x9d3f84 fancy_abort(char const*, int, char const*) ???:0 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. $=