This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[patch] Fix CFG dumping of blocks with no predecessors or successors
- From: Steven Bosscher <stevenb dot gcc at gmail dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 29 Aug 2012 22:39:56 +0200
- Subject: [patch] Fix CFG dumping of blocks with no predecessors or successors
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);
}
}