Commit 1dd5907e by Steven Bosscher

* cfg.c (dump_bb_info): Print a newline if there were no edges to dump.

From-SVN: r190786
parent 80a676b7
2012-08-29 Steven Bosscher <steven@gcc.gnu.org>
* cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
2012-08-29 Chung-Lin Tang <cltang@codesourcery.com> 2012-08-29 Chung-Lin Tang <cltang@codesourcery.com>
Revert: Revert:
......
...@@ -764,6 +764,8 @@ dump_bb_info (FILE *outf, basic_block bb, int indent, int flags, ...@@ -764,6 +764,8 @@ dump_bb_info (FILE *outf, basic_block bb, int indent, int flags,
dump_edge_info (outf, e, flags, 0); dump_edge_info (outf, e, flags, 0);
fputc ('\n', outf); fputc ('\n', outf);
} }
if (first)
fputc ('\n', outf);
} }
if (do_footer) if (do_footer)
...@@ -784,6 +786,8 @@ dump_bb_info (FILE *outf, basic_block bb, int indent, int flags, ...@@ -784,6 +786,8 @@ dump_bb_info (FILE *outf, basic_block bb, int indent, int flags,
dump_edge_info (outf, e, flags, 1); dump_edge_info (outf, e, flags, 1);
fputc ('\n', outf); fputc ('\n', outf);
} }
if (first)
fputc ('\n', outf);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment