This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] rtx_writer: avoid printing trailing nils
- From: Bernd Schmidt <bschmidt at redhat dot com>
- To: David Malcolm <dmalcolm at redhat dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 4 Nov 2016 18:14:17 +0100
- Subject: Re: [PATCH] rtx_writer: avoid printing trailing nils
- Authentication-results: sourceware.org; auth=none
- References: <cd3b387c-3cdc-9532-0703-70f9e32f7f5d@redhat.com> <1478280773-2027-1-git-send-email-dmalcolm@redhat.com>
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