Re: [PATCH] rtx_writer: avoid printing trailing nils

2016-11-04 Thread Bernd Schmidt
Here's something simpler. Only very lightly tested, but isn't something like this all that's needed? Could decide whether to apply it to expr_list etc. as well. Index: print-rtl.c === --- print-rtl.c (revision 241233) +++ print-rtl

Re: [PATCH] rtx_writer: avoid printing trailing nils

2016-11-04 Thread Bernd Schmidt
On 11/04/2016 06:32 PM, David Malcolm wrote: ASSERT_RTL_DUMP_EQ ("(cjump_insn 1 (set (pc)\n" "(label_ref 0))\n" - " (nil))\n", + " )\n", jump_insn); This looks like the patch doesn't go the wh

[PATCH] rtx_writer: avoid printing trailing nils

2016-11-04 Thread David Malcolm
On Fri, 2016-10-21 at 12:04 +0200, Bernd Schmidt wrote: > On 10/21/2016 02:36 AM, David Malcolm wrote: > > + ASSERT_RTL_DUMP_EQ ("(cjump_insn (set (pc)\n" > > + "(label_ref 0))\n" > > + " (nil))\n", > > +