From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id E0DB93857413; Thu, 4 Aug 2022 15:02:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E0DB93857413 From: "rdapp at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/106527] New: ICE with modulo scheduling dump (-fdump-rtl-sms) Date: Thu, 04 Aug 2022 15:02:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rdapp at gcc dot gnu.org 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 cf_gcchost cf_gcctarget 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: Thu, 04 Aug 2022 15:02:39 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D106527 Bug ID: 106527 Summary: ICE with modulo scheduling dump (-fdump-rtl-sms) Product: gcc Version: 13.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: rdapp at gcc dot gnu.org CC: zhroma at gcc dot gnu.org Target Milestone: --- Host: s390 Target: s390 Hi, on s390 we are observing more and more problems with -fmodulo-sched. I initially tried debugging an -fcompare-debug failure with -fmodulo-sched bu= t we already ICE when just dumping via `-fdump-rtl-sms`. The problem occurs when compiling the test case gcc.dg/sms-compare-debug-1.c with gcc -O2 -fmodulo-sched sms-compare-debug-1.c -fdump-rtl-sms: sms-compare-debug-1.c:36:1: internal compiler error: in linemap_ordinary_map_lookup, at libcpp/line-map.cc:1064 36 | } | ^ 0x2694499 linemap_ordinary_map_lookup ../../libcpp/line-map.cc:1064 0x2694ef7 linemap_macro_loc_to_exp_point ../../libcpp/line-map.cc:1561 0x266a5c5 expand_location_1 ../../gcc/input.cc:243 0x266c54d expand_location(unsigned int) ../../gcc/input.cc:956 0x1513ecb insn_location(rtx_insn const*) ../../gcc/emit-rtl.cc:6558 0x24cb523 dump_insn_location ../../gcc/modulo-sched.cc:1250 0x24cb523 dump_insn_location ../../gcc/modulo-sched.cc:1246 0x24cf5d7 sms_schedule ../../gcc/modulo-sched.cc:1418 0x24d267f execute ../../gcc/modulo-sched.cc:3358 I didn't manage to simplify the test case further. It works fine on x86. The ICE does not seem to occur with GCC 11, therefore I can bisect the issu= e if it's of any help. Given the several other problems we're having with modulo scheduling I figured it's better to ask for general guidance here first. Regards Robin=