From a05541a911f4bb5c12b1ad2f668c445dccce75c7 Mon Sep 17 00:00:00 2001 From: Jan Hubicka Date: Mon, 5 Jul 2010 00:21:39 +0200 Subject: cgraphunit.c (init_cgraph): Only initialize dump file if it is not already initialized. * cgraphunit.c (init_cgraph): Only initialize dump file if it is not already initialized. * lto.c (read_cgraph_and_symbols): Dump cgraph before merging. From-SVN: r161811 --- gcc/cgraphunit.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gcc/cgraphunit.c') diff --git a/gcc/cgraphunit.c b/gcc/cgraphunit.c index 5a69afa..2988f1c 100644 --- a/gcc/cgraphunit.c +++ b/gcc/cgraphunit.c @@ -2070,7 +2070,8 @@ cgraph_build_static_cdtor (char which, tree body, int priority) void init_cgraph (void) { - cgraph_dump_file = dump_begin (TDI_cgraph, NULL); + if (!cgraph_dump_file) + cgraph_dump_file = dump_begin (TDI_cgraph, NULL); } /* The edges representing the callers of the NEW_VERSION node were -- cgit v1.1