Commit a05541a9 by Jan Hubicka Committed by Jan Hubicka

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
parent f9621cc4
2010-07-04 Jan Hubicka <jh@suse.cz>
* cgraphunit.c (init_cgraph): Only initialize dump file if it is not already
initialized.
2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
* optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
......
......@@ -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
......
2010-07-04 Jan Hubicka <jh@suse.cz>
* lto.c (read_cgraph_and_symbols): Dump cgraph before merging.
2010-06-13 Richard Guenther <rguenther@suse.de>
* lto.c (lto_fixup_type): Do not register or fixup TYPE_CANONICAL.
......
......@@ -1435,6 +1435,7 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
struct cgraph_node *node;
lto_stats.num_input_files = nfiles;
init_cgraph ();
timevar_push (TV_IPA_LTO_DECL_IN);
......@@ -1534,6 +1535,12 @@ read_cgraph_and_symbols (unsigned nfiles, const char **fnames)
/* Finally merge the cgraph according to the decl merging decisions. */
timevar_push (TV_IPA_LTO_CGRAPH_MERGE);
if (cgraph_dump_file)
{
fprintf (cgraph_dump_file, "Before merging:\n");
dump_cgraph (cgraph_dump_file);
dump_varpool (cgraph_dump_file);
}
lto_symtab_merge_cgraph_nodes ();
ggc_collect ();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment