[PATCH] rtx_writer: avoid printing trailing nils

Bernd Schmidt bschmidt@redhat.com
Fri Nov 4 17:14:00 GMT 2016


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 whole way - we'd want the space 
savings from avoiding the newline.

You could consider giving the print_nil thing a default argument.


Bernd



More information about the Gcc-patches mailing list