From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9B7563858C3A; Wed, 8 Feb 2023 11:45:08 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9B7563858C3A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1675856708; bh=qvrWR68iPn0t6iLb+lgMpYt5nhitzRW6FQ9awOlJkrc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=oYUZxDxwdVQborguqakS0UZmLlmZ69eAMMvOv81fnGEYSePrYMfLi+JmXB+4JcZG5 5pniIV5gegu11bZnM84Ii3VUuo1Jyjiy/IfJOfdKzt8Tclt9TAcGcRJR9VNhm3GjJa SQHLvfeAjwWLG4xfOu5k5Idc500YDoCdfZIYqAF8= From: "asolokha at gmx dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/106249] [13 Regression] ICE in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645 since r13-1450-gd2a898666609452e Date: Wed, 08 Feb 2023 11:45:06 +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.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: asolokha at gmx dot com X-Bugzilla-Status: REOPENED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status resolution 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=3D106249 Arseny Solokha changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|FIXED |--- --- Comment #11 from Arseny Solokha --- Actually, testcase from comment 0 still ICEs for me, as well as its slightly modified version: subroutine foo() implicit none integer :: x integer :: a(0:1) 10 x =3D x + 1 20 if ((a(x) .ne. (-1)) .or. (a(x + 1) .ne. (-1))) then x =3D x + 1 go to 20 end if call undefined() go to 10 return end subroutine foo % gfortran-13 -O1 -fpeel-loops -funreachable-traps -c comment0.f during GIMPLE pass: cunroll comment0.f:1:23: 1 | SUBROUTINE YYPARS(LSTACK,YYPS,YYSTAT) | ^ internal compiler error: in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645 0x7804b7 check_loop_closed_ssa_def =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-manip.cc:645 0x10fc384 check_loop_closed_ssa_bb =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-manip.cc:659 0x10fd746 verify_loop_closed_ssa(bool, loop*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-manip.cc:695 0x10fd746 verify_loop_closed_ssa(bool, loop*) =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-manip.cc:679 0x10e5461 tree_unroll_loops_completely =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-ivcanon.cc:1499 0x10e54d1 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-ivcanon.cc:1603 0x10e54d1 execute =20=20=20=20=20=20=20 /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/gcc/tr= ee-ssa-loop-ivcanon.cc:1593 % gfortran-13 -O1 -fpeel-loops -funreachable-traps -c comment11.f90 during GIMPLE pass: cunroll comment11.f90:1:14: 1 | subroutine foo() | ^ internal compiler error: in check_loop_closed_ssa_def, at tree-ssa-loop-manip.cc:645 % gfortran-13 -v Using built-in specs. COLLECT_GCC=3Dgfortran-13 COLLECT_LTO_WRAPPER=3D/usr/libexec/gcc/x86_64-pc-linux-gnu/13/lto-wrapper Target: x86_64-pc-linux-gnu Configured with: /var/tmp/portage/sys-devel/gcc-13.0.1_p20230205/work/gcc-13-20230205/config= ure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/13 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/13/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/13 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/13/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/13/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/13/include/g++-v13 --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/13/python --enable-languages=3Dc,c++,fortran --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --disable-nls --disable-libunwind-exceptions --enable-checking=3Dyes --with-gcc-major-version-only --enable-esp --enable-libstdcxx-time --disable-libstdcxx-pch --enable-shared --enable-threads=3Dposix --enable-__cxa_atexit --enable-clocale=3Dgnu --disable-multilib --with-multilib-list=3Dm64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --without-zstd --enable-lto --with-isl --disable-isl-version-check --enable-default-ssp Thread model: posix Supported LTO compression algorithms: zlib gcc version 13.0.1 20230205 (experimental) (GCC)=