diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2012-01-20 21:35:25 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2012-01-20 21:35:25 +0000 |
commit | 68cc31742fdd400f28ca90f376f722f09c78fa18 (patch) | |
tree | f34f69dcddff22b746f897dc851f652eed35682a /gcc/cfgrtl.c | |
parent | 93d277febc482abc1676fff5551da231d8473434 (diff) | |
download | gcc-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.c | 7 |
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) { |