From: Eric Botcazou Date: Fri, 20 Jan 2012 21:37:45 +0000 (+0000) Subject: * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. X-Git-Tag: releases/gcc-4.5.4~260 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b49979ea3a54aebe586988d6cd7b03e7d5afe16a;p=thirdparty%2Fgcc.git * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. From-SVN: r183354 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index efe8df0fee7b..3f95d8678c10 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,7 @@ +2012-01-20 Eric Botcazou + + * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. + 2012-01-15 Uros Bizjak PR rtl-optimization/51821 diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index e6d1d5a961d3..db2c56e7ae61 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -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) {