From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 288F4385840B; Sat, 13 Nov 2021 02:21:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 288F4385840B From: "haoxintu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/103219] New: [12 Regression] ICE Segmentation fault at -O3 (during GIMPLE pass: unrolljam) Date: Sat, 13 Nov 2021 02:21:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: ice-on-valid-code X-Bugzilla-Severity: normal X-Bugzilla-Who: haoxintu at gmail 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 keywords 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2021 02:21:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D103219 Bug ID: 103219 Summary: [12 Regression] ICE Segmentation fault at -O3 (during GIMPLE pass: unrolljam) Product: gcc Version: 12.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: haoxintu at gmail dot com Target Milestone: --- Hi all. I am not sure whether there is a dup but it appears to be a recent regressi= on issue. $cat small.c int a, b, c, e; int d[10]; int main() { if (c) if (f()) { g(); if (e) { a =3D 0; for (; a !=3D 6; a =3D a + 2) { b =3D 0; for (; b <=3D 3; b++) d[b] &=3D 1; } } } return 0; } $gcc -w -O3 during GIMPLE pass: unrolljam small.c: In function =E2=80=98main=E2=80=99: small.c:3:5: internal compiler error: Segmentation fault 3 | int main() { | ^~~~ 0xc290af crash_signal ../../gcc/toplev.c:322 0x17bfea7 tree_loop_unroll_and_jam ../../gcc/gimple-loop-jam.c:596 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. $gcc -v Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/media/haoxin/SeagateData/haoxin-data/dut-research/co= mpilers/gcc/build/bin/../libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper Target: x86_64-pc-linux-gnu Configured with:../configure --prefix=3D/home/haoxin/haoxin-data/dut-research/compilers/gcc/build/ --enable-bootstrap --enable-checking=3Drelease --enable-languages=3Dc,c++ --enable-multilib Thread model: posix Supported LTO compression algorithms: zlib gcc version 12.0.0 20211112 (experimental) (GCC)=20 Can also check here: https://godbolt.org/z/r7TKr8MxW Thanks, Haoxin=