https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97244
Iain Sandoe <iains at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |iains at gcc dot gnu.org --- Comment #1 from Iain Sandoe <iains at gcc dot gnu.org> --- a stage #1 debug build using a recent GCC-11 with make CFLAGS="-Og -g" CXXFLAGS="-Og -g" also fails in the same way on x86_64-linux and darwin: I think between r11-3505....r11-3531. during IPA pass: inline ../../src/gcc/cgraph.c: In member function ‘bool cgraph_node::can_remove_if_no_direct_calls_p(bool)’: ../../src/gcc/cgraph.c:2935:43: internal compiler error: in duplicate, at ipa-prop.c:4251 2935 | return !call_for_symbol_and_aliases (nonremovable_p, NULL, true); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ 0x7814c2 ipa_edge_args_sum_t::duplicate(cgraph_edge*, cgraph_edge*, ipa_edge_args*, ipa_edge_args*) ../../src/gcc/ipa-prop.c:4251 0xe02ddb symbol_table::call_edge_duplication_hooks(cgraph_edge*, cgraph_edge*) ../../src/gcc/cgraph.c:451 0xe1657b cgraph_edge::clone(cgraph_node*, gcall*, unsigned int, profile_count, profile_count, bool) ../../src/gcc/cgraphclones.c:149 0x12edcb7 copy_bb ../../src/gcc/tree-inline.c:2266 0x12eecc3 copy_cfg_body ../../src/gcc/tree-inline.c:3042 0x12eecc3 copy_body ../../src/gcc/tree-inline.c:3290 0x12f1fa8 expand_call_inline ../../src/gcc/tree-inline.c:5076 0x12f3b31 gimple_expand_calls_inline ../../src/gcc/tree-inline.c:5266 0x12f3b31 optimize_inline_calls(tree_node*) ../../src/gcc/tree-inline.c:5439 0x103cb8b inline_transform(cgraph_node*) ../../src/gcc/ipa-inline-transform.c:741 0x117d0cd execute_one_ipa_transform_pass ../../src/gcc/passes.c:2240 0x117d0cd execute_all_ipa_transforms(bool) ../../src/gcc/passes.c:2279 0xe11d13 cgraph_node::expand() ../../src/gcc/cgraphunit.c:2302 0xe132af expand_all_functions ../../src/gcc/cgraphunit.c:2480 0xe132af symbol_table::compile() ../../src/gcc/cgraphunit.c:2843 0xe156e2 symbol_table::compile() ../../src/gcc/cgraphunit.c:2756 0xe156e2 symbol_table::finalize_compilation_unit() ../../src/gcc/cgraphunit.c:3021 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make[1]: *** [Makefile:1123: cgraph.o] Error 1 make: *** [Makefile:4726: all-gcc] Error 2