diff options
author | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-06-13 12:52:29 +0000 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2018-06-13 12:52:29 +0000 |
commit | b4da704c6ea9e69c6733fe86b5045b00f2775462 (patch) | |
tree | 286664089f83791dda5d4e8d3f44b19193700875 /gcc/gimple-streamer-out.c | |
parent | 70e18df76ed2ccce4f6695b7f848d25dfa31ce0e (diff) | |
download | gcc-b4da704c6ea9e69c6733fe86b5045b00f2775462.zip gcc-b4da704c6ea9e69c6733fe86b5045b00f2775462.tar.gz gcc-b4da704c6ea9e69c6733fe86b5045b00f2775462.tar.bz2 |
cgraph.c (cgraph_node::get_untransformed_body): Dump function bodies streamed in with -Q.
* cgraph.c (cgraph_node::get_untransformed_body): Dump function
bodies streamed in with -Q.
* dumpfile.c (dump_files): Add lto-stream-out dump file.
* dumpfile.h (tree_dump_index): Add lto_stream_out.
* gimple-streamer-out.c: Include gimple-pretty-print.h
(output_bb): Dump stmts streamed.
* lto-section-out.c: Include print-tree.h
(lto_begin_section): Dump sections created.
(lto_output_decl_index): Dump decl encoded.
* lto-streamer-out.c: Include print-tree.h
(create_output_block): Dump output block created.
(DFS::DFS_write_tree_body): Dump DFS SCCs streamed.
(output_function): Dump function output.
(output_constructor): Dump constructor streamed.
(write_global_stream): Output indexes encoded.
(produce_asm_for_decls): Dump streams encoded.
* lto-streamer.c (streamer_dump_file): New global var.
* lto-streamer.h (streamer_dump_file): Declare.
* passes.c (ipa_write_summaries): Initialize streamer dump.
* varpool.c (varpool_node::get_constructor): Dump constructors streamed
in.
From-SVN: r261546
Diffstat (limited to 'gcc/gimple-streamer-out.c')
-rw-r--r-- | gcc/gimple-streamer-out.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/gimple-streamer-out.c b/gcc/gimple-streamer-out.c index 42e7261..d120aa9 100644 --- a/gcc/gimple-streamer-out.c +++ b/gcc/gimple-streamer-out.c @@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "gimple-iterator.h" #include "cgraph.h" #include "value-prof.h" +#include "gimple-pretty-print.h" /* Output PHI function PHI to the main stream in OB. */ @@ -220,6 +221,11 @@ output_bb (struct output_block *ob, basic_block bb, struct function *fn) { int region; gimple *stmt = gsi_stmt (bsi); + if (streamer_dump_file) + { + fprintf (streamer_dump_file, " Streaming gimple stmt "); + print_gimple_stmt (streamer_dump_file, stmt, 0, TDF_SLIM); + } output_gimple_stmt (ob, stmt); |