diff options
author | Jan Hubicka <jh@suse.cz> | 2010-12-04 20:35:23 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2010-12-04 19:35:23 +0000 |
commit | db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06 (patch) | |
tree | b3887b2fc44cec55b580768f354ae76eeb37fa87 /gcc/lto-streamer.h | |
parent | f3007348c3fdb811969f942a6b3466f372067fda (diff) | |
download | gcc-db0bf14f6b2ae9e3a1581522a9c4b90ac5453a06.tar.gz |
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
Diffstat (limited to 'gcc/lto-streamer.h')
-rw-r--r-- | gcc/lto-streamer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/lto-streamer.h b/gcc/lto-streamer.h index ee57ba744f6..b82c54ede1c 100644 --- a/gcc/lto-streamer.h +++ b/gcc/lto-streamer.h @@ -31,6 +31,7 @@ along with GCC; see the file COPYING3. If not see #include "vec.h" #include "vecprim.h" #include "alloc-pool.h" +#include "gcov-io.h" /* Define when debugging the LTO streamer. This causes the writer to output the numeric value for the memory address of the tree node @@ -610,6 +611,8 @@ struct GTY(()) lto_file_decl_data /* Symbol resolutions for this file */ VEC(ld_plugin_symbol_resolution_t,heap) * GTY((skip)) resolutions; + + struct gcov_ctr_summary GTY((skip)) profile_info; }; typedef struct lto_file_decl_data *lto_file_decl_data_ptr; |