]> 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:37:45 +0000 (21:37 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Fri, 20 Jan 2012 21:37:45 +0000 (21:37 +0000)
From-SVN: r183354

gcc/ChangeLog
gcc/cfgrtl.c

index efe8df0fee7bdb6bfbc7a18bef4a1c9ac9689bb7..3f95d8678c103fb3f39349c22f8fcfb9432dd4f8 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-15  Uros Bizjak  <ubizjak@gmail.com>
 
        PR rtl-optimization/51821
index e6d1d5a961d3ab4c17e9711bfa3ecd88a3fafee7..db2c56e7ae61bf5598b0ead550ad66369588f601 100644 (file)
@@ -1640,9 +1640,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)
     {