aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2010-07-05 00:21:39 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2010-07-04 22:21:39 +0000
commita05541a911f4bb5c12b1ad2f668c445dccce75c7 (patch)
treee4de917840f47bc635592908332e7a699bf11329 /gcc/lto
parentf9621cc4774d44166dc6e25228a1d86f14aaaca6 (diff)
downloadgcc-a05541a911f4bb5c12b1ad2f668c445dccce75c7.zip
gcc-a05541a911f4bb5c12b1ad2f668c445dccce75c7.tar.gz
gcc-a05541a911f4bb5c12b1ad2f668c445dccce75c7.tar.bz2
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
Diffstat (limited to 'gcc/lto')
-rw-r--r--gcc/lto/ChangeLog4
-rw-r--r--gcc/lto/lto.c7
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/lto/ChangeLog b/gcc/lto/ChangeLog
index c3618b6..567cfcd 100644
--- a/gcc/lto/ChangeLog
+++ b/gcc/lto/ChangeLog
@@ -1,3 +1,7 @@
+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.
diff --git a/gcc/lto/lto.c b/gcc/lto/lto.c
index 500cb4f..27d2600 100644
--- a/gcc/lto/lto.c
+++ b/gcc/lto/lto.c
@@ -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 ();