From 182c78687e6cf481c4d8e8fce99a0f293510adb7 Mon Sep 17 00:00:00 2001 From: Tom de Vries Date: Sun, 17 Apr 2016 05:22:33 +0000 Subject: Only finalize dot files that have been initialized 2016-04-17 Tom de Vries PR other/70185 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member. * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field. * dumpfile.c (dump_files): Initialize graph_dump_initialized field. * passes.c (finish_optimization_passes): Only call finish_graph_dump_file if dfi->graph_dump_initialized. (execute_function_dump, pass_init_dump_file): Use dfi->graph_dump_initialized instead of pass->graph_dump_initialized. From-SVN: r235074 --- gcc/dumpfile.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gcc/dumpfile.h') diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index c168cbf..3f08b16 100644 --- a/gcc/dumpfile.h +++ b/gcc/dumpfile.h @@ -120,6 +120,10 @@ struct dump_file_info bool owns_strings; /* fields "suffix", "swtch", "glob" can be const strings, or can be dynamically allocated, needing free. */ + bool graph_dump_initialized; /* When a given dump file is being initialized, + this flag is set to true if the corresponding + TDF_graph dump file has also been + initialized. */ }; /* In dumpfile.c */ -- cgit v1.1