https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98331
Bug ID: 98331 Summary: [9/10/11 Regression] ICE in haifa_luid_for_non_insn, at haifa-sched.c:7845 Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c++ Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Following combination of options affects several files from gcc/testsuite at -O2+, e.g. pr69589_0.C, builtin_unreachable-1.c, devirt-52.C, ... (regression date depends on testfile) : $ g++-11-20201213 -c pr69589_0.C -g -O2 -m32 -fopenmp -fprofile-generate pr69589_0.C: In member function 'Z<S, B<S> > C<int>::m8() const': pr69589_0.C:22:1: warning: no return statement in function returning non-void [-Wreturn-type] 22 | } | ^ during RTL pass: sched2 pr69589_0.C:22:1: internal compiler error: in haifa_luid_for_non_insn, at haifa-sched.c:7845 0x1556e06 haifa_luid_for_non_insn ../../gcc/haifa-sched.c:7845 0x155d809 sched_init_insn_luid(rtx_insn*) ../../gcc/haifa-sched.c:8977 0x155de2a sched_init_luids(vec<basic_block_def*, va_heap, vl_ptr>) ../../gcc/haifa-sched.c:9006 0x155e0dc haifa_sched_init() ../../gcc/haifa-sched.c:7382 0xc46d1a schedule_insns() ../../gcc/sched-rgn.c:3514 0xc473fd schedule_insns() ../../gcc/sched-rgn.c:3508 0xc473fd rest_of_handle_sched2 ../../gcc/sched-rgn.c:3746 0xc473fd execute ../../gcc/sched-rgn.c:3882 --- pr69589_0.C: In member function 'Z<S, B<S> > C<int>::m8() const': pr69589_0.C:22:1: warning: no return statement in function returning non-void [-Wreturn-type] 22 | } | ^ during RTL pass: expand pr69589_0.C:22:1: internal compiler error: Segmentation fault 0xf86f4f crash_signal ../../gcc/toplev.c:327 0xaa7913 rtl_verify_bb_pointers ../../gcc/cfgrtl.c:2780 0xaa7913 rtl_verify_flow_info_1 ../../gcc/cfgrtl.c:2832 0xaa84b2 rtl_verify_flow_info ../../gcc/cfgrtl.c:3076 0xa8879a verify_flow_info() ../../gcc/cfghooks.c:267 0x19920e6 checking_verify_flow_info ../../gcc/cfghooks.h:212 0x19920e6 try_optimize_cfg ../../gcc/cfgcleanup.c:3009 0x1992513 cleanup_cfg(int) ../../gcc/cfgcleanup.c:3174 0xa85841 execute ../../gcc/cfgexpand.c:6884