* cfg.c (dump_bb_info): Print a newline if there were no edges to dump.
authorSteven Bosscher <steven@gcc.gnu.org>
Wed, 29 Aug 2012 20:40:53 +0000 (20:40 +0000)
committerSteven Bosscher <steven@gcc.gnu.org>
Wed, 29 Aug 2012 20:40:53 +0000 (20:40 +0000)
From-SVN: r190786

gcc/ChangeLog
gcc/cfg.c

index 4401ef38eb2584e4292094ae938d453c6ff202cd..07d7944b5a77eb0738495de61e671b1985815844 100644 (file)
@@ -1,3 +1,7 @@
+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>
 
        Revert:
index 3f14d49a72d3c0344ed1b1588a213459a552e4d1..eaf5863516f6879b4a0532b3f88a319a0c058b9c 100644 (file)
--- a/gcc/cfg.c
+++ b/gcc/cfg.c
@@ -764,6 +764,8 @@ dump_bb_info (FILE *outf, basic_block bb, int indent, int flags,
          dump_edge_info (outf, e, flags, 0);
          fputc ('\n', outf);
        }
+      if (first)
+       fputc ('\n', outf);
     }
 
   if (do_footer)
@@ -784,6 +786,8 @@ dump_bb_info (FILE *outf, basic_block bb, int indent, int flags,
          dump_edge_info (outf, e, flags, 1);
          fputc ('\n', outf);
        }
+      if (first)
+       fputc ('\n', outf);
     }
 }