* 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
+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)
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.
struct cgraph_node *node;
lto_stats.num_input_files = nfiles;
+ init_cgraph ();
timevar_push (TV_IPA_LTO_DECL_IN);
/* 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 ();