OSDN Git Service

* cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
authorebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Jan 2012 21:35:25 +0000 (21:35 +0000)
committerebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Jan 2012 21:35:25 +0000 (21:35 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183352 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/cfgrtl.c

index 16e7618..a863157 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.
+
 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
 
        * config/i386/i386.c: Fix checks for !TARGET_MACHO.
 2011-01-20  Tijl Coosemans  <tijl@coosemans.org>
 
        * config/i386/i386.c: Fix checks for !TARGET_MACHO.
index 9312a4b..bcc410a 100644 (file)
@@ -1674,9 +1674,10 @@ rtl_dump_bb (basic_block bb, FILE *outf, int indent, int flags ATTRIBUTE_UNUSED)
       putc ('\n', outf);
     }
 
       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)
     {
 
   if (df)
     {