https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97972
Bug ID: 97972
Summary: [10/11 Regression] ICE in
moving_insn_creates_bookkeeping_block_p, at
sel-sched.c:2031
Product: gcc
Version: 11.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: [email protected]
Target Milestone: ---
Started with r10 between 20191117 and 20191124.
Needs option -O2 and testfile gcc.c-torture/compile/20161124-1.c :
$ gcc-11-20201122 -c 20161124-1.c -O2 -fsanitize=undefined
-fselective-scheduling2 -fvar-tracking-assignments
cc1: warning: var-tracking-assignments changes selective scheduling
during RTL pass: sched2
20161124-1.c: In function 'foo':
20161124-1.c:22:1: internal compiler error: Segmentation fault
22 | }
| ^
0xb42eff crash_signal
../../gcc/toplev.c:330
0xb0d5c7 moving_insn_creates_bookkeeping_block_p
../../gcc/sel-sched.c:2031
0xb0d5c7 moveup_expr
../../gcc/sel-sched.c:2199
0xb0d5c7 moveup_expr_cached
../../gcc/sel-sched.c:2544
0xb0fe1e move_op_ascend
../../gcc/sel-sched.c:6149
0xb11a57 code_motion_path_driver
../../gcc/sel-sched.c:6648
0xb11d3e code_motion_process_successors
../../gcc/sel-sched.c:6342
0xb11d3e code_motion_path_driver
../../gcc/sel-sched.c:6608
0xb12193 move_op
../../gcc/sel-sched.c:6702
0xb12193 move_exprs_to_boundary
../../gcc/sel-sched.c:5223
0xb12193 schedule_expr_on_boundary
../../gcc/sel-sched.c:5436
0xb15864 fill_insns
../../gcc/sel-sched.c:5578
0xb17613 schedule_on_fences
../../gcc/sel-sched.c:7353
0xb17613 sel_sched_region_2
../../gcc/sel-sched.c:7491
0xb181ad sel_sched_region_1
../../gcc/sel-sched.c:7533
0xb18c7b sel_sched_region(int)
../../gcc/sel-sched.c:7634
0xb196b9 run_selective_scheduling()
../../gcc/sel-sched.c:7720
0xafaf75 rest_of_handle_sched2
../../gcc/sched-rgn.c:3738
0xafaf75 execute
../../gcc/sched-rgn.c:3882