re PR driver/46760 (LTO bootstrap doesn't work with FDO)
commitdb0bf14f6b2ae9e3a1581522a9c4b90ac5453a06
authorJan Hubicka <jh@suse.cz>
Sat, 4 Dec 2010 19:35:23 +0000 (4 20:35 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 4 Dec 2010 19:35:23 +0000 (4 19:35 +0000)
treeb3887b2fc44cec55b580768f354ae76eeb37fa87
parentf3007348c3fdb811969f942a6b3466f372067fda
re PR driver/46760 (LTO bootstrap doesn't work with FDO)

PR tree-optimization/46760
* cgraph.c (cgraph_create_node): Initialize count_materialization_scale.
* cgraph.h (struct cgraph_node): Add count_materialization_scale.
* lto-cgraph.c (lto_output_edge): Fix assert.
(lto_output_node): Output count_materialization_scale.
(output_profile_summary): Output only runs and sum_max.
(input_node): Input count_materialization_scale.
(input_profile_summary): Read data into file specific gcov summary.
(merge_profile_summaries): New function.
(input_cgraph): Update call of input_profile_summary;
call merge_profile_summaries.
* lto-streamer-in.c (input_cfg): Add count_materialization_scale arg;
rescale counts at read in.
(intput_bb): Likewise.
(input_function): Update call of input_bb.
(lto_read_body): Update call of input_cfg.
* lto-streamer.h: Inlclude gcov-io.h
(lto_file_decl_data): Add gcov_ctr_summary.

From-SVN: r167458
gcc/ChangeLog
gcc/cgraph.c
gcc/cgraph.h
gcc/lto-cgraph.c
gcc/lto-streamer-in.c
gcc/lto-streamer.h