diff --git a/gcc/ChangeLog b/gcc/ChangeLog index a4513b7e4423..a82d6f69650e 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,4 +1,8 @@ -2010-11-22 Paolo Bonzini +2010-11-22 Basile Starynkevitch + + * gimple-pretty-print.c (dump_bb_header): Add check for cfun. + +2010-11-22 Paolo Bonzini PR bootstrap/44970 * Makefile.in (fwprop.o) Add sparseset.h. diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c index 057f35b98150..cda0d1699467 100644 --- a/gcc/gimple-pretty-print.c +++ b/gcc/gimple-pretty-print.c @@ -1898,7 +1898,8 @@ dump_bb_header (pretty_printer *buffer, basic_block bb, int indent, int flags) } } pp_write_text_to_stream (buffer); - check_bb_profile (bb, buffer->buffer->stream); + if (cfun) + check_bb_profile (bb, buffer->buffer->stream); }