https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105988

            Bug ID: 105988
           Summary: [10/11/12/13 Regression] ICE in
                    linemap_ordinary_map_lookup, at
                    libcpp/line-map.cc:1064
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gs...@t-online.de
  Target Milestone: ---

Started with r12, using file gcc.dg/pr59020.c :
(gcc configured with --enable-checking=yes)


$ gcc-13-20220612 -c pr59020.c -O2 -da -fmodulo-sched
$ gcc-13-20220612 -c pr59020.c -O2 -da -fmodulo-sched -fno-tree-dce
during RTL pass: sms
dump file: pr59020.c.297r.sms
pr59020.c: In function 'f':
pr59020.c:15:1: internal compiler error: in linemap_ordinary_map_lookup, at
libcpp/line-map.cc:1064
   15 | }
      | ^
0x1eb9ca4 linemap_ordinary_map_lookup
        ../../libcpp/line-map.cc:1064
0x1ebb07d linemap_macro_loc_to_exp_point
        ../../libcpp/line-map.cc:1561
0x1e93586 expand_location_1
        ../../gcc/input.cc:243
0x1e950df expand_location(unsigned int)
        ../../gcc/input.cc:956
0x9b3b4b insn_location(rtx_insn const*)
        ../../gcc/emit-rtl.cc:6558
0x1d09e6a dump_insn_location
        ../../gcc/modulo-sched.cc:1250
0x1d0dc02 sms_schedule
        ../../gcc/modulo-sched.cc:1418
0x1d1056f execute
        ../../gcc/modulo-sched.cc:3358

Reply via email to