From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 9392C384C002; Fri, 23 Oct 2020 14:12:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9392C384C002 From: "stefansf at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/97545] New: ICE since commit 90e88fd376b and using selective-scheduling2 Date: Fri, 23 Oct 2020 14:12:03 +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: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: stefansf at linux dot ibm.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 attachments.created 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: Fri, 23 Oct 2020 14:12:03 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97545 Bug ID: 97545 Summary: ICE since commit 90e88fd376b and using selective-scheduling2 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: stefansf at linux dot ibm.com Target Milestone: --- Created attachment 49433 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D49433&action=3Dedit reduced failing example Since commit 90e88fd376b compiling the attached program on S/390 results in: $ gcc -O3 -fselective-scheduling2 t.i during RTL pass: sched2 : In function 'main': :67:1: internal compiler error: Segmentation fault 0x21e3323 crash_signal /home/stefansf/devel/gcc-2/src/gcc/toplev.c:330 0x171da48 NEXT_INSN(rtx_insn const*) /home/stefansf/devel/gcc-2/src/gcc/rtl.h:1469 0x28be551 s390_sched_init /home/stefansf/devel/gcc-2/src/gcc/config/s390/s390.c:15129 0x213c1f7 sel_region_init /home/stefansf/devel/gcc-2/src/gcc/sel-sched.c:6929 0x213e5d7 sel_sched_region(int) /home/stefansf/devel/gcc-2/src/gcc/sel-sched.c:7624 0x213e853 run_selective_scheduling() /home/stefansf/devel/gcc-2/src/gcc/sel-sched.c:7720 0x2104d47 rest_of_handle_sched2 /home/stefansf/devel/gcc-2/src/gcc/sched-rgn.c:3738 0x21050b1 execute /home/stefansf/devel/gcc-2/src/gcc/sched-rgn.c:3882 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See for instructions. whereas gcc -O3 -fselective-scheduling2 t.i -fevrp-mode=3Dlegacy works fine. It looks like as if current_sched_info->prev_head gets corrupted at some po= int. Adding a breakpoint prior the ICE and then trying to debug print results i= n: (gdb) call debug (current_sched_info->prev_head) (??? bad code 42405 )=