From: Eric Botcazou Date: Fri, 20 Jan 2012 21:36:14 +0000 (+0000) Subject: * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. X-Git-Tag: releases/gcc-4.6.3~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c763ce233291fd64c8d1115b402b3d070596771d;p=thirdparty%2Fgcc.git * cfgrtl.c (rtl_dump_bb): Do not dump insns for {ENTRY|EXIT}_BLOCK. From-SVN: r183353 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1619611f845a..2c3ff92db7d3 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-19 Quentin Neill PR target/48743 diff --git a/gcc/cfgrtl.c b/gcc/cfgrtl.c index 5d64f3af0190..dd3d37efe080 100644 --- a/gcc/cfgrtl.c +++ b/gcc/cfgrtl.c @@ -1642,9 +1642,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) {