This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] rtx_writer: avoid printing trailing nils


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]