https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64612
Bug ID: 64612 Summary: [5 Regression] profiledbootstrap failures Product: gcc Version: 5.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: bootstrap Assignee: unassigned at gcc dot gnu.org Reporter: jakub at gcc dot gnu.org ../configure --enable-languages=c,c++ --enable-checking=release make -j16 profiledbootstrap ICEs on x86_64-linux while compiling many libgcc routines with the stagefeedback cc1. E.g. while compiling _popcountdi2.o (but the backtrace is the same for many other ICEs): #0 0x0000000000000000 in ?? () #1 0x0000000000eae710 in operator=<std::pair<rtx_def*, machine_mode> > (x=..., this=0x7fffffffce40) at ../../gcc/wide-int.h:861 #2 simplify_binary_operation_1(rtx_code, machine_mode, rtx_def*, rtx_def*, rtx_def*, rtx_def*) () at ../../gcc/simplify-rtx.c:2055 #3 0x0000000000eb1778 in simplify_binary_operation (op1=0x7ffff0568fd8, op0=0x7ffff0568fc0, mode=<optimized out>, code=<optimized out>) at ../../gcc/simplify-rtx.c:1975 #4 simplify_gen_binary(rtx_code, machine_mode, rtx_def*, rtx_def*) () at ../../gcc/simplify-rtx.c:203 #5 0x00000000011f28b7 in distribute_and_simplify_rtx(rtx_def*, int) () at ../../gcc/combine.c:9505 #6 0x000000000109937c in combine_simplify_rtx (in_cond=<optimized out>, in_dest=<optimized out>, op0_mode=DImode, x=0x7ffff05644e0) at ../../gcc/combine.c:5844 #7 subst(rtx_def*, rtx_def*, rtx_def*, int, int, int) () at ../../gcc/combine.c:5374 #8 0x0000000001098157 in subst(rtx_def*, rtx_def*, rtx_def*, int, int, int) () at ../../gcc/combine.c:5319 #9 0x000000000109861c in subst(rtx_def*, rtx_def*, rtx_def*, int, int, int) () at ../../gcc/combine.c:5242 #10 0x000000000109248e in try_combine(rtx_insn*, rtx_insn*, rtx_insn*, rtx_insn*, int*, rtx_insn*) () at ../../gcc/combine.c:3265 #11 0x000000000108c62a in combine_instructions (nregs=<optimized out>, f=<optimized out>) at ../../gcc/combine.c:1388 #12 rest_of_handle_combine () at ../../gcc/combine.c:14094 #13 (anonymous namespace)::pass_combine::execute(function*) () at ../../gcc/combine.c:14137 #14 0x0000000000752ec3 in execute_one_pass (pass=0x1b67c80) at ../../gcc/passes.c:2317 #15 0x0000000000754462 in execute_pass_list_1 (pass=0x1b67c80) at ../../gcc/passes.c:2369 #16 0x0000000000754493 in execute_pass_list_1 (pass=0x1b67140) at ../../gcc/passes.c:2370 #17 0x0000000000e58089 in execute_pass_list (fn=0x7ffff0546b28, pass=0x1b63f60) at ../../gcc/passes.c:2380 #18 0x0000000001159835 in expand (this=0x7ffff053cab8) at ../../gcc/cgraphunit.c:1804 #19 expand_all_functions () at ../../gcc/cgraphunit.c:1940 #20 symbol_table::compile() () at ../../gcc/cgraphunit.c:2293 #21 0x000000000115924e in symbol_table::finalize_compilation_unit() () at ../../gcc/cgraphunit.c:2370 #22 0x0000000000c5345b in c_write_global_declarations() () at ../../gcc/c/c-decl.c:10787 #23 0x000000000119ff42 in compile_file() () at ../../gcc/toplev.c:597 #24 0x0000000000c48541 in do_compile () at ../../gcc/toplev.c:2036 #25 toplev::main(int, char**) () at ../../gcc/toplev.c:2133 #26 0x0000000000c48859 in main (argc=82, argv=0x7fffffffd818) at ../../gcc/main.c:38 (gdb) up #2 simplify_binary_operation_1(rtx_code, machine_mode, rtx_def*, rtx_def*, rtx_def*, rtx_def*) () at ../../gcc/simplify-rtx.c:2055 2055 coeff0 = std::make_pair (XEXP (lhs, 1), mode); (gdb) disas $pc-32,$pc+32 Dump of assembler code from 0xeae6f0 to 0xeae730: 0x0000000000eae6f0 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2480>: mov 0x18(%rsp),%edi 0x0000000000eae6f4 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2484>: lea 0x100(%rsp),%rsi 0x0000000000eae6fc <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2492>: mov %r9,0x100(%rsp) 0x0000000000eae704 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2500>: mov %ebx,0x108(%rsp) 0x0000000000eae70b <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2507>: callq 0x0 => 0x0000000000eae710 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2512>: mov 0x120(%rsp),%rcx 0x0000000000eae718 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2520>: mov 0x128(%rsp),%r11 0x0000000000eae720 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2528>: mov 0x130(%rsp),%rax 0x0000000000eae728 <_ZL27simplify_binary_operation_18rtx_code12machine_modeP7rtx_defS2_S2_S2_+2536>: mov 0x138(%rsp),%rsi End of assembler dump. Note the unconditional call 0 that was hit.