https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106527
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 but 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 issue 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