aboutsummaryrefslogtreecommitdiff
path: root/gcc/cfgrtl.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@adacore.com>2012-01-20 21:35:25 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2012-01-20 21:35:25 +0000
commit68cc31742fdd400f28ca90f376f722f09c78fa18 (patch)
treef34f69dcddff22b746f897dc851f652eed35682a /gcc/cfgrtl.c
parent93d277febc482abc1676fff5551da231d8473434 (diff)
downloadgcc-68cc31742fdd400f28ca90f376f722f09c78fa18.zip
gcc-68cc31742fdd400f28ca90f376f722f09c78fa18.tar.gz
gcc-68cc31742fdd400f28ca90f376f722f09c78fa18.tar.bz2
* cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK.
From-SVN: r183352
Diffstat (limited to 'gcc/cfgrtl.c')
-rw-r--r--gcc/cfgrtl.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c
index 9312a4b..bcc410a 100644
--- a/gcc/cfgrtl.c
+++ b/gcc/cfgrtl.c
@@ -1674,9 +1674,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)
{