From patchwork Wed Aug 29 20:39:56 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Fix CFG dumping of blocks with no predecessors or successors Date: Wed, 29 Aug 2012 10:39:56 -0000 From: Steven Bosscher X-Patchwork-Id: 180765 Message-Id: To: GCC Patches Will commit as obvious. * cfg.c (dump_bb_info): Print a newline if there were no edges to dump. Index: cfg.c =================================================================== --- cfg.c (revision 190785) +++ cfg.c (working copy) @@ -764,6 +764,8 @@ dump_bb_info (FILE *outf, basic_block bb, int inde dump_edge_info (outf, e, flags, 0); fputc ('\n', outf); } + if (first) + fputc ('\n', outf); } if (do_footer) @@ -784,6 +786,8 @@ dump_edge_info (outf, e, flags, 1); fputc ('\n', outf); } + if (first) + fputc ('\n', outf); } }