diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-17 05:22:33 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-04-17 05:22:33 +0000 |
commit | c6f823616c5fe944b8d06bf9edbb072c15e5d8e2 (patch) | |
tree | 97b74889cb3b1dc20672ef13dd4e303c8125a677 /gcc/dumpfile.h | |
parent | 67add973aae198fd91b84fa597404be91360d392 (diff) | |
download | gcc-c6f823616c5fe944b8d06bf9edbb072c15e5d8e2.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235074 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/dumpfile.h')
-rw-r--r-- | gcc/dumpfile.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/dumpfile.h b/gcc/dumpfile.h index c168cbf460b..3f08b162458 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 */ |