summaryrefslogtreecommitdiff
path: root/gcc/gimple-pretty-print.c
diff options
context:
space:
mode:
authorbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-22 19:01:20 +0000
committerbstarynk <bstarynk@138bc75d-0d04-0410-961f-82ee72b054a4>2010-11-22 19:01:20 +0000
commit99727edfd912b2e294bb745817fdd51df0d2f76b (patch)
tree63f38903ea9d1949d21dd3471d219021ea844cc8 /gcc/gimple-pretty-print.c
parenta6c14c7f99a58d97f962b41cdbfda7d4295ffd7d (diff)
downloadgcc-99727edfd912b2e294bb745817fdd51df0d2f76b.tar.gz
2010-11-22 Basile Starynkevitch <basile@starynkevitch.net>
* gimple-pretty-print.c (dump_bb_header): Add check for cfun. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@167044 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimple-pretty-print.c')
-rw-r--r--gcc/gimple-pretty-print.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/gimple-pretty-print.c b/gcc/gimple-pretty-print.c
index 057f35b9815..cda0d169946 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);
}