https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81322
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |NEW Last reconfirmed| |2017-07-10 CC| |dmalcolm at gcc dot gnu.org Ever confirmed|0 |1 --- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> --- Confirmed, started when RTL FE was added. What happens is that we need to create a constructor for a function times_two in: /home/marxin/Programming/testcases/pr81322.c: In function ‘_GLOBAL__sub_I_00099_0_times_two’: /home/marxin/Programming/testcases/pr81322.c:12:1: internal compiler error: in prepare_function_start, at function.c:4974 } ^ 0x8c8aeb prepare_function_start ../../gcc/function.c:4974 0x8c8c8c init_function_start(tree_node*) ../../gcc/function.c:5050 0x78658b cgraph_node::expand() ../../gcc/cgraphunit.c:2039 0x786dc4 cgraph_node::add_new_function(tree_node*, bool) ../../gcc/cgraphunit.c:589 0x9cf644 cgraph_build_static_cdtor_1 ../../gcc/ipa.c:935 0xbca7db asan_finish_file() ../../gcc/asan.c:2938 Please submit a full bug report, Where we have already created following insns: (gdb) p debug_rtx_list(get_last_insn(), 10) (note 4 0 0 2 [bb 2] NOTE_INSN_BASIC_BLOCK) David can you please take a look?