From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 6D4AB3858D3C; Fri, 29 Dec 2023 19:14:21 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 6D4AB3858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1703877261; bh=eymRa0YqzTttHhXdCzBNGz+WYxRGbQ8+hLpiAEZxyzw=; h=From:To:Subject:Date:From; b=nZXhlLdAHu/whNayFFSGhWjkTzDc4IdaWeDYQnIfO/6j9vlQitbyukIX6yr66p+z3 Zq85eO79ph0Rr2nrOahDfnCMah1x/46qxbJkDuGm0R6RFFNlSB+WOMvxMa7OSJJ8ea Iv7M2s3yy0kBu1i4R5biNHzODfJlHQw2EqAqcKBE= From: "dcb314 at hotmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113172] New: ice in move_early_exit_stmts Date: Fri, 29 Dec 2023 19:14:20 +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: dcb314 at hotmail dot com 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 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=3D113172 Bug ID: 113172 Summary: ice in move_early_exit_stmts Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- For this C code: int tswchp_2; short cpy_buf[8]; void ts_endcmd() { int i =3D 0; for (; i < 8 && i < tswchp_2; i++) cpy_buf[i] =3D i; } compiled by recent gcc trunk, does this: cvise $ ~/gcc/results/bin/gcc -c -O3 bug994.c cvise $ ~/gcc/results/bin/gcc -c -O3 -march=3Dznver3 bug994.c during GIMPLE pass: vect bug994.c: In function =E2=80=98ts_endcmd=E2=80=99: bug994.c:3:6: internal compiler error: Segmentation fault 3 | void ts_endcmd() { | ^~~~~~~~~ 0xeeade9 crash_signal(int) ../../trunk.20210101/gcc/toplev.cc:316 0x11a8e63 gsi_prev(gimple_stmt_iterator*) ../../trunk.20210101/gcc/gimple-iterator.h:236 0x11a8e63 move_early_exit_stmts(_loop_vec_info*) ../../trunk.20210101/gcc/tree-vect-loop.cc:11807=