]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 20 Jan 2012 21:36:14 +0000 (21:36 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 20 Jan 2012 21:36:14 +0000 (21:36 +0000)
From-SVN: r183353

gcc/ChangeLog
gcc/cfgrtl.c

index 1619611f845abd8801acdae65603a54a7b93a301..2c3ff92db7d38ebfd45f1b90d6345a8bba28acf9 100644 (file)
@@ -1,3 +1,7 @@
+2012-01-20  Eric Botcazou  <ebotcazou@adacore.com>
+
+       * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
+
 2012-01-19  Quentin Neill  <quentin.neill@amd.com>
 
        PR target/48743
index 5d64f3af0190663dad95160a5727336c5006918d..dd3d37efe080e034e5168fe7faa37451b1d7e144 100644 (file)
@@ -1642,9 +1642,10 @@ rtl_dump_bb (basic_block bb, FILE *outf, int indent, int flags ATTRIBUTE_UNUSED)
       putc ('\n', outf);
     }
 
-  for (insn = BB_HEAD (bb), last = NEXT_INSN (BB_END (bb)); insn != last;
-       insn = NEXT_INSN (insn))
-    print_rtl_single (outf, insn);
+  if (bb->index != ENTRY_BLOCK && bb->index != EXIT_BLOCK)
+    for (insn = BB_HEAD (bb), last = NEXT_INSN (BB_END (bb)); insn != last;
+        insn = NEXT_INSN (insn))
+      print_rtl_single (outf, insn);
 
   if (df)
     {