aboutsummaryrefslogtreecommitdiff
path: root/gcc/dumpfile.h
diff options
context:
space:
mode:
authorTom de Vries <tom@codesourcery.com>2016-04-17 05:22:33 +0000
committerTom de Vries <vries@gcc.gnu.org>2016-04-17 05:22:33 +0000
commit182c78687e6cf481c4d8e8fce99a0f293510adb7 (patch)
tree97b74889cb3b1dc20672ef13dd4e303c8125a677 /gcc/dumpfile.h
parentc5e2d17df05391834d97d4ceaa1007af1d2fc038 (diff)
downloadgcc-182c78687e6cf481c4d8e8fce99a0f293510adb7.zip
gcc-182c78687e6cf481c4d8e8fce99a0f293510adb7.tar.gz
gcc-182c78687e6cf481c4d8e8fce99a0f293510adb7.tar.bz2
Only finalize dot files that have been initialized
2016-04-17 Tom de Vries <tom@codesourcery.com> 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
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r--gcc/dumpfile.h4
1 files changed, 4 insertions, 0 deletions
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 */