diff options
author | Jan Hubicka <jh@suse.cz> | 2010-07-05 00:21:39 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-07-04 22:21:39 +0000 |
commit | a05541a911f4bb5c12b1ad2f668c445dccce75c7 (patch) | |
tree | e4de917840f47bc635592908332e7a699bf11329 /gcc/cgraphunit.c | |
parent | f9621cc4774d44166dc6e25228a1d86f14aaaca6 (diff) | |
download | gcc-a05541a911f4bb5c12b1ad2f668c445dccce75c7.zip gcc-a05541a911f4bb5c12b1ad2f668c445dccce75c7.tar.gz gcc-a05541a911f4bb5c12b1ad2f668c445dccce75c7.tar.bz2 |
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
Diffstat (limited to 'gcc/cgraphunit.c')
-rw-r--r-- | gcc/cgraphunit.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |