On Thu, Dec 15, 2011 at 09:37:45AM -0800, Richard Henderson wrote:
> On 12/15/2011 09:32 AM, Jakub Jelinek wrote:
> > PR debug/51557
> > * sel-sched-ir.c (create_copy_of_insn_rtx): Copy REG_ARGS_SIZE
> > notes.
> >
> > * gcc.dg/pr51557.c: New test.
>
> There are plenty of other notes that could as well need duplication.
> E.g. REG_INC, REG_FRAME_RELATED_EXPR, REG_CFA_*, REG_EH_REGION.
I wasn't sure if it is safe to duplicate them. I guess most of them are
safe, not sure about REG_EQUAL/REG_EQUIV.
I can certainly try to copy all the notes, e.g.
emit_copy_of_insn_after seems to copy all of them but REG_LABEL_OPERAND.
Jakub