https://gcc.gnu.org/bugzilla/show_bug.cgi?id=67002
--- Comment #22 from Oleg Endo <olegendo at gcc dot gnu.org> --- (In reply to Kazumoto Kojima from comment #21) > > Yes, it works. I'm uncomfortable with it because the current use of > crtl->emit.x_cur_insn_uid aka cur_insn_uid is limitted to emit-rtl.c. > I think that the use of that field outside of emit-rtl.c is unexpected. > Also it doesn't sound good to add a new interface to access that field > there. After all, your "static rtx_insn" is the right thing to do. OK. I will try to implement that "static rtx_insn" thing, after I have finished the patch attachment 36012, which makes some changes to treg_set_expr.